https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117851
Bug ID: 117851
Summary: all amdgcn offload tests fail with a host compiler
configured with --enable-default-pie
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgomp
Assignee: unassigned at gcc dot gnu.org
Reporter: doko at gcc dot gnu.org
CC: jakub at gcc dot gnu.org
Target Milestone: ---
seen with 14 and trunk, and probably earlier versions. All libgomp offloading
tests are marked as failing with a compiler configured with
--enable-default-pie:
... -lm -o ./baseptrs-2.exe
/usr/bin/x86_64-linux-gnu-ld: /tmp/cc3qATrI.crtoffloadtable.o: warning:
relocation against `__offload_vars_end' in read-on
ly section `.rodata'
/usr/bin/x86_64-linux-gnu-ld: warning: creating DT_TEXTREL in a PIE
FAIL: libgomp.c++/../libgomp.c-c++-common/baseptrs-2.c (test for excess errors)
Excess errors:
/usr/bin/x86_64-linux-gnu-ld: /tmp/cc3qATrI.crtoffloadtable.o: warning:
relocation against `__offload_vars_end' in read-on
ly section `.rodata'
/usr/bin/x86_64-linux-gnu-ld: warning: creating DT_TEXTREL in a PIE
[...]
PASS: libgomp.c++/../libgomp.c-c++-common/baseptrs-2.c execution test
the test is then passing, but fails with the excess output.