[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/23930] Problems linking objectfiles optimized for size (-Os)
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug ld/23930] Problems linking objectfiles optimized for size (-Os) |
Date: |
Sat, 01 Dec 2018 14:39:31 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=23930
--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by H.J. Lu <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b44ee3a8cf21294eeb079ffbada7eeb559a9c6b4
commit b44ee3a8cf21294eeb079ffbada7eeb559a9c6b4
Author: H.J. Lu <address@hidden>
Date: Sat Dec 1 05:42:33 2018 -0800
x86: Delay setting the iplt section alignment
Delay setting its alignment until we know it is non-empty. Otherwise an
empty iplt section may change vma and lma of the following sections, which
triggers moving dot of the following section backwards, resulting in a
warning and section lma not being set properly. It later leads to a
"File truncated" error.
bfd/
PR ld/23930
* elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Update
the iplt section alignment if it is non-empty.
(_bfd_x86_elf_link_setup_gnu_properties): Set plt.iplt_alignment
and delay setting the iplt section alignment.
* elfxx-x86.h (elf_x86_plt_layout): Add iplt_alignment.
ld/
PR ld/23930
* testsuite/ld-i386/i386.exp: Run pr23930.
* testsuite/ld-i386/pr23930.d: New file.
* testsuite/ld-x86-64/pr23930-32.t: Likewise.
* testsuite/ld-x86-64/pr23930-x32.d: Likewise.
* testsuite/ld-x86-64/pr23930.d: Likewise.
* testsuite/ld-x86-64/pr23930.t: Likewise.
* testsuite/ld-x86-64/pr23930a.s: Likewise.
* testsuite/ld-x86-64/pr23930b.s: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run pr23930 and pr23930-x32.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/23930] Problems linking objectfiles optimized for size (-Os),
cvs-commit at gcc dot gnu.org <=