[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/28709] [RISC-V] a unused section can't be removed with -gc-secti
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug ld/28709] [RISC-V] a unused section can't be removed with -gc-sections |
Date: |
Tue, 28 Dec 2021 12:34:20 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28709
--- Comment #6 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by Alan Modra <amodra@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=443aa5f05edb58fc1774f926e9259b7c5a180926
commit 443aa5f05edb58fc1774f926e9259b7c5a180926
Author: Alan Modra <amodra@gmail.com>
Date: Tue Dec 21 01:09:13 2021 +1030
gas reloc sorting
In some cases, eg. riscv_pre_output_hook, gas generates out-of-order
relocations. Various places in the linker assume relocs are sorted
by increasing r_offset, which is normally the case. Provide
GAS_SORT_RELOCS to handle unsorted relocs.
bfd/
PR 28709
* elf32-nds32.c (nds32_insertion_sort): Make static.
* elf32-nds32.h (nds32_insertion_sort): Delete declaration.
gas/
PR 28709
* write.c (write_relocs): Implement reloc sorting by r_offset
when GAS_SORT_RELOCS.
* config/tc-nds32.c (compar_relent, nds32_set_section_relocs):
Delete.
* config/tc-nds32.h (nds32_set_section_relocs): Don't declare.
(SET_SECTION_RELOCS): Don't define.
(GAS_SORT_RELOCS): Define.
* config/tc-riscv.h (GAS_SORT_RELOCS): Define.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/28709] New: [RISC-V] a unused section can't be removed with -gc-sections, address@hidden, 2021/12/17
- [Bug ld/28709] [RISC-V] a unused section can't be removed with -gc-sections, amodra at gmail dot com, 2021/12/20
- [Bug ld/28709] [RISC-V] a unused section can't be removed with -gc-sections, amodra at gmail dot com, 2021/12/20
- [Bug ld/28709] [RISC-V] a unused section can't be removed with -gc-sections, amodra at gmail dot com, 2021/12/20
- [Bug ld/28709] [RISC-V] a unused section can't be removed with -gc-sections, lifang_xia at linux dot alibaba.com, 2021/12/21
- [Bug ld/28709] [RISC-V] a unused section can't be removed with -gc-sections, nelsonc1225 at sourceware dot org, 2021/12/27
- [Bug ld/28709] [RISC-V] a unused section can't be removed with -gc-sections, nelsonc1225 at sourceware dot org, 2021/12/27
- [Bug ld/28709] [RISC-V] a unused section can't be removed with -gc-sections,
cvs-commit at gcc dot gnu.org <=
- [Bug ld/28709] [RISC-V] a unused section can't be removed with -gc-sections, lifang_xia at linux dot alibaba.com, 2021/12/28