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
Alan Modra
2114f57b93
Update dependencies.
2000-05-26 14:14:21 +00:00
Alan Modra
5af11cab92
Eli Zaretskii's DOSish file name patches.
2000-05-26 13:11:57 +00:00
Nick Clifton
1f0df59a27
When deciding if ".text" section should be read-only, don't forget to reset
...
SEC_READONLY because it could be already set.
2000-05-23 21:03:35 +00:00
Nick Clifton
176355da99
Patch from Thomas de Lellis to implement --section-start
2000-05-22 21:58:40 +00:00
H.J. Lu
e80778cf3d
2000-05-21 H.J. Lu (hjl@gnu.org)
...
* ld-elfvsb/main.c (main_visibility_check): Fix the protected
visibility test.
2000-05-21 21:08:17 +00:00
H.J. Lu
8c5ff9729d
2000-05-18 H.J. Lu <hjl@gnu.org>
...
* lexsup.c (parse_args): `i' == `r', not `q'.
2000-05-18 22:01:04 +00:00
Jeff Law
0b76fe778f
* configure.tgt (hppa*64*-*-*): Enable PA64 target.
2000-05-18 16:48:14 +00:00
Nick Clifton
079a8e4af5
Fix typo in previous delta
2000-05-17 19:53:11 +00:00
Nick Clifton
a712da2085
Apply patch from Richard Gorton <gorton@scrugs.lkg.dec.com> to implement
...
--emit-relocs switch to the linker to preserve relocs in an output executable
2000-05-17 19:38:53 +00:00
Nick Clifton
690a460e0c
Apply patch from Charles Wilson to make PE ports search for dynamic libraries
...
in foo.dll and libfoo.dll before libfoo.a.
2000-05-16 20:53:26 +00:00
Alan Modra
c2f1343c8b
Update printed copyright.
2000-05-15 02:17:52 +00:00
H.J. Lu
6fc49d288b
2000-05-13 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/elf-offset.ld: New. ELF visibility fearture
tests.
* ld-elfvsb/elfvsb.dat: Likewise.
* ld-elfvsb/elfvsb.exp: Likewise.
* ld-elfvsb/main.c: Likewise.
* ld-elfvsb/sh1.c: Likewise.
* ld-elfvsb/sh2.c: Likewise.
2000-05-13 16:54:32 +00:00
Alan Modra
897083bdcd
Quell some gcc warnings by defining textdomain and bindtextdomain
...
as intl/libgettext.h does.
2000-05-13 13:05:36 +00:00
H.J. Lu
cd4c806ac9
2000-05-10 H.J. Lu <hjl@gnu.org>
...
* ldlang.c (open_input_bfds): Don't load the same file within
a group again if the whole archive has been loaded already.
2000-05-10 23:12:35 +00:00
Alan Modra
9369728402
Fix 64 bit target section start on 32 bit machine.
2000-05-03 11:22:42 +00:00
Jim Wilson
99a4150f8b
Fix just added ia64-linux support to conform with others.
...
* configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
2000-05-02 00:58:51 +00:00
Jim Wilson
ebd6fc2935
Ld testsuite support for ia64-linux.
...
* configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
host "ia64-*-linux-gnu*".
2000-05-02 00:39:34 +00:00
Alan Modra
a1934524a3
Correctly check gcc version.
2000-04-29 00:56:29 +00:00
Jeff Law
730a39a0a3
* Makefile.am: Add PA64 support. Add missing dependencies for
...
PA32 elf support.
* Makefile.in: Rebuilt.
* configure.tgt: Add PA64 support (currently disabled).
2000-04-25 17:21:28 +00:00
Alan Modra
aea4bd9d34
place_orphan optimisations
2000-04-25 05:14:16 +00:00
Nick Clifton
2b5fc1f5d0
Note that output section data commands can only appear inside output section
...
descriptions and not between them.
2000-04-25 00:27:24 +00:00
Jim Wilson
b32711aa6a
A misc IA-64 ELF patch I missed in the first pass.
...
* testsuite/ld-scripts/phdrs.exp: IA-64 is 64-bit ELF too.
2000-04-21 22:17:28 +00:00
Jeff Law
d8475ff6b6
* configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
2000-04-21 21:52:48 +00:00
Jim Wilson
800eeca487
IA-64 ELF support.
2000-04-21 20:22:24 +00:00
Richard Henderson
c9637625e4
* scripttempl/elfd30v.sc: Place .gcc_except_table.
2000-04-21 17:29:15 +00:00
Alan Modra
28ea9521fe
Match space at start of file name, not end.
2000-04-20 02:13:01 +00:00
H.J. Lu
20d04697a8
2000-04-18 H.J. Lu <hjl@gnu.org>
...
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
lang_leave_output_section_statement () after calling
lang_enter_output_section_statement ().
* emultempl/armelf.em: Likewise.
2000-04-18 23:39:03 +00:00
Alan Modra
5ba474214c
Yet another set of fixes for orphan sections.
2000-04-18 05:53:41 +00:00
Geoffrey Keating
bdbe570575
* scripttempl/elfppc.sc: Remove.
...
* emulparams/elf32ppc.sh: Use elf.sc.
* emulparams/elf32lppc.sh: Use elf.sc.
* emulparams/elf32ppclinux.sh: Use elf.sc.
* emulparams/elf32ppcsim.sh: New file.
* emulparams/elf32lppcsim.sh: New file.
* Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
(ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
* Makefile.in: Regenerate.
* configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
2000-04-14 21:18:23 +00:00
Alan Modra
01cc8ff856
Zero start address of orphan ~(SEC_LOAD | SEC_ALLOC) sections.
2000-04-14 01:58:29 +00:00
Geoffrey Keating
4ab10e93d6
Correct previous misapplied patch.
2000-04-13 23:38:46 +00:00
Geoffrey Keating
6c86c54107
* scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
...
Add new BSS_PLT variable for when .plt need not be contained in
the file. Move _etext so that it is also after .fini, and provide
both etext and _etext with a leading underscore. Mark the start
and end of .sbss.
2000-04-13 23:32:48 +00:00
Alan Modra
62043cea9b
Add workaround for gcc-2.95.2 failure.
2000-04-12 12:55:06 +00:00
Alan Modra
e76e4c9104
(test4): Test for presence of foo__1B, not absence
2000-04-12 12:47:25 +00:00
Alan Modra
3017ff0eca
(test4): Delete incorrect foo__1B test. Reformat file.
2000-04-12 03:44:15 +00:00
Alan Modra
6a345e871d
Keep output orphan sections in the same order as input.
2000-04-12 02:43:37 +00:00
Alan Modra
8be867464d
Remove extraneous paragraph.
2000-04-11 11:39:38 +00:00
Andrew Cagney
a2d91340f3
Remove ``-W -Wall'' from top-level Makefile/configure.
...
Add ``-W -Wall'' to sub-directories bfd, binutils, gas gprof, ld and
opcodes by the addition of WARN_CFLAGS to Makefile.am and configury to
set it. Add configure option --enable-build-warnings.
Re-generate all and sundry using auto*-000227.
2000-04-09 12:17:43 +00:00
Timothy Wall
5948916f52
Note new "AT>" feature.
2000-04-07 17:04:19 +00:00
Alan Modra
8ad3436c79
Move translated part of bug report string back into .c files so
...
xgettext can find it. Regnerate .pot files.
2000-04-04 14:32:35 +00:00
Alan Modra
41b49281c1
Use "gcc -MM" for dependencies, and update them.
2000-04-04 10:53:56 +00:00
Alan Modra
c20f4f8c21
Move bug report string to one place.
2000-04-03 14:10:05 +00:00
Alan Modra
adde6300e0
ATMEL AVR microcontroller support.
2000-03-27 08:39:14 +00:00
Nick Clifton
e40eb3e94d
discard all unexpected sections.
2000-03-14 01:40:30 +00:00
H.J. Lu
9282ff4155
2000-03-09 Andreas Jaeger <aj@suse.de>
...
* Makefile.am (check-DEJAGNU): Also unset LANG.
* Makefile.in: Rebuild.
2000-03-09 16:41:21 +00:00
Ian Lance Taylor
a999880517
* ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
...
archive.
2000-03-06 18:08:38 +00:00
Nick Clifton
f9bc20e78d
Include getopt.h
2000-03-02 18:37:14 +00:00
Ian Lance Taylor
4e277b3808
* configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
2000-03-02 01:35:52 +00:00
Ian Lance Taylor
9b1d3b78a3
mention new -Bsymbolic behaviour
2000-03-02 01:26:27 +00:00
Nick Clifton
f0c87f889d
Fix building with --enable-targets=all.
2000-03-01 20:54:37 +00:00
H.J. Lu
b6f29aaaea
2000-03-01 H.J. Lu <hjl@gnu.org>
...
* ldmain.c (undefined_symbol): Take one more arg, fatal, to
indicate if the undefined symbol is a fatal error or not.
Don't delete the output file if "fatal" is false.
2000-03-01 19:37:03 +00:00
H.J. Lu
af28fce3e5
2000-02-29 H.J. Lu <hjl@gnu.org>
...
* Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
Set LC_COLLATE and LC_ALL to null and export them. It is for
sort which expects the C locale.
Add $(LIBS) to all $(HOSTING_LIBS).
* Makefile.in: Rebuild.
2000-02-29 19:52:31 +00:00
Alan Modra
40d109bfbc
GCC warning fix: Add missing NULL initialiser for find_potential_libraries.
2000-02-29 05:53:53 +00:00
Jim Blandy
db5be682e7
*** empty log message ***
2000-02-29 03:29:27 +00:00
Jim Blandy
765b7cbe05
* ldgram.y (exclude_name_list): Don't require a comma to separate
...
list entries; the lexer considers commas to be valid part of a
filename, so in something like `foo, bar' the comma is considered
part of the first filename, `foo,'.
* ld.texinfo: Update section on EXCLUDE_FILE lists.
2000-02-29 03:28:57 +00:00
Ian Lance Taylor
3558ff4cdb
2000-02-27 Loren J. Rittle <ljrittle@acm.org>
...
* configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
host "i[3456]86-*-freebsdelf*".
2000-02-28 04:31:30 +00:00
Ian Lance Taylor
4eee26817d
2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
...
* scripttempl/i386go32.sc: Move misplaced semicolons.
2000-02-28 03:55:16 +00:00
H.J. Lu
d1bcade6ba
2000-02-27 H.J. Lu (hjl@gnu.org)
...
* lib/ld-lib.exp (default_ld_link): Added "$LIBS" to libs.
2000-02-27 18:59:40 +00:00
Ian Lance Taylor
a74801baf8
rebuild with current tools
2000-02-27 16:55:52 +00:00
Ian Lance Taylor
8d75d12d1b
* Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
...
(ALL_64_EMULATIONS): Remove eelf64hppa.o.
(eelf64hppa.c, ehppaelf.c): Remove targets.
* Makefile.in: Rebuild.
2000-02-26 03:38:18 +00:00
Alexandre Oliva
ad51fb572c
* configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
...
GNU/Linux/sparc, but keep the default as 32.
2000-02-25 19:43:12 +00:00
Alexandre Oliva
a1836d496f
* configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
...
it default if sparcv9 or sparc64.
2000-02-25 19:30:22 +00:00