[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/27952] ld: Disallow ET_DYN DF_1_PIE linker input?
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug ld/27952] ld: Disallow ET_DYN DF_1_PIE linker input? |
Date: |
Fri, 11 Jun 2021 08:04:39 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=27952
--- 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 <amodra@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f64b9b13ce4bb927f47a1fe0257c3794c6357c8c
commit f64b9b13ce4bb927f47a1fe0257c3794c6357c8c
Author: Alan Modra <amodra@gmail.com>
Date: Fri Jun 11 14:06:47 2021 +0930
PR27952, Disallow ET_DYN DF_1_PIE linker input
This patch adds a new elf_tdata flag, is_pie, set during the linker's
open_input_bfds processing. The flag is then used to reject attempts
to link a PIE as if it were a shared library.
bfd/
PR 27952
* elf-bfd.h (struct elf_obj_tdata): Add is_pie.
* elflink.c (elf_link_add_object_symbols): Set is_pie.
ld/
PR 27952
* ldelf.c (ldelf_after_open): Error on input PIEs too.
--
You are receiving this mail because:
You are on the CC list for the bug.