* objcopy.c: Changes to keep it from stripping symbols used

in output relocations.
        (mark_symbols_used_in_relocations): New function.  Mark symbols
        used in output relocations with BSF_KEEP.
        (filter_symbols): Do not strip symbols marked with BSF_KEEP.
        (copy_object): Reorder actions.  First setup sections, then
        build the output symbol table, then copy the section contents.
This commit is contained in:
Jeff Law 1994-03-20 19:27:40 +00:00
parent 517a6af632
commit fb158b92f9

View file

@ -1,3 +1,13 @@
Sun Mar 20 11:26:36 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
* objcopy.c: Changes to keep it from stripping symbols used
in output relocations.
(mark_symbols_used_in_relocations): New function. Mark symbols
used in output relocations with BSF_KEEP.
(filter_symbols): Do not strip symbols marked with BSF_KEEP.
(copy_object): Reorder actions. First setup sections, then
build the output symbol table, then copy the section contents.
Fri Mar 18 10:53:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) Fri Mar 18 10:53:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* ar.c (write_archive): Allocate space for the null byte. From * ar.c (write_archive): Allocate space for the null byte. From