bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/31503] [hppa] Unsupported 14-bit PA 2.0 relocations for 32-bit (


From: dave.anglin at bell dot net
Subject: [Bug ld/31503] [hppa] Unsupported 14-bit PA 2.0 relocations for 32-bit (narrow) mode (elf32-hppa.c)
Date: Thu, 28 Mar 2024 15:11:51 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=31503

--- Comment #8 from dave.anglin at bell dot net ---
I already tried it.  It also sometimes fails to align the $global$ address.

spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir/./gcc/xg++ -shared-libgcc
-B/home
/dave/gnu/gcc/objdir/./gcc -nostdinc++
-L/home/dave/gnu/gcc/objdir/hppa-linux-gn
u/libstdc++-v3/src
-L/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/src/.
libs -L/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/
home/dave/opt/gnu/gcc/gcc-14/hppa-linux-gnu/bin/
-B/home/dave/opt/gnu/gcc/gcc-14
/hppa-linux-gnu/lib/ -isystem
/home/dave/opt/gnu/gcc/gcc-14/hppa-linux-gnu/inclu
de -isystem /home/dave/opt/gnu/gcc/gcc-14/hppa-linux-gnu/sys-include
-fchecking=
1 -B/home/dave/gnu/gcc/objdir/hppa-linux-gnu/./libstdc++-v3/src/.libs
-fmessage-
length=0 -fno-show-column -ffunction-sections -fdata-sections -g -O2
-D_GNU_SOUR
CE -DLOCALEDIR="." -nostdinc++
-I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstd
c++-v3/include/hppa-linux-gnu
-I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc
++-v3/include -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++
-I/home/dave/gnu/g
cc/gcc/libstdc++-v3/include/backward
-I/home/dave/gnu/gcc/gcc/libstdc++-v3/tests
uite/util
/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/23_containers/vector/req
uirements/exception/generation_prohibited.cc -std=gnu++17 -include
bits/stdc++.h
  -fdiagnostics-plain-output ./libtestc++.a -Wl,--gc-sections
-L/home/dave/gnu/gc
c/objdir/hppa-linux-gnu/libstdc++-v3/src/filesystem/.libs
-L/home/dave/gnu/gcc/o
bjdir/hppa-linux-gnu/libstdc++-v3/src/experimental/.libs -lm -o
./generation_pro
hibited.exe
/home/dave/opt/gnu/bin/ld: 
/tmp/cc2Eie9V.o(.text._ZN10__gnu_test10setup_base8populateISt6vectorIN9__gnu_cxx18throw_value_randomENS3_22throw_allocator_randomIS4_EEELb1EEC2ERS7_[_ZN10__gnu_test10setup_base8populateISt6vectorIN9__gnu_cxx18throw_value_randomENS3_22throw_allocator_randomIS4_EEELb1EEC5ERS7_]+0x288):
 
displacement 0x5cc for insn 0x51370002 is not a multiple of 8 (gp 0x161c4)
/home/dave/opt/gnu/bin/ld: 
/tmp/cc2Eie9V.o(.text._ZN10__gnu_test10setup_base8populateISt6vectorIN9__gnu_cxx18throw_value_randomENS3_22throw_allocator_randomIS4_EEELb1EEC2ERS7_[_ZN10__gnu_test10setup_base8populateISt6vectorIN9__gnu_cxx18throw_value_randomENS3_22throw_allocator_randomIS4_EEELb1EEC5ERS7_]+0x288):
 
cannot handle R_PARISC_DPREL14R for
_ZZN9__gnu_cxx16random_condition8generateEvE9generator
/home/dave/opt/gnu/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
compiler exited with status 1
FAIL: 23_containers/vector/requirements/exception/generation_prohibited.cc
-std=gnu++17 (test for excess errors)
Excess errors:
/home/dave/opt/gnu/bin/ld: 
/tmp/cc2Eie9V.o(.text._ZN10__gnu_test10setup_base8populateISt6vectorIN9__gnu_cxx18throw_value_randomENS3_22throw_allocator_randomIS4_EEELb1EEC2ERS7_[_ZN10__gnu_test10setup_base8populateISt6vectorIN9__gnu_cxx18throw_value_randomENS3_22throw_allocator_randomIS4_EEELb1EEC5ERS7_]+0x288):
 
displacement 0x5cc for insn 0x51370002 is not a multiple of 8 (gp 0x161c4)
/home/dave/opt/gnu/bin/ld: 
/tmp/cc2Eie9V.o(.text._ZN10__gnu_test10setup_base8populateISt6vectorIN9__gnu_cxx18throw_value_randomENS3_22throw_allocator_randomIS4_EEELb1EEC2ERS7_[_ZN10__gnu_test10setup_base8populateISt6vectorIN9__gnu_cxx18throw_value_randomENS3_22throw_allocator_randomIS4_EEELb1EEC5ERS7_]+0x288):
 
cannot handle R_PARISC_DPREL14R for
_ZZN9__gnu_cxx16random_condition8generateEvE9generator
/home/dave/opt/gnu/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status

The gp value is 4-byte aligned (0x161c4).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]