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]

[GOLD][PATCH] Use PIC ARM stubs in position independent executables too.


Hi Ian,

    This is a simple fix for a problem in ARM stubs in PIE.  Currently
we use some non-PIC stubs in a PIE, making the executable not really
position independent and causes it to crash.  This fix is to change
the selection of PIC/non-PIC stub using
options().output_is_position_independent() instead of
options().shared().

-Doug

2012-02-02  Doug Kwan  <dougkwan@google.com>

        * arm.cc (Reloc_stub::stub_type_for_reloc): Use PIC stubs in all
        position independent outputs, not just shared objects.

Attachment: patch-pie.txt
Description: Text document


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