diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-08-28 19:14:49 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-04-22 15:35:22 -0700 |
commit | 13c0312b6922320d1b30f2ac5f3d1bcffbeb9ca0 (patch) | |
tree | a6797a99651c527fce38f748e5a925a50e354741 /Makefile.in | |
parent | c268ae83811503630dec543329ab4c2762d3916d (diff) | |
download | gcc-13c0312b6922320d1b30f2ac5f3d1bcffbeb9ca0.tar.gz |
Load external function address via GOT slot
For -fno-plt, we load the external function address via the GOT slot
so that linker won't create an PLT entry for extern function address.
gcc/
PR target/pr67400
* config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
* config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
(ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
ix86_force_load_from_GOT_p returns true.
(ix86_print_operand_address): Support UNSPEC_GOTPCREL if
ix86_force_load_from_GOT_p returns true.
(ix86_expand_move): Load the external function address via the
GOT slot if ix86_force_load_from_GOT_p returns true.
* config/i386/predicates.md (x86_64_immediate_operand): Return
false if ix86_force_load_from_GOT_p returns true.
gcc/testsuite/
PR target/pr67400
* gcc.target/i386/pr67400-1.c: New test.
* gcc.target/i386/pr67400-2.c: Likewise.
* gcc.target/i386/pr67400-3.c: Likewise.
* gcc.target/i386/pr67400-4.c: Likewise.
Diffstat (limited to 'Makefile.in')
0 files changed, 0 insertions, 0 deletions