]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - ld/ChangeLog
ld: Support customized output section type
authorFangrui Song <maskray@google.com>
Wed, 16 Feb 2022 17:41:23 +0000 (17:41 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 16 Feb 2022 17:41:23 +0000 (17:41 +0000)
commitc212f39d9a82c6c09f4a1447d9d2ff09843827c5
tree4dcd736239b6373674032ce36fa62ecd9ea67883
parent1f841a9348f189a8ee4423eb416d6e5495b5b49d
ld: Support customized output section type

bfd/
    PR ld/28841
    * bfd-in2.h (struct bfd_section): Add type.
    (discarded_section): Add field.
    * elf.c (elf_fake_sections): Handle bfd_section::type.
    * section.c (BFD_FAKE_SECTION): Add field.
    * mri.c (mri_draw_tree): Update function call.

ld/
    PR ld/28841
    * ld.texi: Document new output section type.
    * ldlex.l: Add new token TYPE.
    * ldgram.y: Handle TYPE=exp.
    * ldlang.h: Add type_section to list of section types.
    * ldlang.c (lang_add_section): Handle type_section.
    (map_input_to_output_sections): Handle type_section.
    * testsuite/ld-scripts/output-section-types.t: Add tests.
    * testsuite/ld-scripts/output-section-types.d: Update.
14 files changed:
bfd/ChangeLog
bfd/bfd-in2.h
bfd/elf.c
bfd/section.c
ld/ChangeLog
ld/NEWS
ld/ld.texi
ld/ldgram.y
ld/ldlang.c
ld/ldlang.h
ld/ldlex.l
ld/mri.c
ld/testsuite/ld-scripts/output-section-types.d
ld/testsuite/ld-scripts/output-section-types.t