[Bug debugedit/31653] RISC-V: readelf fails to apply R_RISCV_SET/SUB_ULEB128 relocations: [debugedit 5.0] testsuite: 10 11 19 23 failed
mark at klomp dot org
sourceware-bugzilla@sourceware.org
Sun Nov 3 16:47:12 GMT 2024
https://sourceware.org/bugzilla/show_bug.cgi?id=31653
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at sourceware dot org |mark at klomp dot org
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0 |1
Last reconfirmed| |2024-11-03
--- Comment #5 from Mark Wielaard <mark at klomp dot org> ---
Created attachment 15777
--> https://sourceware.org/bugzilla/attachment.cgi?id=15777&action=edit
Ignore stderr in AT_CHECK for readelf stderr warnings
Aha, OK now I understand how to replicate it.
./configure CC="gcc -O2 -g"
Will do the same. Always run gcc with -O2 even in the testsuite.
Even though I think you should not add extra compiler flags to the testsuite I
see how if you do warnings from readelf would be an issue.
Luckily it is easy to ignore stderr warnings with AT_CHECK.
Could you try the attached patch?
If there is no bug yet, we should file a binutils bug against readelf
(apply_relocations) should handle R_RISCV_SET_ULEB128 and R_RISCV_SUB_ULEB128
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Debugedit
mailing list