Bug 29112

Summary: run-elflint-self.sh and run-reverse-sections-self.sh fail on ia64 with "PLTGOT value must point into loaded segment"
Product: elfutils Reporter: matoro <matoro_bugzilla_glibc>
Component: generalAssignee: Not yet assigned to anyone <unassigned>
Status: UNCONFIRMED ---    
Severity: normal CC: elfutils-devel, matoro_bugzilla_glibc, sam
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description matoro 2022-05-02 01:40:58 UTC
In elfutils unit tests, the following tests fail on ia64:

FAIL: run-elflint-self.sh
=========================

section [21] '.dynamic': entry 16: PLTGOT value must point into loaded segment
*** failure in /var/tmp/portage/dev-libs/elfutils-0.187/work/elfutils-0.187-.ia64/src/elflint --quiet --gnu-ld /var/tmp/portage/dev-libs/elfutils-0.187/work/elf>
section [20] '.dynamic': entry 15: PLTGOT value must point into loaded segment
*** failure in /var/tmp/portage/dev-libs/elfutils-0.187/work/elfutils-0.187-.ia64/src/elflint --quiet --gnu-ld /var/tmp/portage/dev-libs/elfutils-0.187/work/elf>
section [21] '.dynamic': entry 16: PLTGOT value must point into loaded segment
*** failure in /var/tmp/portage/dev-libs/elfutils-0.187/work/elfutils-0.187-.ia64/src/elflint --quiet --gnu-ld /var/tmp/portage/dev-libs/elfutils-0.187/work/elf>
section [21] '.dynamic': entry 15: PLTGOT value must point into loaded segment
*** failure in /var/tmp/portage/dev-libs/elfutils-0.187/work/elfutils-0.187-.ia64/src/elflint --quiet --gnu-ld /var/tmp/portage/dev-libs/elfutils-0.187/work/elf>
section [21] '.dynamic': entry 15: PLTGOT value must point into loaded segment
*** failure in /var/tmp/portage/dev-libs/elfutils-0.187/work/elfutils-0.187-.ia64/src/elflint --quiet --gnu-ld /var/tmp/portage/dev-libs/elfutils-0.187/work/elf>
FAIL run-elflint-self.sh (exit status: 1)

FAIL: run-reverse-sections-self.sh
==================================
 
copy_elf: /var/tmp/portage/dev-libs/elfutils-0.187/work/elfutils-0.187-.ia64/src/addr2line -> addr2line.rev (read,reverse)
setshstrndx: 41
Swapping offsets of section 31 and 32
Swapping offsets of section 33 and 34
Swapping offsets of section 35 and 36
Swapping offsets of section 37 and 38
Swapping offsets of section 40 and 41
section [21] '.dynamic': entry 16: PLTGOT value must point into loaded segment
FAIL run-reverse-sections-self.sh (exit status: 1)


This is not a regression, and has been observed since at least elfutils 0.158 (https://bugs.gentoo.org/501630) and still occurs on elfutils 0.187.