x86: Add GENERATE_DYNAMIC_RELOCATION_P
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 6 Oct 2017 07:40:56 +0000 (00:40 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 6 Oct 2017 07:41:58 +0000 (00:41 -0700)
commitaebcc8ffd201adbee973b414818b01876dabe1a0
treef1df81a7e76c022163872dfc39268a198ac6ffd2
parentcf1070f1a1ca1f8be1cd88aa6ece55a25e6a887b
x86: Add GENERATE_DYNAMIC_RELOCATION_P

Add GENERATE_DYNAMIC_RELOCATION_P which returns TRUE if dynamic
relocation should be generated.

* elf32-i386.c (X86_SIZE_TYPE_P): New.
(elf_i386_relocate_section): Use GENERATE_DYNAMIC_RELOCATION_P.
* elf64-x86-64.c (X86_SIZE_TYPE_P): New.
(elf_x86_64_relocate_section): Use GENERATE_DYNAMIC_RELOCATION_P.
* elfxx-x86.h (GENERATE_DYNAMIC_RELOCATION_P): New.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
bfd/elfxx-x86.h