Ian Lance Taylor
efa6c49704
* ldmisc.h (demangle): Declare.
...
* ldmisc.c: Include "libiberty.h". Include demangle.h with "",
not <>.
(demangle): Make non-static. Remove remove_underscore paramter.
Always return an allocated string.
(vfinfo): Free result of demangle. Add case 'G'. Use %T to print
functionname, rather than calling demangle. Print a colon between
the BFD(section+offset) and the line number.
* ldmain.c (add_archive_element): Improve format of archive
information in map file.
(constructor_callback): Don't print anything to the map file.
* ldlang.c (lang_one_common): Improve format of common symbol
information in map file.
* ldctor.c (ldctor_build_sets): If producing a map file, print set
information.
* ldwrite.c (print_symbol_table): Print a newline before the
header in the map file.
* Makefile.in: Rebuild dependencies.
1996-04-26 22:15:10 +00:00
Ian Lance Taylor
f0f80b13f8
* ldmisc.c (vfinfo): Reindent.
1996-04-26 18:42:55 +00:00
Ian Lance Taylor
6799c638e5
* ldlang.c (lang_size_sections): If _cooked_size is not 0, then
...
don't clobber it when not relaxing.
* ld.h (ld_config_type): Remove traditional_format field.
* ldmain.c (main): Use link_info.traditional_format rather than
config.traditional_format.
* ldlang.c (ldlang_open_output): Likewise.
* lexsup.c (parse_args): Likewise.
* emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
* mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
1996-04-22 21:32:58 +00:00
Ian Lance Taylor
6429ad7e58
* ldlang.c (wild_doit): Discard debugging sections if we are
...
stripping debugging information.
1996-04-22 16:22:52 +00:00
Ian Lance Taylor
14706a96af
* emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
1996-04-22 16:08:18 +00:00
Ian Lance Taylor
e3e69b1328
* ldexp.c (fold_binary): Correct handling of subtraction with
...
absolute values.
(fold_name): Permit symbols in lang_allocating_phase_enum.
1996-04-16 20:53:55 +00:00
Michael Meissner
56074c5569
Add Solaris/linux support
1996-04-16 14:48:02 +00:00
Rob Savoye
10533b5b48
* scripttempl/aout.sc: Add PROVIDE (__stack = 0) so I can use it
...
in m68k/crt0.S without things blowing up.
1996-04-15 20:53:00 +00:00
Rob Savoye
07f48792d2
* scripttempl/m68kcoff.sc: Remove default address for .data so
...
.text, .data, and .bss are all sequential.
1996-04-12 22:47:01 +00:00
Ian Lance Taylor
aa59d90e55
* scripttempl/m68kcoff.sc: Remove regions and simplify.
1996-04-11 16:07:40 +00:00
Jeff Law
d26c498b31
* scripttempl/h8300.sc: Add the "8-bit area" in the upper 256
...
bytes of the address space. Put data from the ".eight" sections
into the 8-bit area.
* scripttempl/h8300h.sc: Likewise.
8-bit area changes for hmse.
1996-04-10 20:40:24 +00:00
David Edelsohn
b279f82e00
* emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
...
Pass $ARCH to ldfile_set_output_arch instead of setting
ldfile_output_architecture directly.
1996-04-09 21:11:51 +00:00
Ian Lance Taylor
517a7cafec
* ld.texinfo: Rearrange option documentation.
1996-04-09 20:36:27 +00:00
Ian Lance Taylor
bf7198b36c
tweak last change
1996-04-09 19:30:06 +00:00
Ian Lance Taylor
1ffec9e606
* lexsup.c (ld_options): New static array.
...
(parse_args): Build shortopts and longopts from ld_options array.
(help): New static function.
* ldver.h (help): Don't declare.
* ldver.c (ldversion): Reindent.
(help): Remove.
1996-04-09 19:20:04 +00:00
Michael Meissner
28ad0357c6
Put .init/.fini in correct places.
1996-04-09 18:23:54 +00:00
Ian Lance Taylor
7ec9d82515
* ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
1996-04-09 16:19:51 +00:00
Ian Lance Taylor
4fea1383f1
formatting change
1996-04-08 20:27:38 +00:00
Ian Lance Taylor
0c4d3f6fc7
* emultempl/elf32.em: When checking for a native emulation, check
...
that the current emulation is the default emulation.
* emultempl/sunos.em: Likewise.
1996-04-08 20:03:53 +00:00
Ian Lance Taylor
b4cb4ea2ac
* configure.in: Permit --enable-shared to specify a list of
...
directories.
* configure: Rebuild.
1996-04-08 18:45:08 +00:00
Ian Lance Taylor
90ba7e6508
* lexsup.c (parse_args): Add -E as a synonym for -export-dynamic,
...
for HP/UX compatibility.
1996-04-08 15:57:57 +00:00
Ian Lance Taylor
6cc7365e2b
* emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): New
...
static function, if ${host} = ${target}.
(gld${EMULATION_NAME}_after_open): Call check_ld_so_conf to find a
needed shared library if ${host} = $[target}.
1996-04-05 21:22:31 +00:00
Ian Lance Taylor
8a42aa5491
* configure.tgt: Add i[345]86-*-freebsdelf* target; from John
...
Polstra <jdp@polstra.com>.
1996-04-05 19:32:39 +00:00
Jackie Smith Cashion
4864a04fc9
Fri Apr 5 18:11:25 1996 James G. Smith <jsmith@cygnus.co.uk>
...
* emulparams/elf32{b,l}4300.sh (MACHINE): Add explicit
architecture number.
* scripttempl/elf.sc: Use $MACHINE definition if present.
* configure.tgt (targ_extra_emuls): Force 4100 build to use same
template as 4300.
1996-04-05 17:17:06 +00:00
Ian Lance Taylor
0932869065
* ldlang.c (lang_size_sections): Change region check to handle
...
regions which end at the highest possible address correctly.
From Roland Weber <roweber@ira.uka.de>.
1996-04-01 22:51:35 +00:00
Ian Lance Taylor
23595ba57a
* ldlang.c (section_already_linked): New static function.
...
(wild_doit): Discard sections with SEC_EXCLUDE set if not doing a
relocateable link. Don't worry about section being NULL, since it
never should be. Don't call init_os unless the section is going
to be added.
(ldlang_add_file): Call section_already_linked for each section.
* ldmain.c (multiple_definition): Don't warn about multiple
definitions in sections which are being discarded.
1996-04-01 16:52:17 +00:00
Steve Chamberlain
ea461c67c1
* scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/.
...
* emultempl/pe.em (init): Remove special case PPC code.
1996-03-31 08:39:06 +00:00
Steve Chamberlain
0c1abe0623
* scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/.
1996-03-31 08:37:51 +00:00
Jeff Law
0e88ffa284
* scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
...
so as not to overwrite the magic syscall entry at 0xc4.
* scripttempl/h8300h.sc: Likewise.
hmse.
1996-03-29 07:01:22 +00:00
David Edelsohn
bacc170351
* configure.tgt (sparc64-*-solaris2*): Delete.
...
Stick with sparc-*-solaris2*.
1996-03-28 19:06:49 +00:00
Ian Lance Taylor
cf2e4f5fde
* ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
...
* ldlang.c (init_os): Fail on an attempt to initialize any section
named DISCARD_SECTION_NAME.
(wild_doit): Discard input sections assigned to an output section
named DISCARD_SECTION_NAME.
* ld.texinfo: Document use of /DISCARD/.
1996-03-27 18:17:28 +00:00
Ian Lance Taylor
64664e69cb
* ldlang.c: Fix some indentation and comments.
1996-03-27 17:34:15 +00:00
Ian Lance Taylor
28113e82bd
* ldmain.c (main): Call bfd_set_error_program_name.
1996-03-26 23:16:01 +00:00
Ian Lance Taylor
4bcc5d3238
* ldmisc.c (vfinfo): case 'I': If the file is not in an archive,
...
and the local symbol name does not match the filename, print the
filename as well.
1996-03-21 18:32:34 +00:00
Ian Lance Taylor
8ef401e289
Patches from John Polstra <jdp@polstra.com> for FreeBSD ELF:
...
* lexsup.c (parse_args): -Bshareable is a synonym for -shared.
* emulparams/elf_i386.sh (NONPAGED_TEXT_START_ADDR): Make the same
as TEXT_START_ADDR.
1996-03-21 18:19:38 +00:00
Ian Lance Taylor
baaaf6f299
Wed Mar 20 18:18:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
...
* ld.texinfo: Fix typos. Use @pxref only inside parentheses.
1996-03-20 23:19:47 +00:00
Ian Lance Taylor
0f5898ccf9
* ldmain.c (add_wrap): New function.
...
* ldmain.h (add_wrap): Declare.
* lexsup.c (parse_args): Call add_wrap.
1996-03-20 21:57:31 +00:00
David Edelsohn
60e4268030
* configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
1996-03-20 00:45:57 +00:00
Jeff Law
deddae6681
* scripttempl/h8300.sc: Change name of page zero memory
...
from "null" to "vectors". Create an output section for
vectors. Add comments on how to explicitly place items
in the vector table.
* scripttempl/h8300h.sc: Likewise.
hmse
1996-03-14 00:49:42 +00:00
Ian Lance Taylor
96704ebcbc
* emultempl/lnk960.em (machine_table): Add jx and hx.
1996-03-13 22:41:25 +00:00
Ian Lance Taylor
5cb57c2c07
* genscripts.sh: Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
...
support it.
1996-03-13 17:40:58 +00:00
Ian Lance Taylor
e3d73386d7
* lexsup.c (parse_args): Handle --wrap.
...
* ldmain.c (main): Initialize link_info.wrap_hash.
* ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED
and NAME cases.
* ld.texinfo, ld.1: Document --wrap.
1996-03-12 23:39:18 +00:00
Ian Lance Taylor
4b7d2399ae
Tue Mar 12 12:43:59 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
...
* ld.h (ld_config_type): Add warn_multiple_gp field.
* lexsup.c (parse_args): Handle --warn-multiple-gp.
* ldmain.c (warning_callback): Suppress multiple gp values warning
if --warn_multiple_gp was not used.
* ld.texinfo, ld.1: Document --warn-multiple-gp.
1996-03-12 17:47:55 +00:00
Ian Lance Taylor
ea2488ad2e
* configure: Rebuild with autoconf 2.8.
1996-03-12 17:22:07 +00:00
Ian Lance Taylor
02df835b83
Don't do SunOS style dynamic linking for sparc-aout:
...
* configure.tgt (sparc64-*-aout*): Use sparcaout, not sun4.
(sparclite*-fujitsu-*, sparc*-*-aout): Likewise.
(sparc*-wrs-vxworks*): Likewise.
* emulparams/sparcaout.sh: New file.
* Makefile.in (ALL_EMULATIONS): Add esparcaout.o.
(esparcaout.c): New target.
1996-03-12 17:04:25 +00:00
J.T. Conklin
c56c921821
* scripttmpl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
...
in a different manner to work around differences in shell variable
expansion.
1996-03-07 00:12:34 +00:00
Ian Lance Taylor
6771b6e23c
* ldemul.h (ldemul_unrecognized_file): Declare.
...
(ldemulation_xfer_type): Add unrecognized_file field.
* ldemul.c (ldemul_unrecognized_file): New function.
* ldlang.c (load_symbols): If a file can not be recognized, call
ldemul_unrecognized_file before trying it as a linker script.
* aix.em (gld${EMULATION_NAME}_unrecognized_file): New static
function.
(gld${EMULATION_NAME}_read_file): Use FOPEN_RT, not "r".
(ld_${EMULATION_NAME}_emulation): Initialize unrecognized_file.
1996-03-06 23:12:41 +00:00
Ian Lance Taylor
3d0c8fa1d4
* ldlang.c (wild): Handle foo.a(.text) by mapping each included
...
member of foo.a separately. From Jouke Numan <jnuman@bazis.nl>.
1996-03-04 19:12:43 +00:00
Ian Lance Taylor
16385918b7
Fri Mar 1 10:24:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
...
* emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
Search trinary.cond rather than searching trinary.lhs twice.
1996-03-01 15:27:57 +00:00
Stan Shebs
e24b45a873
* mpw-make.sed: Edit out shared library support.
...
(@TDIRS@): Edit out, can't use genscripts.
1996-02-27 23:21:35 +00:00