[Bug debugedit/31653] RISC-V: readelf fails to apply R_RISCV_SET/SUB_ULEB128 relocations: [debugedit 5.0] testsuite: 10 11 19 23 failed

laokz at foxmail dot com sourceware-bugzilla@sourceware.org
Mon Nov 4 04:12:44 GMT 2024


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

--- Comment #6 from laokz <laokz at foxmail dot com> ---
(In reply to Mark Wielaard from comment #5)
> Created attachment 15777 [details]
> 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?
Yes. I tried and it worked! (rebased against our debugedit-5.0 package)
> 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
Indeed.

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


More information about the Debugedit mailing list