https://sourceware.org/bugzilla/show_bug.cgi?id=33328
--- Comment #5 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by H.J. Lu <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=955b8e0939701b9d150556a300558fa0fb8f6ba8 commit 955b8e0939701b9d150556a300558fa0fb8f6ba8 Author: H.J. Lu <[email protected]> Date: Wed Sep 3 06:48:24 2025 -0700 readelf: Don't change the symbol table 1. Update dump_relr_relocations not to change the symbol table. 2. Update count_relr_relocations and dump_relr_relocations not to retrieve the same data twice. binutils/ PR binutils/33328 * readelf.c (count_relr_relocations): Add an argument to return the retrieved data and remove the FIXME in comments. (dump_relr_relocations): Add an argument for the retrieved data. Retrieve the data if needed. Don't change the symbol table and remove the FIXME in comments. (display_relocations): Get the data from count_relr_relocations and pass it to dump_relr_relocations call. (process_relocs): Pass NULL to dump_relr_relocations. ld/ PR binutils/33328 * testsuite/ld-i386/dt-relr-2.d: New file. * testsuite/ld-i386/dt-relr-2.s: Likewise. * testsuite/ld-x86-64/dt-relr-2-x32.d: Likewise. * testsuite/ld-x86-64/dt-relr-2.d: Likewise. * testsuite/ld-x86-64/dt-relr-2.s: Likewise. * testsuite/ld-i386/i386.exp: Run dt-relr-2. * testsuite/ld-x86-64/x86-64.exp: Run dt-relr-2 and dt-relr-2-x32. Signed-off-by: H.J. Lu <[email protected]> -- You are receiving this mail because: You are on the CC list for the bug.
