diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-11-30 20:40:38 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-12-01 16:40:43 -0800 |
commit | 1f1d0f8888a6c944e612b416a2a6e11abcf5199f (patch) | |
tree | c92392d84e68d9335fb7fbd23f075ad1cfb0f449 /gdb | |
parent | b18c2bb9f30eda51609cf3d2277960fc03920650 (diff) | |
download | binutils-1f1d0f8888a6c944e612b416a2a6e11abcf5199f.zip binutils-1f1d0f8888a6c944e612b416a2a6e11abcf5199f.tar.gz binutils-1f1d0f8888a6c944e612b416a2a6e11abcf5199f.tar.bz2 |
elf: Discard input .note.gnu.build-id sections
1. Discard input .note.gnu.build-id sections.
2. Clear the build ID field before writing.
3. Use bfd_make_section_anyway_with_flags to create the output
.note.gnu.build-id section.
PR ld/28639
* ldelf.c (ldelf_after_open): Discard input .note.gnu.build-id
sections, excluding the first one.
(write_build_id): Clear the build ID field before writing.
(ldelf_setup_build_id): Use bfd_make_section_anyway_with_flags
to create the output .note.gnu.build-id section.
* testsuite/ld-elf/build-id.exp: New file.
* testsuite/ld-elf/pr28639a.rd: Likewise.
* testsuite/ld-elf/pr28639b.rd: Likewise.
* testsuite/ld-elf/pr28639c.rd: Likewise.
* testsuite/ld-elf/pr28639d.rd: Likewise.
Diffstat (limited to 'gdb')
0 files changed, 0 insertions, 0 deletions