Bug 22083 - run-strip-strmerge.sh test fail on i686
Summary: run-strip-strmerge.sh test fail on i686
Status: UNCONFIRMED
Alias: None
Product: elfutils
Classification: Unclassified
Component: libelf (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-04 16:15 UTC by Laurent Carlier
Modified: 2017-10-15 14:50 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
elfstrmerge.o file (22.61 KB, application/octet-stream)
2017-09-04 18:35 UTC, Laurent Carlier
Details
run-strip-strmerge.sh result without -fno-plt (22.49 KB, application/x-object)
2017-10-15 14:47 UTC, Laurent Carlier
Details
run-strip-strmerge.sh result with -fno-plt (22.30 KB, application/x-object)
2017-10-15 14:50 UTC, Laurent Carlier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Carlier 2017-09-04 16:15:41 UTC
* elfutils-0.170
* glibc 2.26
* gcc 7.2.0

----test-suite.log----
==========================================
   elfutils 0.170: tests/test-suite.log
==========================================

# TOTAL: 174
# PASS:  169
# SKIP:  4
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: run-strip-strmerge.sh
===========================

elflint /build/elfutils/src/elfutils-0.170/tests/elfstrmerge
No errors
elfstrmerge
elflint merged.elf
No errors
strip
elflint merged.elf.stripped
No errors
elflint merged.elf.debug
No errors
unstrip
elflint remerged.elf
No errors
elfcmp
elflint /build/elfutils/src/elfutils-0.170/tests/elfstrmerge.o
No errors
elfstrmerge
elflint merged.elf
No errors
strip
elflint merged.elf.stripped
No errors
elflint merged.elf.debug
No errors
unstrip
/build/elfutils/src/elfutils-0.170/src/unstrip: invalid string offset in symbol [1]
FAIL run-strip-strmerge.sh (exit status: 1)

SKIP: run-backtrace-data.sh
===========================

/build/elfutils/src/elfutils-0.170/tests/backtrace-data: Unwinding not supported for this architecture
data: arch not supported
SKIP run-backtrace-data.sh (exit status: 77)

SKIP: run-backtrace-native-biarch.sh
====================================

biarch testing disabled
SKIP run-backtrace-native-biarch.sh (exit status: 77)

SKIP: run-backtrace-native-core.sh
==================================

No core.14739 file generated
SKIP run-backtrace-native-core.sh (exit status: 77)

SKIP: run-backtrace-native-core-biarch.sh
=========================================

biarch testing disabled
SKIP run-backtrace-native-core-biarch.sh (exit status: 77)

-------------------------
Comment 1 Mark Wielaard 2017-09-04 17:57:41 UTC
I couldn't replicate this with gcc 7.1.1.
Would you mind attaching your tests/elfstrmerge.o object file?
Comment 2 Laurent Carlier 2017-09-04 18:35:15 UTC
Created attachment 10394 [details]
elfstrmerge.o file
Comment 3 Mark Wielaard 2017-09-04 21:13:47 UTC
Thanks. Replicated with that object file. But not yet understood.
Comment 4 Laurent Carlier 2017-09-19 06:19:21 UTC
(In reply to Mark Wielaard from comment #3)
> Thanks. Replicated with that object file. But not yet understood.

Filtering -fno-plt from CFLAGS fixes the issue
Comment 5 Mark Wielaard 2017-09-19 13:51:02 UTC
(In reply to Laurent Carlier from comment #4)
> (In reply to Mark Wielaard from comment #3)
> > Thanks. Replicated with that object file. But not yet understood.
> 
> Filtering -fno-plt from CFLAGS fixes the issue

Thanks. That is interesting. Would you mind also attaching the elfstrmerge.o file binary produced without -fno-plt? That would make it easier to see exactly what change in the binary causes the breakage.
Comment 6 Laurent Carlier 2017-10-15 14:47:28 UTC
Created attachment 10528 [details]
run-strip-strmerge.sh result without -fno-plt
Comment 7 Laurent Carlier 2017-10-15 14:50:51 UTC
Created attachment 10529 [details]
run-strip-strmerge.sh result with -fno-plt

Sorry for the delay, i built both with the same gcc/glibc