This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] -z relro + .dynsym STT_SECTION


> 	* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]