https://sourceware.org/bugzilla/show_bug.cgi?id=34125
--- Comment #6 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The binutils-2_46-branch branch has been updated by H.J. Lu <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1f5796eedaf99ad287e347f3dd31a75d71fd4402 commit 1f5796eedaf99ad287e347f3dd31a75d71fd4402 Author: Calvin Owens <[email protected]> Date: Sat May 2 10:03:21 2026 +0930 Fix discarded-qualifiers problems in ldlang.c Assign strchr return to a const char* to match its arg in a couple of places. archive_path now returns a const char*, and input_statement_is_archive_path now has a const char* sep arg. If you follow where these args come from in ldgram.y it can be seen that they are in fact in writable memory, so it isn't necessary to copy file_spec to poke in a zero which is restored before the function returns. This partially fixes PR binutils/34125. Signed-off-by: Calvin Owens <[email protected]> Signed-off-by: Alan Modra <[email protected]> (cherry picked from commit 65cd0d66a647f14719e69bd19f34dc98bdb7e635) -- You are receiving this mail because: You are on the CC list for the bug.
