Ken Raeburn
4ad2d64031
* Makefile.in (distclean): Do recursive deletion, since ldscripts is a directory.
32 years ago
Ian Lance Taylor
be2213ebee
* ldmain.c (main): If trace_file_tries is true, and we are using
an internal linker script, print out the script.
* ldfile.c (try_open): Reindent function. Make the messages about
opening script files more informative.
PR 6309.
32 years ago
Ian Lance Taylor
1f59c7a7fd
* lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
* ld.texinfo, ld.1: Update accordingly.
32 years ago
Ian Lance Taylor
fa247c00bc
fix comments
32 years ago
Ian Lance Taylor
3565dee4eb
* ldlang.c (lang_one_common): Adjust references to common symbol
information for new structure.
32 years ago
Ian Lance Taylor
23244cd6e0
* ldmain.c (undefined_symbol): Handle section being NULL.
32 years ago
Ian Lance Taylor
484a089694
tipo
32 years ago
Ian Lance Taylor
8ed88239b4
* ldctor.c (ldctor_build_sets): Handle bfd_link_hah_defweak.
* ldexp.c (fold_name): Likewise.
* ldlang.c (print_one_symbol): Likewise.
(lang_finish): Likewise.
* ldmain.c (multiple_common): Likewise.
* ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak
renamed to bfd_link_hash_undefweak.
32 years ago
Ian Lance Taylor
5039302a4c
* scripttempl/alpha.sc: Set address of .data section correctly
when -n or -N is used. Patch from Chris G Demetriou
<Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
32 years ago
David Edelsohn
e802f0be04
* ldlang.c (lang_size_sections): Clarify error message when user
specified start addr conflicts with region. Fix resetting of
region pointer.
32 years ago
Ian Lance Taylor
1abb243d51
* ldexp.c (fold_name): In case NAME, permit an absolute symbol
in lang_allocating_phase_enum.
PR 6259.
32 years ago
Ian Lance Taylor
50708d5612
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
a MIPS target, clobber the size of all but the first input
.reginfo section to be 0, so that lang_size_sections sets the
correct size for the output .reginfo section.
32 years ago
Ian Lance Taylor
ae02b41c50
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Remove unused variable is.
32 years ago
Michael Meissner
5f16938da9
Add embedded PowerPC ELF support.
32 years ago
Ian Lance Taylor
2a056eaff2
* ld-bootstrap/bootstrap.exp: If not in the ld build directory,
call untested for each test, rather than ignoring it. If one test
fails, go on to the next one instead of returning.
* ld-cdtest/cdtest.exp: If compilations fail, mark tests as
unresolved.
* ld-empic/empic.exp: Likewise. Also, always pass the same test
name to pass or fail.
* ld-shared/shared.exp: Likewise. Also, always run all tests.
* ld-scripts/defined.exp: If as or nm fail, mark test as
unresolved. Always pass the same test name to pass or fail.
* ld-scripts/script.exp: Likewise.
* ld-scripts/sizeof.exp: Likewise.
32 years ago
Ian Lance Taylor
5f3548d6c7
update copyrights
32 years ago
Ian Lance Taylor
6ade1673fc
* ldctor.c (ldctor_add_set_entry): Don't dump core if a
constructor entry is in the absolute section.
32 years ago
Ian Lance Taylor
c1e128e5a1
* configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
* config/i386-gnu.mt: New file. Include ELF support.
32 years ago
Steve Chamberlain
506f4ede9c
* configure.in (w65-*-*): New target.
* Makefile.in: Update.
* scripttempl/w65.sc: New.
* config/coff-w65.mt: New.
32 years ago
Ian Lance Taylor
cc37d01df3
* ldlang.c (lang_place_orphans): Don't ignore files with
just_syms_flag set. Instead, put all their sections in
bfd_abs_section_ptr, using the section VMA as the output_offset.
PR 6159.
32 years ago
Ken Raeburn
cc38364d44
Don't use const with reloc_howto_type, since it's now defined to be const.
32 years ago
Ian Lance Taylor
1db367dae0
* ld-scripts/sizeof.exp: New test, based on bug report from
anders.blomdell@control.lth.se .
* ld-scripts/sizeof.s: New file.
* ld-scripts/sizeof.t: New file.
32 years ago
Ian Lance Taylor
93a0630f61
* ldexp.c (fold_binary): Adding or subtracting an absolute value
to a relative value does not require forcing the relative value to
be absolute. Also, reindent function.
32 years ago
Ian Lance Taylor
e2a8da6a50
* lib/ld.exp: Use [which $ld] rather than [file exists $ld] to see
if the linker exists.
32 years ago
Steve Chamberlain
fa440b5a55
* ldwrite.c (clone_section): Create a symbol with the
same name as the section.
32 years ago
Steve Chamberlain
885ae6b979
* ld.h (split_by_reloc, split_by_file): New flags.
* ldwrite.c (clone_section, split_sections): New functions.
* lexsup.c (parse_args): Understand new split options.
32 years ago
Ken Raeburn
a466a7a00a
there isn't a configure script here though
32 years ago
Ken Raeburn
0672158da0
need to sanititze Makefile.in for arc too
32 years ago
David Edelsohn
c5b5589ed3
Remove duplicate of ARC sanitization.
32 years ago
Ken Raeburn
d0bfd8ec2b
sanitize out arc stuff
32 years ago
Ken Raeburn
f8eccafb19
* lib/ld.exp (prune_system_crud): Define if not already defined, in case the
user isn't using the newest DejaGnu version that we haven't released to the net
yet.
32 years ago
Stan Shebs
1a8b189e1c
* mpw-config.in (m68k-apple-macos, ppc-apple-macos,
i386-unknown-aout, i386-unknown-coff): New targets.
(m68k-aout, m68k-coff): Remove targets.
(mk.tmp): Add definition of EMUL.
32 years ago
David Edelsohn
070ac72796
Initial arc-elf support.
32 years ago
Ian Lance Taylor
4e59f36df8
* scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
.data segment. They must be writable when creating a shared
library. From H.J. Lu <hjl@nynexst.com>.
32 years ago
Ken Raeburn
89a19a0df7
keep everything
32 years ago
Michael Tiemann
0041db5a97
Switch r3 to scratch register, r0 to stack register.
Other misc changes before beta shipment to customer.
32 years ago
Ian Lance Taylor
3c2476067c
* config/default.exp: Define objdump if it is not defined.
* ld-empic/*: New tests to test -membedded-pic code.
32 years ago
Ian Lance Taylor
dc5df17b8a
* emultempl/miposecoff.em: New file.
* emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
* emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
* scripttempl/mips.sc: Put .rel.sdata sections in .text, and
provide __runtime_reloc_start and __runtime_reloc_stop if they are
used. Align _fdata to a 16 byte boundary.
* Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
generic.em.
(emipsidtl.c): Likewise.
(check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
32 years ago
Ian Lance Taylor
39a6e282d1
* ld.h (args_type): Add new field embedded_relocs.
* ldemul.h (ldemul_after_open, after_open_default): Declare.
(ld_emulation_xfer_struct): Add new field after_open.
* ldemul.c (ldemul_after_open): New function.
(after_open_default): New function.
* ldlang.c (lang_process): Call ldemul_after_open.
* lexsup.c (parse_args): Handle --embedded-relocs.
* emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
new after_open field to after_open_default.
* emultempl/generic.em, emultempl/gld960.em: Likewise.
* emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
* emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
* emultempl/sunos.em, emultempl/vanilla.em: Likewise.
* ld.texinfo, ld.1: Mention -embedded-relocs.
32 years ago
Ian Lance Taylor
6294d8d0a5
* ld-bootstrap/bootstrap.exp: Pass cmp output through
prune_system_crud.
* ld-cdtest/cdtest.exp: Pass diff output through
prune_system_crud.
* ld-shared/shared.exp: Likewise.
* config/default.exp: Remove unused and useless proc ld_load.
32 years ago
Steve Chamberlain
6ae98644a4
Add shl
32 years ago
Michael Tiemann
fb870b50a7
Add changes from customer since last work.
32 years ago
Michael Tiemann
fb14975b70
Enable ld to build for RCE. This is not tested yet!
32 years ago
Michael Tiemann
ff030c9827
*** empty log message ***
32 years ago
Michael Tiemann
03c4ce2fcc
Rename r16 files to rce, and fix some more .Sanitize typos.
32 years ago
Michael Tiemann
5fa6096860
Recognize and sanitize r16 as a target.
32 years ago
Michael Tiemann
d94aca1aff
Safely check in r16 targets for binutils.
32 years ago
Steve Chamberlain
e93e87cb7b
* Makefile.in: Add eshl.o.
* config/coff-sh.mt: Add shl emulation.
32 years ago
Ian Lance Taylor
18368f46c4
* scripttempl/elf.sc: Fill .text section with NOPS. From Eric
Youngdale <eric@aib.com>.
32 years ago
Ian Lance Taylor
60822a364f
Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
* config/i386linux.mh: New file; set HOSTING_CRT0.
* genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
/usr/lib, since that is already in LIB_PATH.
32 years ago