[PATCH] -z relro + .dynsym STT_SECTION
Eric Botcazou
ebotcazou@act-europe.fr
Tue Jun 15 14:16:00 GMT 2004
> * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
> Create separate .got.plt section if SEPARATE_GOTPLT.
> Move sections which are only written during relocation handling
> to the beginning of RW segment. If NO_SMALL_DATA, move .got
> before .data. Add DATA_SEGMENT_RELRO_END directive.
> Include OTHER_RELRO_SECTIONS.
These bits
+ /* Exception handling */
+ .eh_frame ${RELOCATING-0} : { KEEP (*(.eh_frame)) }
+ .gcc_except_table ${RELOCATING-0} : { *(.gcc_except_table) }
- .eh_frame ${RELOCATING-0} : { KEEP (*(.eh_frame)) }
- .gcc_except_table ${RELOCATING-0} : { KEEP (*(.gcc_except_table))
*(.gcc_except_table.*) }
broke the gc mechanism used for Ada in presence of DWARF-2 EH.
Would you mind fixing the problem? Thanks.
--
Eric Botcazou
More information about the Binutils
mailing list