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] Fix 2 problems causing test failure on ARM.


Hi,

     This patch fixes two problems that cause regression tests failing
on ARM.  The first problem is that R_ARM_PREL31 and R_ARM_SBREL31 are
consider as non-PIC.   We never generate dynamic relocations for these
and they either point to local code sections or PLTs of personality
routines.   The second problem is that the test debug_msg.sh tries to
match source line numbers for uses of undefined symbols.  This is not
always possible.  On ARM, an instruction using a global may refer to
an address in a shared constant pool.  There is no meaningful way to
assign a single source line to the location containing the variable's
address.

-Doug

2010-02-26  Doug Kwan  <dougkwan@google.com>

        * arm.cc (Target_arm::Relocate::reloc_is_non_pic): Treat
        R_ARM_PREL31 and R_ARM_SBREL31 as position independent.
        * testsuite/debug_msg.sh: Avoid matching source line number for
        use of global variable undef_int.

Attachment: patch-regression.txt
Description: Text document


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