summaryrefslogtreecommitdiff
path: root/backends/i386_reloc.def
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2015-03-09 22:43:08 +0100
committerMark Wielaard <mjw@redhat.com>2015-03-13 09:41:25 +0100
commitcbf25bb674320ad595707d2592799381979d85f3 (patch)
tree84682eb2c7e60a5ac3e36b00a18f99907af94da3 /backends/i386_reloc.def
parentae9aa3e4b2853d58598a6928eb1dbaacf6488496 (diff)
downloadelfutils-cbf25bb674320ad595707d2592799381979d85f3.tar.gz
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 <mjw@redhat.com>
Diffstat (limited to 'backends/i386_reloc.def')
-rw-r--r--backends/i386_reloc.def4
1 files changed, 2 insertions, 2 deletions
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)