freebsd-dev/contrib/elftoolchain
Ed Maste aee4c74cdd 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
..
addr2line Update ELF Tool Chain to upstream r3520 2017-04-17 23:56:48 +00:00
ar Update ELF Tool Chain to r3614 2018-04-27 13:59:24 +00:00
brandelf Use the in-tree sys/elf_common.h to build libelftc. 2016-06-05 23:05:14 +00:00
common Update ELF Tool Chain to r3614 2018-04-27 13:59:24 +00:00
cxxfilt revert r308465: c++filt: flush output after newline 2017-05-01 01:56:11 +00:00
elfcopy objcopy: restore behaviour required by GCC's build 2018-10-20 17:27:53 +00:00
elfdump Update ELF Tool Chain to r3614 2018-04-27 13:59:24 +00:00
libdwarf Add DW_LANG_* definitions from DWARF 4 and 5. 2018-06-09 14:50:38 +00:00
libelf libelf: correct mips64el test to use ELF header 2018-10-02 15:08:41 +00:00
libelftc Update ELF Tool Chain to r3614 2018-04-27 13:59:24 +00:00
libpe Update ELF Tool Chain to r3614 2018-04-27 13:59:24 +00:00
nm Update ELF Tool Chain to r3614 2018-04-27 13:59:24 +00:00
readelf readelf: display NT_GNU_PROPERTY_TYPE_0 note name 2018-08-10 10:37:25 +00:00
size Update to ELF Tool Chain r3475 2016-05-20 17:24:34 +00:00
strings Update ELF Tool Chain to r3614 2018-04-27 13:59:24 +00:00