]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR target/48108 (lto should be containerized in a single mach-o section on darwin)
authorIain Sandoe <iains@gcc.gnu.org>
Sun, 13 Nov 2011 13:58:43 +0000 (13:58 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sun, 13 Nov 2011 13:58:43 +0000 (13:58 +0000)
commitd3fc7fc2e8f292f665899a62e69a1b7bde9da8b1
tree76ad2b6306b9c7b7b475e6f08780439a2425861e
parent7383b768c9cd10ee98de41629b787acb7dbaf3bd
re PR target/48108 (lto should be containerized in a single mach-o section on darwin)

gcc:

PR target/48108
Backport from mainline r180523
* config/darwin.c (top level): Amend comments concerning LTO output.
(lto_section_num): New variable.  (darwin_lto_section_e): New GTY.
(LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
(LTO_NAMES_SECTION): Rename.
(darwin_asm_named_section): Record LTO section counts and switches
in a vec of darwin_lto_section_e.
(darwin_file_start): Remove unused code.
(darwin_file_end): Put an LTO section termination label.  Handle
output of the wrapped LTO sections, index and names table.

libiberty:

PR target/48108
Backport from mainline r180523
* simple-object-mach-o.c  (GNU_WRAPPER_SECTS, GNU_WRAPPER_INDEX,
GNU_WRAPPER_NAMES): New macros.
(simple_object_mach_o_segment): Handle wrapper scheme.
(simple_object_mach_o_write_section_header): Allow the segment name
to be supplied.
(simple_object_mach_o_write_segment): Handle wrapper scheme.  Ensure
that the top-level segment name in the load command is empty.
(simple_object_mach_o_write_to_file): Determine the number of
sections during segment output, use that in writing the header.

From-SVN: r181336
gcc/ChangeLog
gcc/config/darwin.c
libiberty/ChangeLog
libiberty/simple-object-mach-o.c