Hans-Peter Nilsson
bd0110a3cb
* ld-selective/5.cc: New test.
...
* ld-selective/selective.exp: Run it as xfailed.
* ld-selective/4.cc: Correct spelling of "lose".
2000-09-28 22:57:26 +00:00
DJ Delorie
1bd591624c
oops, didn't mean to check in that change yet
2000-09-28 20:58:57 +00:00
DJ Delorie
45b1f63c8c
* pe-dll.c (process_def_file): Uninitialized data wasn't
...
exported with --export-all-symbols switch.
* pe-dll.c (fill_edata): rearrange the data so that ordinals and
noname work properly.
2000-09-28 20:53:40 +00:00
Alan Modra
47d89dba5e
.plt stub for lazy linking, --stub-group-size=N ld switch,
...
import stub fix, extra DIR14F reloc to fix abort in tc_gen_reloc
2000-09-27 17:30:19 +00:00
Nick Clifton
36bdbeeca5
Conditionalise the embedded relocs feature on the m68*-*-elf target
2000-09-22 00:41:50 +00:00
Kazu Hirata
6d5e62f8b5
2000-09-21 Kazu Hirata <kazu@hxi.com>
...
* ldmain.c: Fix formatting.
* ldmisc.c: Likewise.
* ldver.c: Likewise.
* ldwrite.c: Likewise.
2000-09-21 20:21:59 +00:00
Alan Modra
e2eb67d9cb
Silence gcc warning.
2000-09-21 14:21:24 +00:00
Alan Modra
b3ea35849f
Handle out of memory situations.
2000-09-20 04:20:26 +00:00
Alan Modra
25f7275229
Group stub sections.
2000-09-18 12:22:43 +00:00
Nick Clifton
0752970ef8
add support for embedded relocs in m68k ELF port
2000-09-15 18:52:52 +00:00
Alan Modra
92b7e9d81a
(DATA_START_SYMBOLS): Provide $global$ only as needed.
2000-09-15 10:42:27 +00:00
Nick Clifton
9b14b192bb
Disable relaxation if multiple symbol definitions are encountered - otherwise
...
the linker could abort with an assertion failure.
2000-09-14 01:39:42 +00:00
Nick Clifton
891fa26635
Fix formatting
2000-09-10 19:53:58 +00:00
H.J. Lu
5d64ca4ed3
2000-09-07 H.J. Lu <hjl@gnu.org>
...
* configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
* configure: Rebuild.
2000-09-07 21:08:51 +00:00
H.J. Lu
dd94604f29
2000-09-07 H.J. Lu <hjl@gnu.org>
...
* Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
* Makefile.in: Rebuild.
2000-09-07 19:52:17 +00:00
Alan Modra
ed15ac6a0a
Fix an orphan section problem caused by weird linker scripts.
2000-09-07 09:09:19 +00:00
Alan Modra
71bfc0aef6
Fix list handling for orphan section output statements.
2000-09-07 07:08:58 +00:00
Alexandre Oliva
4a428502cb
* configure.tgt (sh-*-linux*): Added.
...
* Makefile.am: Added eshelf_linux and eshlelf_linux.
* Makefile.in: Rebuilt.
* emulparams/shelf_linux.sh: New file.
* emulparams/shlelf_linux.sh: New file.
2000-09-07 04:32:05 +00:00
Alan Modra
f998903041
Fix place_orphan crash.
2000-09-06 15:28:25 +00:00
Alexandre Oliva
58cccadbd4
* configure: Rebuilt with new libtool.m4.
2000-09-06 13:57:41 +00:00
Alan Modra
50bbae350b
Correct gas/ChangeLog 2000-06-23 entry, which I thought I'd fixed
...
already. Other changes are whitespace.
2000-09-06 02:58:59 +00:00
Nick Clifton
5b343f5ae8
Regenerate files using fixed aclocal install.
2000-09-06 00:13:34 +00:00
Alan Modra
3231d22e8f
Shared lib support for elf32-hppa
2000-09-05 04:07:46 +00:00
Alan Modra
5f992e6228
A tidy of ld/ldlang.c, and add missing Makefile dependencies
...
I should have added with the 2000-07-28 patch.
2000-09-05 03:21:16 +00:00
Alan Modra
a854a4a7c8
--split-by-reloc, --split-by-file extensions. --unique option.
2000-09-05 03:05:19 +00:00
Nick Clifton
6ddeca85d5
Fix formatting and spelling msitakes
2000-09-03 19:47:59 +00:00
Nick Clifton
18e03609ef
Increase minor version number (to 2.10.91) to help tools detect the new
...
ability to support removal of duplciate DWARF@ debug information.
2000-09-02 21:35:47 +00:00
Nick Clifton
3a9d486c00
Add .gnu.linkonce.wi.* to .debug_info sections.
2000-09-02 20:43:22 +00:00
Alexandre Oliva
ac48eca1ad
* acinclude.m4: Include libtool and gettext macros from the
...
top level.
* aclocal.m4, configure: Rebuilt.
2000-08-31 09:46:11 +00:00
Alexandre Oliva
6545f5fb9f
* ld-undefined/undefined.exp (hppa*64*-*-*, mn10300-*-elf,
...
sh-*-*): With dwarf-2, `undefined function' can't pass.
2000-08-30 22:01:47 +00:00
Nick Clifton
c13b1b775b
When choosing the target for a particular endianness, do nothing if the target
...
is not supported.
2000-08-25 20:44:09 +00:00
H.J. Lu
dcb0bd0eef
2000-08-24 H.J. Lu <hjl@gnu.org>
...
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
check -rpath nor LD_RUN_PATH for cross link.
* ld.texinfo: Document the change.
2000-08-25 20:24:11 +00:00
Hans-Peter Nilsson
5bcac8a48e
* NEWS: Mention support for CRIS.
2000-08-24 17:42:52 +00:00
H.J. Lu
6dd8c765d3
2000-08-23 H.J. Lu <hjl@gnu.org>
...
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
the current runpath list from bfd_elf_get_runpath_list ()
before search.
2000-08-23 23:03:00 +00:00
H.J. Lu
a8175964e0
Change News to NEWS.
2000-08-23 16:42:13 +00:00
H.J. Lu
ec4eb78a39
2000-08-22 H.J. Lu <hjl@gnu.org>
...
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
LD_LIBRARY_PATH for native linker. Display the needed DSO if
trace_file_tries is non-zero.
(gld${EMULATION_NAME}_try_needed): Report the needed DSO found
if trace_file_tries is non-zero.
* ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
* News: Mention it.
2000-08-22 19:34:37 +00:00
Jason Eckhardt
22b36938e7
2000-08-14 Jason Eckhardt <jle@cygnus.com>
...
* NEWS: Mention i860 support.
2000-08-14 18:50:13 +00:00
Andreas Schwab
d73e9da0eb
* scripttempl/elf.sc: Fix last change to use correct comment
...
syntax.
2000-08-14 08:59:40 +00:00
Geoffrey Keating
9ac4db9c1c
* scripttempl/elf.sc: Add a comment giving the correspondence
...
between sections, per-datum sections, and linkonce sections. Make
the comment true even for .bss, .sdata, .sdata2, .sbss, and
.sbss2.
2000-08-10 23:43:57 +00:00
Jason Eckhardt
165589e4ad
2000-08-10 Jason Eckhardt <jle@cygnus.com>
...
* emulparams/elf32_i860.sh: New file.
* configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
* Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
(eelf32_i860.c): New rule.
* Makefile.in: Regenerate.
2000-08-10 20:40:39 +00:00
Nick Clifton
345a835d18
Add defintion of ENTRY
2000-08-10 19:07:26 +00:00
Nick Clifton
e374f1d977
Refer to -rpath not --rpath in error message
2000-08-09 00:51:42 +00:00
Nick Clifton
236d5abf99
Define __bss_size symbol to indicate the final size of .bss section.
2000-08-08 22:04:32 +00:00
Alan Modra
4b209b2234
Keep track of last optind value, and rename a couple of functions
...
for consistency.
2000-08-04 04:41:33 +00:00
H.J. Lu
e1753d2c28
2000-08-03 H.J. Lu (hjl@gnu.org)
...
* ld-bootstrap/bootstrap.exp: Add strip.
2000-08-03 18:31:50 +00:00
Alan Modra
28423a689e
Select elf for Unixware 7 (ix86-*-sysv5*)
2000-08-03 01:01:05 +00:00
H.J. Lu
b2009ff751
2000-07-27 H.J. Lu <hjl@gnu.org>
...
* emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
(PARSE_AND_LIST_PROLOGUE): New.
(PARSE_AND_LIST_LONGOPTS): Likewise.
(PARSE_AND_LIST_OPTIONS): Likewise.
(PARSE_AND_LIST_ARGS_CASES): Likewise.
(PARSE_AND_LIST_EPILOGUE): Likewise.
2000-07-28 01:53:29 +00:00
Alan Modra
41392f033d
Add some shell variables and shell code to elf32.em
...
to allow elf32.em to be used by ports that require
some minor variations or a few extra functions.
Implement for hppaelf and armelf.
Fix header file include order in m68kcoff.em
2000-07-28 01:33:14 +00:00
Alan Modra
04925e1e0b
Move functions around in preparation for next patch
2000-07-28 01:07:09 +00:00
Nick Clifton
88cdf29775
Implement -taso command line option.
2000-07-28 00:57:45 +00:00
H.J. Lu
360e95866f
2000-07-24 H.J. Lu (hjl@gnu.org)
...
* ld-elfvsb/elfvsb.exp: Add -g to $CC to get the location of
the undefined reference.
2000-07-24 15:40:20 +00:00
Nick Clifton
20bccb3485
Applied Michael's Sokolov's patch to implement --embedded-relocs for m68k coff.
2000-07-21 23:31:53 +00:00
H.J. Lu
699845ef7b
2000-07-20 H.J. Lu <hjl@gnu.org>
...
* emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
and "disable-new-dtags" to stop getopt from treating -d/-e as
abbreviations for these options.
2000-07-20 21:59:40 +00:00
H.J. Lu
6c1439be21
2000-07-20 H.J. Lu <hjl@gnu.org>
...
* ld.texinfo: Add documentation for --disable-new-dtags and
--enable-new-dtags.
* ldmain.c (main): Initialize link_info.new_dtags to false.
* emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
--disable-new-dtags and --enable-new-dtags.
(gld_${EMULATION_NAME}_list_options): Likewise.
2000-07-20 21:18:23 +00:00
Nick Clifton
28c309a287
Add optional style argument to --demangle switch.
2000-07-20 18:02:56 +00:00
Hans-Peter Nilsson
9d06555c53
* Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
...
ecrislinux.o.
(ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
Regenerate dependencies.
* Makefile.in: Rebuild.
* configure.tgt (cris-*-*): New target.
* emulparams/crisaout.sh, emulparams/criself.sh,
emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
* po/POTFILES.in, po/ld.pot: Regenerate.
2000-07-20 17:16:06 +00:00
H.J. Lu
19e3be22a4
2000-07-20 H.J. Lu <hjl@gnu.org>
...
* emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
Print out ignored -z options.
2000-07-20 16:13:26 +00:00
H.J. Lu
e0ee487bb5
2000-07-19 H.J. Lu <hjl@gnu.org>
...
* emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
(PARSE_AND_LIST_PROLOGUE): New.
(PARSE_AND_LIST_LONGOPTS): Likewise.
(PARSE_AND_LIST_OPTIONS): Likewise.
(PARSE_AND_LIST_ARGS_CASES): Likewise.
* ldmain.c (main): Clear link_info.flags and link_info.flags_1.
* lexsup.c (ld_options): Comment out 'z'.
(parse_args): Likewise.
* emultempl/elf32.em: Include "elf/common.h".
(gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
options.
(gld_${EMULATION_NAME}_list_options): Likewise.
* ld.texinfo: Add documentation for the recognized -z options.
2000-07-20 03:25:10 +00:00
H.J. Lu
49e56c493d
2000-07-19 H.J. Lu <hjl@gnu.org>
...
* emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
bfd_elf_set_dt_needed_soname ().
2000-07-20 03:17:32 +00:00
DJ Delorie
9d68bc829c
* pe-dll.c (pe_dll_id_target): check object target name also
2000-07-19 00:04:04 +00:00
Hans-Peter Nilsson
53db15ed2a
* scripttempl/elf.sc (.init): Only do ${INIT_START} and
...
${INIT_END} if relocating.
(.fini): Likewise ${FINI_START} and ${FINI_END}.
2000-07-17 22:41:08 +00:00
DJ Delorie
0ad8cf4c25
* src/ld/emultempl/pe.em (gld_*_open_dynamic_archive): New search
...
order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
errors introduced by the old dynamic lib search order.
2000-07-17 18:59:58 +00:00
DJ Delorie
874c8c99db
* pe-dll.c (process_def_file): auto-export data items also
...
(pe_process_import_defs): also see if _imp_ form needed
2000-07-17 18:40:47 +00:00
H.J. Lu
08c44e659e
2000-07-16 H.J. Lu (hjl@gnu.org)
...
* ld-elfvsb/elfvsb.exp (support_protected): New variable. Check
and set to "yes" if the protected visibility is expected to
pass.
(visibility_run): Set expected to fail for the "protected"
and "protected_undef_def" tests only if $support_protected is
"no".
* ld-elfvsb/main.c (PROTECTED_CHECK): Check for the protected
visibility support if defined.
2000-07-16 21:29:32 +00:00
H.J. Lu
1345a0c087
2000-07-15 H.J. Lu (hjl@gnu.org)
...
* ld-elfvsb/elfvsb.exp (visibility_run): Set expected failure
for "protected_undef_def".
* ld-elfvsb/main.c: Don't define HIDDEN_UNDEF_TEST when
PROTECTED_WEAK_TEST is defined.
Don't define PROTECTED_UNDEF_TEST when PROTECTED_WEAK_TEST is
defined.
Define PROTECTED_TEST when PROTECTED_UNDEF_TEST is defined.
* ld-elfvsb/sh1.c (visibility): Mark protected only if
PROTECTED_TEST, PROTECTED_UNDEF_TEST or PROTECTED_WEAK_TEST
is defined.
(visibility_var): Likewise.
2000-07-15 23:57:20 +00:00
DJ Delorie
5b4cf3f497
* pe-dll.c (make_one): fix a typo in the __imp_ name decoration
...
for dll import libraries
2000-07-13 00:51:40 +00:00
Nick Clifton
062739d151
Support the g++ attribute init_priority in gcc 2.95.2 and later.
2000-07-12 16:41:29 +00:00
Nick Clifton
1c64c4ed86
Fix formatting and add missing new lkine at end of error message
2000-07-11 20:17:02 +00:00
Alan Modra
b71e277823
Remove some forward declarations in ldemul.h and ldfile.h, and
...
re-arrange header include order.
Fix shadowing warnings in ldlang.h
Fix compile errors in mpw-elfmips.c
2000-07-11 03:42:41 +00:00
H.J. Lu
2ef53d6665
2000-07-10 H.J. Lu <hjl@gnu.org>
...
* emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
DLL_SUPPORT.
(strhash): Likewise.
(compute_dll_image_base): Likewise.
(pe_undef_found_sym): Likewise.
(pe_undef_cdecl_match): Likewise.
(gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
argument "arch" with ATTRIBUTE_UNUSED.
2000-07-10 17:20:35 +00:00
Alan Modra
9a8cbb092b
Warning fix and remove extraneous hppa*-*-linux-gnu*.
2000-07-10 17:15:11 +00:00
Alan Modra
36a3dc5119
Even more hppa testsuite patches.
2000-07-10 17:02:16 +00:00
Alan Modra
4900fc0695
hppaelf.em: Merge from elf32.em and implement multiple linker stubs.
...
Makefile.am: Re-enable ehppaelf.o, add ehppalinux.o
configure.tgt: targ_emul=hppalinux for hppa*linux
2000-07-09 08:45:29 +00:00
Alan Modra
227aeb0758
Fix --section-start=xxxx
2000-07-08 13:35:05 +00:00
DJ Delorie
28609fd471
minor formatting change
2000-07-07 20:10:28 +00:00
DJ Delorie
602e90d3d5
* ld/emultempl/pe.em: institute the following search order for
...
dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
static lib (libfoo.a) if none of the above are found.
2000-07-07 20:09:28 +00:00
DJ Delorie
5f577f7d70
* ld/emultempl/pe.em (pe_enable_auto_image_base): New variable.
...
(longopts): New --{enable,disable}-auto-image-base options.
(gld_${EMULATION_NAME}_list_options): Document.
(gld_${EMULATION_NAME}_parse): Handle.
(strhash): New static function.
(compute_dll_image_base): New static function.
(gld_${EMULATION_NAME}_set_symbols): Use.
2000-07-07 20:01:35 +00:00
DJ Delorie
302ab118e1
add MAINTAINERS files
2000-07-05 19:28:06 +00:00
Ulf Carlsson
3548145dcb
2000-07-01 Koundinya K <kk@ddeorg.soft.net>
...
* configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
* emulparams/elf32btsmip.sh: New file.
* Makefile.am: Add traditional mips target.
* Makefile.in: Rebuild.
2000-07-02 01:15:56 +00:00
H.J. Lu
6779803381
2000-07-01 H.J. Lu <hjl@gnu.org>
...
* Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
automake to use YLWRAP.
* Makefile.in: Rebuild.
2000-07-01 19:26:41 +00:00
Alan Modra
0bdaf48bac
Fix 2000-06-22. grep after running dep.sed
2000-07-01 01:41:09 +00:00
Timothy Wall
c9e769c2b1
Remove unimplemented "PAGE N:" flag from default linker script.
2000-06-30 12:36:38 +00:00
Nick Clifton
65aa24b6e8
Applied Marek Michalkiewicz <marekm@linux.org.pl>'s patch to ehance the AVR port.
2000-06-27 01:45:30 +00:00
Alan Modra
4667035e30
arm-elf does --gc-sections too.
2000-06-24 04:48:41 +00:00
Alan Modra
1581f8c9fe
Ensure /usr/include and the like stay out of dependencies.
2000-06-22 13:01:43 +00:00
H.J. Lu
0158099299
2000-06-21 H.J. Lu <hjl@gnu.org>
...
* Makefile.am: Rebuild dependency.
* Makefile.in: Rebuild.
2000-06-22 03:35:54 +00:00
H.J. Lu
bbeb2e037c
2000-06-20 H.J. Lu <hjl@gnu.org>
...
* Makefile.am: Rebuild dependency.
* Makefile.in: Rebuild.
2000-06-20 20:41:02 +00:00
Timothy Wall
2d30b3dab4
tic54x support.
2000-06-20 13:31:59 +00:00
Timothy Wall
74459f0e3e
tic54x/ibmc54xdsp target for ld.
2000-06-20 13:29:07 +00:00
Alan Modra
2ab47eed68
Correct pointer comparisons relying on NULL less than any other pointer.
...
Alexander Aganichev's fix for ieee.c
2000-06-20 12:33:21 +00:00
Alan Modra
919e40930f
Move "Changes in version 2.10" to where it belongs.
2000-06-19 02:36:45 +00:00
Alan Modra
987fd5b44e
Update list of targets supporting --gc-sections.
...
KEEP .eh_frame contents.
2000-06-19 02:05:53 +00:00
Nick Clifton
60bcf0fa8c
Applied Stephane Carrez <Stephane.Carrez@worldnet.fr> patches to add support
...
for m68hc11 and m68hc12 processors.
2000-06-19 01:22:44 +00:00
Alan Modra
c7c544834a
Correctly set SEC_READONLY for .text section.
2000-06-15 09:09:13 +00:00
H.J. Lu
bcef29e60c
2000-06-13 H.J. Lu <hjl@gnu.org>
...
* configure: Regenerate.
2000-06-13 19:11:54 +00:00
David O'Brien
946efd95b8
* configure.in (VERSION): Update to show this is the CVS mainline.
...
Approved by: Nick Clifton <nickc@cygnus.com>
Message-Id: <200005222205.PAA14565@elmo.cygnus.com>
2000-06-08 19:00:02 +00:00
David O'Brien
57a6fd078e
* emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
...
input objects to be ECOFF.
(check_sections): einfo takes %B, not %P, to print a BFD name.
Approved by: Nick Clifton <nickc@cygnus.com>
Message-Id: <200006081748.KAA12555@elmo.cygnus.com>
2000-06-08 18:39:43 +00:00
H.J. Lu
7cda33a15e
2000-06-05 H.J. Lu (hjl@gnu.org)
...
* lib/ld-lib.exp (default_ld_link): Redirect the linker output
to link_output and make it global.
* ld-elfvsb/elfvsb.exp (visibility_test): Add "hidden_undef",
"hidden_undef_def", "hidden_weak", "protected_undef",
"protected_undef_def" and "protected_weak".
(visibility_run): Likewise.
* ld-elfvsb/main.c: Likewise.
* ld-elfvsb/sh1.c: Likewise.
* ld-elfvsb/sh2.c: Likewise.
* ld-elfvsb/elfvsb.dat: Updated.
2000-06-05 20:43:18 +00:00
H.J. Lu
e06cae3665
2000-06-05 Michael Matz <matz@ifh.de>
...
* ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
version scripts.
* ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
2000-06-05 16:16:31 +00:00
Denis Chertykov
2f0b56c07d
* emulparams/avr1200.sh (STACK): Define as 0.
...
* emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
* emulparams/avr4433.sh (STACK): Likewise.
* emulparams/avr44x4.sh (STACK): Likewise.
* emulparams/avr85xx.sh (STACK): Likewise.
* emulparams/avrmega103.sh (STACK): Likewise.
* emulparams/avrmega161.sh (STACK): Likewise.
* emulparams/avrmega603.sh (STACK): Likewise.
* scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
(__stack): Define from ${STACK} for main().
2000-05-27 15:36:58 +00:00