freebsd-skq/contrib/elftoolchain/elfcopy
emaste 9447c73201 objcopy: restore behaviour required by GCC's build
In r339350 filter_reloc() was removed, to fix the case of stripping
statically linked binaries with relocations (which may come from ifunc
use, for example).  As a side effect this changed the behaviour when
stripping object files - the output was broken both before and after
r339350, in different ways.  Unfortunately GCC's build process relies
on the previous behaviour, so:

- Revert r339350, restoring filter_reloc().
- Fix an unitialized variable use (commited as r3638 in ELF Tool Chain).
- Change filter_reloc() to omit relocations referencing removed
  symbols, while retaining relocations with no symbol reference.
- Retain the entire relocation section if it references the dynamic
  symbol table (fix from kaiw in D17596).

PR:		232176
Reported by:	antoine
Reviewed by:	kaiw
MFC with:	r339350
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D17596
2018-10-20 17:27:53 +00:00
..
archive.c
ascii.c
binary.c Update ELF Tool Chain to r3614 2018-04-27 13:59:24 +00:00
elfcopy.1 Update ELF Tool Chain to r3614 2018-04-27 13:59:24 +00:00
elfcopy.h Handle thread-local storage (TLS) segments correctly when 2018-05-14 05:21:18 +00:00
main.c Fix objcopy for little-endian MIPS64 objects. 2018-09-05 20:51:53 +00:00
Makefile Update ELF Tool Chain to r3614 2018-04-27 13:59:24 +00:00
mcs.1
os.FreeBSD.mk
pe.c
sections.c objcopy: restore behaviour required by GCC's build 2018-10-20 17:27:53 +00:00
segments.c Handle thread-local storage (TLS) segments correctly when 2018-05-14 05:21:18 +00:00
strip.1
symbols.c