This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ports/10201] ld.so fails to link on alpha due to relocation errors


------- Additional Comments From vapier at gentoo dot org  2010-05-04 22:50 -------
i added this to the Gentoo patchset because i was hitting this error.  my system
is obviously using Gentoo patches, but they are by & large bug fixes/backports.
 i havent attempted a pure vanilla build since gcc/glibc vanilla releases of
late tend to have problems on alpha, and because i dont believe the original
reporter here is using Gentoo.

perhaps the important piece is that we're both targeting alphaev68-linux-gnu and
not something like alpha-linux-gnu ...

this is the build failure as seen with gcc-4.4.3 and glibc-2.11.1 (reformatted
slightly for bugzilla comment posting):
alphaev68-unknown-linux-gnu-gcc -nostdlib -nostartfiles -shared \
  -Wl,-z,now -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both \
  -Wl,-z,defs -Wl,--verbose 2>&1 \
  | LC_ALL=C sed \
    -e '/^=========/,/^=========/!d;/^=========/d' \
    -e 's/\. = .* + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
  > ${build}/elf/ld.so.lds
alphaev68-unknown-linux-gnu-gcc -nostdlib -nostartfiles -shared \
  -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,defs -Wl,-z,now \
  -o ${build}/elf/ld.so ${build}/elf/librtld.os \
  -Wl,--version-script=${build}/ld.map \
  -Wl,-soname=ld-linux.so.2 \
  -T ${build}/elf/ld.so.lds
${build}/elf/librtld.os: In function `security_init':
(.text+0x7a8): relocation truncated to fit: GPREL16 against symbol `_dl_random'
defined in .data.rel.ro section in ${build}/elf/librtld.os
${build}/elf/librtld.os: In function `security_init':
(.text+0x818): relocation truncated to fit: GPREL16 against symbol `_dl_random'
defined in .data.rel.ro section in ${build}/elf/librtld.os
collect2: ld returned 1 exit status
make[2]: *** [${build}/elf/ld.so] Error 1

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |toolchain at gentoo dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10201

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]