[RFC PATCH] bfd: Handle objcopy --only-keep-debug in _bfd_elf_init_private_section_data()

Peilin Ye yepeilin.cs@gmail.com
Fri Jan 28 23:37:43 GMT 2022


Hi Nick and Alan,

Thanks for the suggestion!  I tried both approaches but wasn't sure
which one is better.

I've tested v2 with the binutils testsuite.

On Fri, Jan 28, 2022 at 11:22:36PM +1030, Alan Modra wrote:
> Do you have a testcase we could add to the binutils testsuite?

Not yet, I just noticed that we have a
keep_debug_symbols_and_test_copy() test in objcopy.exp, I can take a
look later today if needed.

Thanks,
Peilin Ye
<peilin.ye@bytedance.com>



More information about the Binutils mailing list