Ian Lance Taylor
ae02b41c50
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
...
Remove unused variable is.
1995-01-27 00:54:51 +00:00
Michael Meissner
5f16938da9
Add embedded PowerPC ELF support.
1995-01-26 17:59:08 +00:00
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.
1995-01-24 20:16:49 +00:00
Ian Lance Taylor
5f3548d6c7
update copyrights
1995-01-24 16:01:04 +00:00
Ian Lance Taylor
6ade1673fc
* ldctor.c (ldctor_add_set_entry): Don't dump core if a
...
constructor entry is in the absolute section.
1995-01-24 15:34:16 +00:00
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.
1995-01-23 19:00:46 +00:00
Steve Chamberlain
506f4ede9c
* configure.in (w65-*-*): New target.
...
* Makefile.in: Update.
* scripttempl/w65.sc: New.
* config/coff-w65.mt: New.
1995-01-16 00:51:02 +00:00
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.
1995-01-12 06:34:11 +00:00
Ken Raeburn
cc38364d44
Don't use const with reloc_howto_type, since it's now defined to be const.
1995-01-12 05:04:04 +00:00
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.
1995-01-11 16:49:57 +00:00
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.
1995-01-11 16:26:15 +00:00
Ian Lance Taylor
e2a8da6a50
* lib/ld.exp: Use [which $ld] rather than [file exists $ld] to see
...
if the linker exists.
1995-01-04 23:59:43 +00:00
Steve Chamberlain
fa440b5a55
* ldwrite.c (clone_section): Create a symbol with the
...
same name as the section.
1994-12-29 06:06:56 +00:00
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.
1994-12-19 22:16:27 +00:00
Ken Raeburn
a466a7a00a
there isn't a configure script here though
1994-12-17 21:19:38 +00:00
Ken Raeburn
0672158da0
need to sanititze Makefile.in for arc too
1994-12-17 21:07:51 +00:00
David Edelsohn
c5b5589ed3
Remove duplicate of ARC sanitization.
1994-12-16 23:29:55 +00:00
Ken Raeburn
d0bfd8ec2b
sanitize out arc stuff
1994-12-14 21:45:07 +00:00
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.
1994-12-14 21:40:30 +00:00
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.
1994-12-14 21:33:33 +00:00
David Edelsohn
070ac72796
Initial arc-elf support.
1994-12-14 00:44:50 +00:00
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>.
1994-12-09 22:24:03 +00:00
Ken Raeburn
89a19a0df7
keep everything
1994-12-06 23:30:12 +00:00
Michael Tiemann
0041db5a97
Switch r3 to scratch register, r0 to stack register.
...
Other misc changes before beta shipment to customer.
1994-12-06 02:04:58 +00:00
Ian Lance Taylor
3c2476067c
* config/default.exp: Define objdump if it is not defined.
...
* ld-empic/*: New tests to test -membedded-pic code.
1994-12-02 22:29:20 +00:00
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.
1994-12-02 22:28:09 +00:00
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.
1994-12-02 22:25:50 +00:00
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.
1994-11-28 16:26:30 +00:00
Steve Chamberlain
6ae98644a4
Add shl
1994-11-26 18:10:37 +00:00
Michael Tiemann
fb870b50a7
Add changes from customer since last work.
1994-11-26 00:17:52 +00:00
Michael Tiemann
fb14975b70
Enable ld to build for RCE. This is not tested yet!
1994-11-25 17:06:38 +00:00
Michael Tiemann
ff030c9827
*** empty log message ***
1994-11-25 00:25:34 +00:00
Michael Tiemann
03c4ce2fcc
Rename r16 files to rce, and fix some more .Sanitize typos.
1994-11-25 00:01:26 +00:00
Michael Tiemann
5fa6096860
Recognize and sanitize r16 as a target.
1994-11-24 22:02:18 +00:00
Michael Tiemann
d94aca1aff
Safely check in r16 targets for binutils.
1994-11-24 20:30:11 +00:00
Steve Chamberlain
e93e87cb7b
* Makefile.in: Add eshl.o.
...
* config/coff-sh.mt: Add shl emulation.
1994-11-24 06:06:23 +00:00
Ian Lance Taylor
18368f46c4
* scripttempl/elf.sc: Fill .text section with NOPS. From Eric
...
Youngdale <eric@aib.com>.
1994-11-22 17:19:36 +00:00
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.
1994-11-17 20:11:15 +00:00
Jeff Law
15ec1d5c97
* scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
...
address.
(.data, .bss): If "-N", then place the data/bss just after the end
of the .text section rather than at the default 0x40000000.
1994-11-16 23:40:44 +00:00
Jeff Law
831d7ac47c
* scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
...
text segment.
1994-11-16 17:06:20 +00:00
Ken Raeburn
8e0e09f600
keep riscix, pc532mach files
1994-11-15 09:15:56 +00:00
Ian Lance Taylor
fee3930ea4
Keep ld-shared.
1994-11-14 16:57:14 +00:00
Ian Lance Taylor
0632d303d1
Keep i386lynx.mh.
1994-11-14 16:54:44 +00:00
Ian Lance Taylor
fd41732af2
* scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
...
_start.
1994-11-12 20:59:18 +00:00
Ian Lance Taylor
5efddb2e7c
* ld.h (args_type): Add field export_dynamic.
...
* lexsup.c (parse_args): Recognize --export-dynamic.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
1994-11-12 20:54:09 +00:00
Ian Lance Taylor
809391bd0a
* ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
...
we allocate common symbols.
1994-11-09 17:48:24 +00:00
Ian Lance Taylor
cd1d4f83e7
Tue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com)
...
* scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
.rela.fini to the list of .rel* sections.
1994-11-08 22:57:13 +00:00
Ian Lance Taylor
6a02a973c4
* ldlang.c (load_symbols): Add new argument place. Only accept
...
linker scripts if place is not NULL. Put commands found in an
assumed linker script into place.
(lookup_name): Pass NULL as place argument to load_symbols.
(open_input_bfds): In lang_input_statement_enum case, pass a place
argument to load_symbols, and store any new statements after the
current one.
PR 5917.
1994-11-08 22:54:07 +00:00
Ken Raeburn
ca8f2f0d74
Makefile.in: fix tipo in e*nbsd.c dependencies
1994-11-04 20:14:03 +00:00
Ken Raeburn
0128cbae50
* Makefile.in (check): Add missing "else true" clause.
...
* emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
* scripttempl/go32coff.sc: Changes from DJ Delorie: Change default entry point
to "start". Align at end of each section to 0x200. Start .text section 0x1000
later. Add _etext, _edata, _end symbols.
1994-11-04 00:39:49 +00:00