This is the mail archive of the binutils@sourceware.org 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: gold RELRO section detection on Sparc


From: David Miller <davem@davemloft.net>
Date: Sun, 08 Apr 2012 22:31:47 -0400 (EDT)

> Output_segment::is_first_section_relro() iterates over the orders
> trying to determine if the first data section other than the TLS
> section is RELRO.
 ...
> Can I just add "i == static_cast<i>ORDER_PLT" to the exceptions there
> and update the associated comment?
> 
> Alternatively, why don't we just start the loop at ORDER_RELRO_LOCAL?

Nevermind, I see what's going on here, the ORDER_* and
Layout::default_section_order() bits that are emulating the elf.sc
linker script doesn't handle cases like Sparc that need the PLT in the
data section after the relro bits.

Ian, any suggestions?


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