From f64b9b13ce4bb927f47a1fe0257c3794c6357c8c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 11 Jun 2021 14:06:47 +0930 Subject: 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. --- ld/ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ld/ChangeLog') diff --git a/ld/ChangeLog b/ld/ChangeLog index 7ae7613..2d130b4 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2021-06-11 Alan Modra + + PR 27952 + * ldelf.c (ldelf_after_open): Error on input PIEs too. + 2021-06-09 Nick Clifton PR 27666 -- cgit v1.1