| 434efabd | 14-Jan-2011 |
Konstantin Belousov <[email protected]> |
On PowerPC64, linker emits a fake object into each linked object, 'linker stubs'. Add .note.GNU-stack for the stubs objects. Without this, final binary will have RWE mode for PT_GNU_STACK regardless
On PowerPC64, linker emits a fake object into each linked object, 'linker stubs'. Add .note.GNU-stack for the stubs objects. Without this, final binary will have RWE mode for PT_GNU_STACK regardless of the actual requirements.
Tested by: nwhitehorn Reviewed by: dim, nwhitehorn
show more ...
|
| e208fc20 | 25-Oct-2010 |
Dimitry Andric <[email protected]> |
Apply commit f6c8fecc6fe3d5532691867a7f27820bb1c426a9 from upstream (still under GPLv2 at that time):
Author: H.J. Lu <[email protected]> Date: Wed Sep 27 04:18:16 2006 +0000
PR ld/3223 PR ld/3267 *
Apply commit f6c8fecc6fe3d5532691867a7f27820bb1c426a9 from upstream (still under GPLv2 at that time):
Author: H.J. Lu <[email protected]> Date: Wed Sep 27 04:18:16 2006 +0000
PR ld/3223 PR ld/3267 * bfd/elf.c (assign_file_positions_for_non_load_sections): Don't warn zero size allocated sections. * ld/ldlang.h (lang_output_section_statement_type): Add section_relative_symbol. * ld/ldlang.c (strip_excluded_output_sections): Don't strip a section with a symbol relative to it. (lang_size_sections_1): Mark if an output section has a symbol symbol relative to it.
This prevents warnings like the following during stripping of debug info from kernel modules on i386:
===> zlib (all) ... objcopy --only-keep-debug zlib.ko.debug zlib.ko.symbols objcopy --strip-debug --add-gnu-debuglink=zlib.ko.symbols zlib.ko.debug zlib.ko BFD: zlib.ko: warning: allocated section `.plt' not in segment BFD: zlib.ko: warning: allocated section `.got' not in segment
show more ...
|
| dc9aea6c | 21-Oct-2010 |
Dimitry Andric <[email protected]> |
Reapply change from r210245. In binutils 2.17, the code in question has moved from ld/emultempl/elf32.em to ld/ldlang.c, so apply approximately the same change as upstream, which has description:
*
Reapply change from r210245. In binutils 2.17, the code in question has moved from ld/emultempl/elf32.em to ld/ldlang.c, so apply approximately the same change as upstream, which has description:
* ldlang.c (lang_insert_orphan): Add __start_<section> symbol assignment inside output section statement. Ensure only one set of symbols per output section. * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-dollar sections before dollar sections. Correct add_child list insertion.
Taken from upstream git commit 7e01d69a19a8fd079887f26853c8565da15ff340, with permission to use it under GPLv2 from the author.
show more ...
|