Add x32 support to prelink

Mark Hatle mark.hatle@windriver.com
Wed Dec 21 21:36:00 GMT 2011


Attached are two patches required to enable x32 support in the prelinker.  (And 
of course updates to your the local prelink.conf to add the x32 library directory.)

The first change 0001-... modifies the way the PL_ARCH is defined.  This patch 
has been used for a long time in the cross-prelinker work.  The patch was 
originally written as part of some Code Sourcery, LLC (now part of Mentor 
Graphics) work.  The purpose of it is to enable multiple architecture 
definitions within a single arch-...c file.

The second change relies on the first, and implements the x32 ABI specs.  Within 
the specs "https://sites.google.com/site/x32abi/documents/abi.pdf", both x86-64 
and x86-64 x32 are defined.  A new local define was added to switch between 
32-bit and 64-bit read/write operations based on the value of ELFCLASS32.

Please let me know if you have any questions, or if either of these needs any 
refactoring to be accepted in the upstream source.

Thanks!
--Mark
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Implement-PL_ARCH-arch.patch
URL: <http://sourceware.org/pipermail/prelink/attachments/20111221/8cd2f062/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-Add-support-for-new-X86_64-x32-ABI.patch
URL: <http://sourceware.org/pipermail/prelink/attachments/20111221/8cd2f062/attachment-0001.ksh>


More information about the Prelink mailing list