[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/22836] "-r -s" doesn't work with -g3 using GCC 7
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug ld/22836] "-r -s" doesn't work with -g3 using GCC 7 |
Date: |
Tue, 13 Feb 2018 12:27:47 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22836
--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by Alan Modra <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6e5e9d58c1eeef5677c90886578a895cb8c164c5
commit 6e5e9d58c1eeef5677c90886578a895cb8c164c5
Author: Alan Modra <address@hidden>
Date: Tue Feb 13 14:09:48 2018 +1030
PR22836, "-r -s" doesn't work with -g3 using GCC 7
This fixes the case where all of a group is removed with ld -r, the
situation in the PR, and failures where part of a group is removed
that contain relocs.
bfd/
PR 22836
* elf.c (_bfd_elf_fixup_group_sections): Account for removed
relocation sections. If size reduces to just the flag word,
remove that too and mark with SEC_EXCLUDE.
* elflink.c (bfd_elf_final_link): Strip empty group sections.
binutils/
* testsuite/binutils-all/group-7.s,
* testsuite/binutils-all/group-7a.d,
* testsuite/binutils-all/group-7b.d,
* testsuite/binutils-all/group-7c.d: New tests.
* testsuite/binutils-all/objcopy.exp: Run them.
ld/
* testsuite/ld-elf/pr22836-2.d,
* testsuite/ld-elf/pr22836-2.s: New test.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/22836] New: "-r -s" doesn't work with -g3 using GCC 7, hjl.tools at gmail dot com, 2018/02/12
- [Bug ld/22836] "-r -s" doesn't work with -g3 using GCC 7, hjl.tools at gmail dot com, 2018/02/12
- [Bug ld/22836] "-r -s" doesn't work with -g3 using GCC 7,
cvs-commit at gcc dot gnu.org <=
- [Bug ld/22836] "-r -s" doesn't work with -g3 using GCC 7, amodra at gmail dot com, 2018/02/13
- [Bug ld/22836] "-r -s" doesn't work with -g3 using GCC 7, hjl.tools at gmail dot com, 2018/02/13
- [Bug ld/22836] "-r -s" doesn't work with -g3 using GCC 7, cvs-commit at gcc dot gnu.org, 2018/02/13
- [Bug ld/22836] "-r -s" doesn't work with -g3 using GCC 7, hjl.tools at gmail dot com, 2018/02/18
- [Bug ld/22836] "-r -s" doesn't work with -g3 using GCC 7, hjl.tools at gmail dot com, 2018/02/18
- [Bug ld/22836] "-r -s" doesn't work with -g3 using GCC 7, hjl.tools at gmail dot com, 2018/02/18
- [Bug ld/22836] "-r -s" doesn't work with -g3 using GCC 7, hjl.tools at gmail dot com, 2018/02/18
- [Bug ld/22836] "-r -s" doesn't work with -g3 using GCC 7, hjl.tools at gmail dot com, 2018/02/18