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

--- Comment #1 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <h...@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=412164f0a99a827a04394c7731c25084e794bcf4

commit 412164f0a99a827a04394c7731c25084e794bcf4
Author: H.J. Lu <hjl.to...@gmail.com>
Date:   Fri Jun 13 13:33:32 2025 +0800

    elf: Return false if output_section is NULL

    Return false if output_section is NULL so that on input

    https://sourceware.org/bugzilla/attachment.cgi?id=16131

    objcopy generates

    objcopy: /tmp/objcopy-poc(OrcError.cpp.o): invalid entry (0x22000000) in
group [3]
    objcopy: /tmp/objcopy-poc(OrcError.cpp.o): invalid entry (0x21000000) in
group [3]
    objcopy:
/tmp/objcopy-poc(OrcError.cpp.o)(.text._ZNK12_GLOBAL__N_116OrcErrorCategory7messageB5cxx11Ei):
relocation 29 has invalid symbol index 1160982879
    objcopy:
/tmp/stv73zYw/OrcError.cpp.o[.text._ZN4llvm3orc8orcErrorENS0_12OrcErrorCodeE]:
bad value

    instead of

    objcopy: /tmp/objcopy-poc(OrcError.cpp.o): invalid entry (0x22000000) in
group [3]
    objcopy: /tmp/objcopy-poc(OrcError.cpp.o): invalid entry (0x21000000) in
group [3]
    objcopy:
/tmp/objcopy-poc(OrcError.cpp.o)(.text._ZNK12_GLOBAL__N_116OrcErrorCategory7messageB5cxx11Ei):
relocation 29 has invalid symbol index 1160982879
    Segmentation fault (core dumped)

            PR binutils/33075
            * elf.c (elf_map_symbols): Return false if output_section is
            NULL.

    Signed-off-by: H.J. Lu <hjl.to...@gmail.com>

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

Reply via email to