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]

[PATCH][GOLD] Treat R_ARM_PREL31 as a function call in Target_arm::Scan::get_reference_flags


Hi,

    This patch fixes a number of test breakage in which R_ARM_PREL31
relocations point to weak symbols of personality routines in ARM
unwind tables.  The existing code does not general PLTs for references
from R_ARM_PREL31 and ultimately it causes tests to crash on ARM.  The
patch was tested on armv7l-linux-gnueabi in qemu.

-Doug

2010-12-07  Doug Kwan  <dougkwan@google.com>

        * arm.cc (Target_arm::Scan::get_reference_flags): Treat R_ARM_PREL31
        like function call relocations.

Attachment: patch-prel31.txt
Description: Text document


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