[PATCH] riscv: Ignore attributes in empty input file
Kito Cheng
kito.cheng@gmail.com
Wed Sep 16 08:00:14 GMT 2026
LGTM, thanks :)
H.J. Lu <hjl.tools@gmail.com> 於 2026年5月28日週四 下午5:31寫道:
>
> Ignore empty and .note.gnu.build-id sections when merging attributes.
> The following linker tests now pass for riscv:
>
> FAIL: Diagnostics - Wrong magic number mixed with valid CTF sections
> FAIL: --gc-sections with --defsym
> FAIL: --gc-sections with KEEP
> FAIL: --gc-sections with __start_SECTIONNAME
> FAIL: ld-plugin/lto-10r
> FAIL: ld-plugin/lto-3r
> FAIL: ld-plugin/lto-4r-a
> FAIL: ld-plugin/lto-4r-b
> FAIL: ld-plugin/lto-4r-c
> FAIL: ld-plugin/lto-4r-d
> FAIL: ld-plugin/lto-5r
> FAIL: PR ld/19317 (2)
> FAIL: PR ld/19317 (3)
>
> PR ld/34185
> * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Ignore
> attributes in empty input file
>
>
> --
> H.J.
More information about the Binutils
mailing list