From cbf25bb674320ad595707d2592799381979d85f3 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Mon, 9 Mar 2015 22:43:08 +0100 Subject: backends: COPY relocations can also happen in ET_DYN. In particular COPY relocations might happen in PIE executables, which are ET_DYN. Found on Fedora Rawhide with run-elflint-self.sh. Signed-off-by: Mark Wielaard --- backends/i386_reloc.def | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends/i386_reloc.def') diff --git a/backends/i386_reloc.def b/backends/i386_reloc.def index bd273b38..de3575d2 100644 --- a/backends/i386_reloc.def +++ b/backends/i386_reloc.def @@ -1,5 +1,5 @@ /* List the relocation types for i386. -*- C -*- - Copyright (C) 2000, 2001, 2002, 2003, 2005, 2009 Red Hat, Inc. + Copyright (C) 2000, 2001, 2002, 2003, 2005, 2009, 2015 Red Hat, Inc. This file is part of elfutils. This file is free software; you can redistribute it and/or modify @@ -29,7 +29,7 @@ /* NAME, REL|EXEC|DYN */ RELOC_TYPE (NONE, 0) -RELOC_TYPE (COPY, EXEC) +RELOC_TYPE (COPY, EXEC|DYN) RELOC_TYPE (32, REL|EXEC|DYN) RELOC_TYPE (PC32, REL|EXEC|DYN) RELOC_TYPE (GOT32, REL) -- cgit v1.2.1