Fix the SH behavior for EF_SH_PIC flag in FDPIC ABI
authorRich Felker <dalias@libc.org>
Mon, 14 Sep 2015 23:16:27 +0000 (08:16 +0900)
committerKaz Kojima <kkojima@rr.iij4u.or.jp>
Mon, 14 Sep 2015 23:34:12 +0000 (08:34 +0900)
commitfbedb42d07cdc97a5bc698d1f7732ee776763cbc
tree8b8e9d6b6b6edb015b5568ada2d21bed12264c0d
parent4c2f2a792a5971fcc7fe6511725eaf50d19d302b
Fix the SH behavior for EF_SH_PIC flag in FDPIC ABI

Fix it so that it's compatible with the kernel and other FDPIC targets.

* elf32-sh.c (sh_elf_relocate_section): Set EF_SH_PIC flag
instead of clearing it on cross-section relocations.
(sh_elf_merge_private_data): Clear EF_SH_PIC flag by default.
bfd/ChangeLog
bfd/elf32-sh.c