public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/12156] New: ARM libraries do not have unique function pointers
@ 2003-09-03 17:53 drow at gcc dot gnu dot org
2003-09-20 15:26 ` [Bug target/12156] " drow at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: drow at gcc dot gnu dot org @ 2003-09-03 17:53 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12156
Summary: ARM libraries do not have unique function pointers
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: drow at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: armv5tel-unknown-linux-gnu
GCC target triplet: armv5tel-unknown-linux-gnu
Non-call references to a function in a PIC library are always supposed
to load its address from the GOT, so that the function pointer will
point to the PLT stub in the application. This lets the function pointer
be compared from within other objects. Tests for this are in the GNU ld
testsuite, in ld-elfvsb. (You need to run the testsuite natively on an
ELF target to see these, in 2.14. I think some of them will run on the sim
now?)
Loads of a function pointer (see shlib_shlibvar1 in ld-elfvsb/sh1.c) emit
GOTOFF references. These bypass the GOT and access the function's start
PC-relatively based on the GOT address. This causes a number of failures
in the binutils testsuite on arm-linux.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/12156] ARM libraries do not have unique function pointers
2003-09-03 17:53 [Bug target/12156] New: ARM libraries do not have unique function pointers drow at gcc dot gnu dot org
@ 2003-09-20 15:26 ` drow at gcc dot gnu dot org
2003-09-28 15:19 ` pb at gcc dot gnu dot org
2003-10-17 18:18 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: drow at gcc dot gnu dot org @ 2003-09-20 15:26 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12156
drow at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pb at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/12156] ARM libraries do not have unique function pointers
2003-09-03 17:53 [Bug target/12156] New: ARM libraries do not have unique function pointers drow at gcc dot gnu dot org
2003-09-20 15:26 ` [Bug target/12156] " drow at gcc dot gnu dot org
@ 2003-09-28 15:19 ` pb at gcc dot gnu dot org
2003-10-17 18:18 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pb at gcc dot gnu dot org @ 2003-09-28 15:19 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12156
pb at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
------- Additional Comments From pb at gcc dot gnu dot org 2003-09-28 12:39 -------
Fixed (in HEAD) with this patch:
* config/arm/arm.c (legitimize_pic_address): Check
SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
(arm_assemble_integer): Likewise.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/12156] ARM libraries do not have unique function pointers
2003-09-03 17:53 [Bug target/12156] New: ARM libraries do not have unique function pointers drow at gcc dot gnu dot org
2003-09-20 15:26 ` [Bug target/12156] " drow at gcc dot gnu dot org
2003-09-28 15:19 ` pb at gcc dot gnu dot org
@ 2003-10-17 18:18 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 18:18 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12156
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.4
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-10-17 18:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-03 17:53 [Bug target/12156] New: ARM libraries do not have unique function pointers drow at gcc dot gnu dot org
2003-09-20 15:26 ` [Bug target/12156] " drow at gcc dot gnu dot org
2003-09-28 15:19 ` pb at gcc dot gnu dot org
2003-10-17 18:18 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).