diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-05-11 11:10:18 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-05-11 11:10:18 +0000 |
commit | da76cfc9f992afe7a41ec298b28eac2974bb58d4 (patch) | |
tree | 3fe3899993b1d39725d9644cc5ed8fcc0457d606 /elfcpp | |
parent | fc508efca09957dd92d33c80855ef91e6337180f (diff) | |
download | binutils-redhat-da76cfc9f992afe7a41ec298b28eac2974bb58d4.tar.gz |
Handle R_X86_64_64 properly for x32
elfcpp/
PR gold/14091
* x86_64.h (R_X86_64_RELATIVE64): New.
gold/
PR gold/14091
* x86_64.cc (Target_x86_64::Scan::local): For x32, generate
R_X86_64_RELATIVE64 instead of R_X86_64_RELATIVE in case of
R_X86_64_64.
Diffstat (limited to 'elfcpp')
-rw-r--r-- | elfcpp/ChangeLog | 5 | ||||
-rw-r--r-- | elfcpp/x86_64.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/elfcpp/ChangeLog b/elfcpp/ChangeLog index 1ec14e8b30..4c25a870eb 100644 --- a/elfcpp/ChangeLog +++ b/elfcpp/ChangeLog @@ -1,3 +1,8 @@ +2012-05-11 H.J. Lu <hongjiu.lu@intel.com> + + PR gold/14091 + * x86_64.h (R_X86_64_RELATIVE64): New. + 2012-05-01 Cary Coutant <ccoutant@google.com> * dwarf.h (enum DW_TAG, enum DW_FORM, enum DW_AT, enum DW_ENCODING) diff --git a/elfcpp/x86_64.h b/elfcpp/x86_64.h index ae7d0a8ba5..a53beac947 100644 --- a/elfcpp/x86_64.h +++ b/elfcpp/x86_64.h @@ -91,6 +91,7 @@ enum R_X86_64_TLSDESC_CALL = 35, // Relaxable call through TLS descriptor R_X86_64_TLSDESC = 36, // 2 by 64-bit TLS descriptor R_X86_64_IRELATIVE = 37, // Adjust indirectly by program base + R_X86_64_RELATIVE64 = 38, // 64-bit adjust by program base // GNU vtable garbage collection extensions. R_X86_64_GNU_VTINHERIT = 250, R_X86_64_GNU_VTENTRY = 251 |