x86: Add _bfd_x86_elf_hide_symbol
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 12 Oct 2017 09:12:47 +0000 (02:12 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 12 Oct 2017 09:14:34 +0000 (02:14 -0700)
commit9f8575350f980aa6da8c488c6aa30862620eaa1f
treeb0bc03bd7456aad7444e20a511405cf3ab4ccce4
parent359987e21867b730564ff46ddceaafdc93d0fb49
x86: Add _bfd_x86_elf_hide_symbol

When there is no dynamic interpreter in PIE, make the undefined weak
symbol dynamic so that PC relative branch to the undefined weak symbol
will land to address 0.

* elf32-i386.c (elf_backend_hide_symbol): New.
* elf64-x86-64.c (elf_backend_hide_symbol): Likewise.
* elfxx-x86.c (_bfd_x86_elf_hide_symbol): Likewise.
* elfxx-x86.h (_bfd_x86_elf_hide_symbol): Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
bfd/elfxx-x86.c
bfd/elfxx-x86.h
This page took 0.025314 seconds and 4 git commands to generate.