1 /* Subroutines for DJGPP.
2 Copyright (C) 2013-2018 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 #define IN_TARGET_CODE 1
24 #include "coretypes.h"
27 #include "lto-section-names.h"
30 i386_djgpp_asm_named_section(const char *name
, unsigned int flags
,
33 char flagchars
[8], *f
= flagchars
;
35 if (flags
& SECTION_WRITE
)
37 if (flags
& SECTION_CODE
)
40 /* LTO sections need 1-byte alignment to avoid confusing the
41 zlib decompression algorithm with trailing zero pad bytes. */
42 if (strncmp (name
, LTO_SECTION_NAME_PREFIX
,
43 strlen (LTO_SECTION_NAME_PREFIX
)) == 0)
48 fprintf (asm_out_file
, "\t.section\t%s,\"%s\"\n", name
, flagchars
);