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
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
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
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
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
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
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
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.
32 years ago
Jeff Law
831d7ac47c
* scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
text segment.
32 years ago
Ian Lance Taylor
fd41732af2
* scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
_start.
32 years ago
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.
32 years ago
Ian Lance Taylor
809391bd0a
* ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
we allocate common symbols.
32 years ago
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.
32 years ago
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.
32 years ago
Ken Raeburn
ca8f2f0d74
Makefile.in: fix tipo in e*nbsd.c dependencies
32 years ago
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.
32 years ago
Ian Lance Taylor
52329a29a2
* ldctor.c (ldctor_add_set_entry): Don't permit a set to be
composed of different object file formats.
(ldctor_build_sets): If the output format does not support the
reloc, and we are not generating a relocateable link, try getting
the reloc from the input format.
32 years ago
J.T. Conklin
e574ddd43a
* Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
(em68knbsd.c): New target.
* config/m68k-nbsd.mt: New file.
* emulparams/m68knbsd.sh: New file.
* configure.in (m68*-*-netbsd*): Use above configs.
32 years ago
Ian Lance Taylor
fbf967b0da
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
appropriately named static library, stop the search at that
directory.
32 years ago
J.T. Conklin
32286e08a5
* Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
and esparcnbsd.o; sorted entries.
(ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
* config/netbsd532.mt: Removed.
* emulparams/netbsd532.sh: Removed.
* config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
* emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
* configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
sparc*-*-netbsd*): Use above configs.
32 years ago
Ian Lance Taylor
fdfe873a8a
* ldmain.c (multiple_common): One of the types may now be
bfd_link_hash_indirect. The old BFD argument may be NULL.
32 years ago
Ian Lance Taylor
3286598fca
* configure.in: Add * at the end of m68k-hp-hpux.
32 years ago
Ian Lance Taylor
81100e78a3
* ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
YY_CHAR *.
32 years ago
J.T. Conklin
51bdfd9b22
* scripttempl/nw.sc: Gather constructors and destructors and
define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
32 years ago
Ken Raeburn
0a1e63c4b5
updated version
32 years ago
J.T. Conklin
54d6484691
* ldint.texinfo: Move misplaced `@end iftex'.
32 years ago
Ian Lance Taylor
81d191be79
Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)
* scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
.rela.dtors to the list of .rel* sections.
32 years ago
Ken Raeburn
f608f62e26
configure.in: handle i[345]86-*-linux*, not just -linux
32 years ago
Ian Lance Taylor
243f6d0d67
* scripttempl/aout.sc: Set _etext and __etext to ., not
${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
will not break any other system. From Eric Valette
<ev@chorus.fr>.
32 years ago
Ian Lance Taylor
a82ae15d4b
* lexsup.c (parse_args): Change -V to be a synonym for -v. Add
--verbose to get the old -V behaviour.
* ld.1, ld.texinfo: Document this change.
32 years ago
Ian Lance Taylor
aa61b92302
* ldexp.c (fold_name): For DEFINED case, don't try to look up the
name in the hash table during the first phase--the hash table does
not even exist at that point, much less have the right value.
PR 5699.
32 years ago
Ian Lance Taylor
262c876349
* Makefile.in (CC): Define.
(CXX): Move definition, change from g++ to gcc.
(EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
(RUNTEST_CC, RUNTEST_CFLAGS): Remove.
(RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
(CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
(.cc.o): Comment out.
(testdir): Remove.
(site.exp): Don't create testdir or set tmpdir.
(check): Run checks even if not running native. Use CC_FOR_TARGET
instead of RUNTEST_CC, and likewise for CXX.
(cdtest targets): Comment out.
* config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
* cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
* cdtest-main.cc, cdtest.exp: Remove.
32 years ago