[gold] PowerPC PLT
David Edelsohn
dje.gcc@gmail.com
Sun Nov 16 21:15:00 GMT 2008
Attached is a starting point for 32-bit PowerPC Linux ABI secure-plt
PLT support.
The attached patch is broken in many ways and I primarily want to use it
as a strawman to understand gold internals better and figure out how to
implement the necessary functionality for the PowerPC ABI.
The revised 32-bit PowerPC Linux ABI allows the GOT to be non-executable.
The new PLT is composed of three parts: an array of function pointers, call
stubs that load the addresses, and code supporting dynamic linking (glink).
I am trying to understand how to map this to gold.
Does Output_data_space and add_output_section_data create a new section
or create a new view within a section?
Can Output_data_plt_powerpc::do_write() use the different spaces to materialize
all three pieces of the new PLT with a single iteration through the
PLT entires or
should the PLT be a single, undifferentiated blob that do_write()
iterates through --
appending the different pieces manually with three, separate loops over the PLT
entries?
Thanks, David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: powerpcplt-diff
Type: application/octet-stream
Size: 23796 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20081116/6d5d1cfc/attachment.obj>
More information about the Binutils
mailing list