[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/19091] sh: FDPIC linker fails to produce DT_PLTGOT for some file
From: |
bugdal at aerifal dot cx |
Subject: |
[Bug ld/19091] sh: FDPIC linker fails to produce DT_PLTGOT for some files |
Date: |
Sat, 10 Oct 2015 23:31:59 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=19091
--- Comment #2 from Rich Felker <bugdal at aerifal dot cx> ---
Even with no GOT, not PLT, and no function descriptors, it's possible to have
code which accesses local data via @GOTOFF displacements. If DT_PLTGOT is not
emitted in the output _DYNAMIC, there is no way for the caller (which gets the
GOT value from the dynamic linker, which in turn gets it from DT_PLTGOT) to
provide a correct GOT pointer when calling into the library, and thus any data
accesses via @GOTOFF displacements will be wrong.
I think DT_PLTGOT simply must always be emitted in FDPIC output. Would
something break if the size of the GOT is 0?
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/19091] New: sh: FDPIC linker fails to produce DT_PLTGOT for some files, bugdal at aerifal dot cx, 2015/10/09
- [Bug ld/19091] sh: FDPIC linker fails to produce DT_PLTGOT for some files, bugdal at aerifal dot cx, 2015/10/09
- [Bug ld/19091] sh: FDPIC linker fails to produce DT_PLTGOT for some files,
bugdal at aerifal dot cx <=
- [Bug ld/19091] sh: FDPIC linker fails to produce DT_PLTGOT for some files, kkojima at rr dot iij4u.or.jp, 2015/10/10
- [Bug ld/19091] sh: FDPIC linker fails to produce DT_PLTGOT for some files, kkojima at rr dot iij4u.or.jp, 2015/10/10
- [Bug ld/19091] sh: FDPIC linker fails to produce DT_PLTGOT for some files, bugdal at aerifal dot cx, 2015/10/10
- [Bug ld/19091] sh: FDPIC linker fails to produce DT_PLTGOT for some files, kkojima at rr dot iij4u.or.jp, 2015/10/11
- [Bug ld/19091] sh: FDPIC linker fails to produce DT_PLTGOT for some files, cvs-commit at gcc dot gnu.org, 2015/10/15