diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-11-29 06:00:37 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-11-29 06:00:50 -0800 |
commit | 568cbddc710f6cb6be752f390a1521cd5556ad9b (patch) | |
tree | 8953d9b7c53cab14e7bc302a3bf66524dcb3686f /gold/ChangeLog | |
parent | 8ca751ee637ce1b8d1b284a794ffdb327951d0f8 (diff) | |
download | gdb-568cbddc710f6cb6be752f390a1521cd5556ad9b.zip gdb-568cbddc710f6cb6be752f390a1521cd5556ad9b.tar.gz gdb-568cbddc710f6cb6be752f390a1521cd5556ad9b.tar.bz2 |
gold: Convert x86-64 GOTPCRELX only if addend == -4
Convert x86-64 GOTPCRELX relocations only if addend == -4.
PR gold/26939
* x86_64.cc (Target_x86_64<size>::Scan::local): Check
get_r_addend() == -4 for GOTPCRELX conversion.
(Target_x86_64<size>::Scan::global): Likewise.
(Target_x86_64<size>::Relocate::relocate): Likewise.
* testsuite/Makefile.am (check_DATA): Add
x86_64_mov_to_lea15.stdout and x86_64_mov_to_lea16.stdout.
(MOSTLYCLEANFILES): Add x86_64_mov_to_lea15 and
x86_64_mov_to_lea16.
(x86_64_mov_to_lea9.o): New target.
(x86_64_mov_to_lea10.o): Likewise.
(x86_64_mov_to_lea15): Likewise.
(x86_64_mov_to_lea16): Likewise.
(x86_64_mov_to_lea15.stdout): Likewise.
(x86_64_mov_to_lea16.stdout): Likewise.
* testsuite/Makefile.in: Regenerated.
* testsuite/x86_64_mov_to_lea.sh: Updated.
* testsuite/x86_64_mov_to_lea5.s: New file.
Diffstat (limited to 'gold/ChangeLog')
-rw-r--r-- | gold/ChangeLog | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 1e90cbd..53bb030 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,5 +1,26 @@ 2020-11-29 H.J. Lu <hongjiu.lu@intel.com> + PR gold/26939 + * x86_64.cc (Target_x86_64<size>::Scan::local): Check + get_r_addend() == -4 for GOTPCRELX conversion. + (Target_x86_64<size>::Scan::global): Likewise. + (Target_x86_64<size>::Relocate::relocate): Likewise. + * testsuite/Makefile.am (check_DATA): Add + x86_64_mov_to_lea15.stdout and x86_64_mov_to_lea16.stdout. + (MOSTLYCLEANFILES): Add x86_64_mov_to_lea15 and + x86_64_mov_to_lea16. + (x86_64_mov_to_lea9.o): New target. + (x86_64_mov_to_lea10.o): Likewise. + (x86_64_mov_to_lea15): Likewise. + (x86_64_mov_to_lea16): Likewise. + (x86_64_mov_to_lea15.stdout): Likewise. + (x86_64_mov_to_lea16.stdout): Likewise. + * testsuite/Makefile.in: Regenerated. + * testsuite/x86_64_mov_to_lea.sh: Updated. + * testsuite/x86_64_mov_to_lea5.s: New file. + +2020-11-29 H.J. Lu <hongjiu.lu@intel.com> + PR gold/26937 * object.cc (Sized_relobj_file::map_to_kept_section): Get the section index for linkonce section. Also check the single |