diff options
author | Ed Maste <emaste@FreeBSD.org> | 2018-11-04 19:21:12 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2018-11-04 19:21:12 +0000 |
commit | eda66948fe3eb3134f19c97689f9ca55abce8565 (patch) | |
tree | 71dcc63b3a237f45253594cbce2321a97c11d74d /usr.bin/tee | |
parent | f6bb885ff685f20375f04c5ce0f942f66c6ffaa6 (diff) | |
download | src-eda66948fe3eb3134f19c97689f9ca55abce8565.tar.gz src-eda66948fe3eb3134f19c97689f9ca55abce8565.zip |
rtld: move relro enforcement after ifunc processing
Previously the combination of relro (implicit), -z now and ifunc use
resulted in a segfault when applying ifuncs after relro (test binary
here just calls amd64_get_fsbase()):
| % env LD_DEBUG=1 libexec/rtld-elf/obj/ld-elf.so.1 a.out
| ...
| enforcing main obj relro
| ...
| resolving ifuncs
| reloc_jmpslot: *0x203198 = 0x189368ea4570
| zsh: bus error (core dumped) LD_DEBUG=1 obj/ld-elf.so.1 ~/a.out
Reported by: Shawn Webb
Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=340137
Diffstat (limited to 'usr.bin/tee')
0 files changed, 0 insertions, 0 deletions