comparison gcc/config/darwin-sections.def @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents f6334be47118
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* Copyright (C) 2005, 2006, 2010 Free Software Foundation, Inc. 1 /* Copyright (C) 2005-2017 Free Software Foundation, Inc.
2 2
3 This file is part of GCC. 3 This file is part of GCC.
4 4
5 GCC is free software; you can redistribute it and/or modify it under 5 GCC is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free 6 the terms of the GNU General Public License as published by the Free
27 Items that might be coalesced by the linker are prevented from participating, 27 Items that might be coalesced by the linker are prevented from participating,
28 (and those in mergeable sections are disallowed in varasm.c). */ 28 (and those in mergeable sections are disallowed in varasm.c). */
29 29
30 /* The .text section is generated in varasm.c */ 30 /* The .text section is generated in varasm.c */
31 DEF_SECTION (text_coal_section, SECTION_CODE|SECTION_NO_ANCHOR, 31 DEF_SECTION (text_coal_section, SECTION_CODE|SECTION_NO_ANCHOR,
32 ".section __TEXT,__textcoal_nt,coalesced,pure_instructions", 0)
33
34 /* We define a picbase thunks section separately, so that we can override the
35 def to be '.text' for versions of ld64 that handle coalescing. */
36 DEF_SECTION (picbase_thunk_section, SECTION_CODE|SECTION_NO_ANCHOR,
32 ".section __TEXT,__textcoal_nt,coalesced,pure_instructions", 0) 37 ".section __TEXT,__textcoal_nt,coalesced,pure_instructions", 0)
33 38
34 DEF_SECTION (text_hot_section, SECTION_CODE, 39 DEF_SECTION (text_hot_section, SECTION_CODE,
35 ".section __TEXT,__text_hot,regular,pure_instructions", 0) 40 ".section __TEXT,__text_hot,regular,pure_instructions", 0)
36 DEF_SECTION (text_cold_section, SECTION_CODE, 41 DEF_SECTION (text_cold_section, SECTION_CODE,
74 DEF_SECTION (const_data_section, 0, ".const_data", 0) 79 DEF_SECTION (const_data_section, 0, ".const_data", 0)
75 DEF_SECTION (const_data_coal_section, SECTION_NO_ANCHOR, 80 DEF_SECTION (const_data_coal_section, SECTION_NO_ANCHOR,
76 ".section __DATA,__const_coal,coalesced", 0) 81 ".section __DATA,__const_coal,coalesced", 0)
77 /* Place to put zero-sized to avoid issues with section anchors. */ 82 /* Place to put zero-sized to avoid issues with section anchors. */
78 DEF_SECTION (zobj_const_data_section, SECTION_NO_ANCHOR, 83 DEF_SECTION (zobj_const_data_section, SECTION_NO_ANCHOR,
79 ".section\t__DATA,__zobj_const_data", 0) 84 ".section\t__DATA,__zobj_cnst_data", 0)
80 85
81 /* Strings and other literals. */ 86 /* Strings and other literals. */
82 DEF_SECTION (cstring_section, SECTION_MERGE | SECTION_STRINGS, ".cstring", 0) 87 DEF_SECTION (cstring_section, SECTION_MERGE | SECTION_STRINGS, ".cstring", 0)
83 DEF_SECTION (literal4_section, SECTION_MERGE, ".literal4", 0) 88 DEF_SECTION (literal4_section, SECTION_MERGE, ".literal4", 0)
84 DEF_SECTION (literal8_section, SECTION_MERGE, ".literal8", 0) 89 DEF_SECTION (literal8_section, SECTION_MERGE, ".literal8", 0)