aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-x86.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-04-17 18:11:21 -0700
committerH.J. Lu <hjl.tools@gmail.com>2018-04-17 18:11:21 -0700
commite4e6a73d26ef82622d3bd190749aad508534abe6 (patch)
tree3beab0fe7caca57e76519995859ea540f2bad5f3 /bfd/elfxx-x86.c
parentc65c21e1ffd1e02d9970a4bca0b7e384788a50f0 (diff)
downloadgdb-e4e6a73d26ef82622d3bd190749aad508534abe6.zip
gdb-e4e6a73d26ef82622d3bd190749aad508534abe6.tar.gz
gdb-e4e6a73d26ef82622d3bd190749aad508534abe6.tar.bz2
x86: Use a normal input file with compatible relocation
Use a normal input file with compatible relocation to hold linker created sections, PR ld/23055 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a normal input file with compatible relocation.
Diffstat (limited to 'bfd/elfxx-x86.c')
-rw-r--r--bfd/elfxx-x86.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elfxx-x86.c b/bfd/elfxx-x86.c
index 5f55c94..40157b8 100644
--- a/bfd/elfxx-x86.c
+++ b/bfd/elfxx-x86.c
@@ -2518,7 +2518,9 @@ error_alignment:
abfd = abfd->link.next)
if (bfd_get_flavour (abfd) == bfd_target_elf_flavour
&& (abfd->flags
- & (DYNAMIC | BFD_LINKER_CREATED | BFD_PLUGIN)) == 0)
+ & (DYNAMIC | BFD_LINKER_CREATED | BFD_PLUGIN)) == 0
+ && bed->relocs_compatible (abfd->xvec,
+ info->output_bfd->xvec))
{
htab->elf.dynobj = abfd;
dynobj = abfd;