Alan Modra
39dcfe18ca
(wild_doit): Rename to lang_add_section.
2001-08-14 02:01:31 +00:00
Alan Modra
22af9fd35c
* emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
...
output_section is set non-NULL.
2001-08-13 14:28:57 +00:00
Alan Modra
0f33d40bfc
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
...
`true' for SEC_EXCLUDE sections so that the generic code doesn't
needlessly create an output_section_statement. Treat a correctly
named output_section_statement with NULL bfd_section as compatible.
2001-08-13 10:56:21 +00:00
Alan Modra
738108961e
* emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2001-08-09 14:44:18 +00:00
H.J. Lu
5030876b5d
2001-07-14 H.J. Lu <hjl@gnu.org>
...
* emultempl/elf32.em (output_prev_sec_find): Never return
bfd_abs_section_ptr, bfd_com_section_ptr nor
bfd_und_section_ptr.
2001-07-14 16:36:25 +00:00
Jakub Jelinek
95500e1ca4
* emultempl/elf32.em (output_prev_sec_find): New.
...
(place_orphan): Use it.
2001-07-13 07:25:18 +00:00
David O'Brien
c2a1a436ff
2001-07-09 David O'Brien <obrien@FreeBSD.org>
...
* emultempl/elf32.em: Do not assuming that contents of the buffer
returned from basename function will remain unchanged accross other
function calls.
NOTE: DJ Delorie recomends doing a basename()->lbasename() conversion.
Approved by: DJ Delorie
<200107100030.UAA01223@envy.delorie.com>
2001-07-10 00:38:16 +00:00
Hans-Peter Nilsson
605d9b3a4f
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
...
Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
* mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
* ld.h (args_type): Remove member export_dynamic. All users
changed to use struct bfd_link_info member.
2001-06-18 22:20:57 +00:00
H.J. Lu
86af25fe1d
2001-05-24 H.J. Lu <hjl@gnu.org>
...
* emultempl/aix.em (OUTPUT_ARCH): Defined.
(gld${EMULATION_NAME}_before_parse): Initialize
ldfile_output_architecture, ldfile_output_machine and
ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
* emultempl/beos.em: Likewise.
* emultempl/elf32.em: Likewise.
* emultempl/linux.em: Likewise.
* emultempl/mipsecoff.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/sunos.em: Likewise.
2001-05-25 05:39:22 +00:00
Alexandre Oliva
57e6abd277
* emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
...
variable to avoid non-portable shell construct.
2001-05-24 02:44:06 +00:00
Nick Clifton
506eee2253
Improve Solaris compatability
2001-05-22 14:00:18 +00:00
H.J. Lu
1c9acd948f
2001-05-03 H.J. Lu <hjl@gnu.org>
...
* emultempl/elf32.em: Include "libiberty.h".
(gld${EMULATION_NAME}_vercheck): Call basename () to get the
basename of the bfd filename.
(gld${EMULATION_NAME}_stat_needed): Likewise.
(gld${EMULATION_NAME}_try_needed): Likewise.
(gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2001-05-03 06:26:26 +00:00
Ulrich Drepper
cc5ce05235
* emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
...
is an absolute path look only for this file and not along the path.
2001-03-20 18:39:21 +00:00
Ulrich Drepper
a1ab1d2aa3
* emultempl/elf32.em (OPTION_GROUP): New macro.
...
Add new option Bgroup to longopts.
(gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
(gld*_list_options): Add -Bgroup and -z defs.
* ld.1: Document -Bgroup and -z defs.
* ld.texinfo: Likewise.
2001-03-17 21:24:26 +00:00
Nick Clifton
a2b64bede3
Fixtypos in ChangeLogs, fix copyright dates in files
2001-03-13 06:14:29 +00:00
Hans-Peter Nilsson
f813923cf3
* emultempl/elf32.em: Correct spelling in comments and listed
...
options.
2001-01-24 06:14:09 +00:00
Alan Modra
577a062318
Extend "ld --unique" functionality.
2001-01-14 04:36:35 +00:00
David O'Brien
482e8b3206
2000-01-07 David O'Brien <obrien@BSDi.com>
...
* emultempl/elf32.em: Only perform Linux ld hints processing when
targeting Linux.
Approved by: Nick Clifton <nickc@redhat.com>
Message-Id: <200101040127.RAA15127@elmo.cygnus.com>
2001-01-08 05:25:58 +00:00
Nick Clifton
6d02a66752
Remove spurious whitespace
2000-12-12 19:37:01 +00:00
Jim Wilson
c940e6fcdf
Handle srdata sections emitted by Intel compiler.
...
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2000-11-08 00:39:32 +00:00
Alan Modra
b3ea35849f
Handle out of memory situations.
2000-09-20 04:20:26 +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
Alan Modra
f998903041
Fix place_orphan crash.
2000-09-06 15:28:25 +00:00
Alan Modra
a854a4a7c8
--split-by-reloc, --split-by-file extensions. --unique option.
2000-09-05 03:05:19 +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
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
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
Nick Clifton
e374f1d977
Refer to -rpath not --rpath in error message
2000-08-09 00:51:42 +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
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
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
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
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
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
aea4bd9d34
place_orphan optimisations
2000-04-25 05:14:16 +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
Alan Modra
01cc8ff856
Zero start address of orphan ~(SEC_LOAD | SEC_ALLOC) sections.
2000-04-14 01:58:29 +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
40d109bfbc
GCC warning fix: Add missing NULL initialiser for find_potential_libraries.
2000-02-29 05:53:53 +00:00
Timothy Wall
562d3460fb
Add LMA memory region functionality.
2000-02-16 18:53:32 +00:00
Jeff Law
93a6d43674
Wed Nov 3 23:31:19 1999 Jeffrey A Law (law@cygnus.com)
...
* emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
Clean up code to use EXTRA_SHLIB_EXTENSION.
1999-09-14 Ulrich Drepper <drepper@cygnus.com>
* configure.in: Define EXTRA_SHLIB_EXTENSION to ".sl" for HP target.
* config.in: Add EXTRA_SHLIB_EXTENSION.
* emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
Search for second shared lib extension only if EXTRA_SHLIB_EXTENSION
is defined.
1999-11-04 06:45:07 +00:00
Jeff Law
9f5b33d795
Fix typo in last change.
1999-09-17 21:58:45 +00:00
Jeff Law
d3cc5bd625
* emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
...
Use the same filename extension for the bfd_elf_dt_needed_name call
as we did for finding the library.
1999-09-16 20:53:09 +00:00
Jeff Law
070f1aed4e
* emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
...
Search for file with .sl extension if no file with a .so extension
is found.
1999-09-14 02:42:51 +00:00
Nick Clifton
3b108066c9
Add ability for individual targets to have their own command line switches by
...
defining PARSE_AND_LIST_ARGS.
1999-08-23 09:07:45 +00:00
Ian Lance Taylor
597e25914e
* emultempl/ostring.sed: Rename from stringify.sed.
...
* emultempl/astring.sed: New file.
* Makefile.am (stringify.sed): New target.
(GEN_DEPENDS): Change $(srcdir)/emultempl/stringify.sed to
stringify.sed.
* configure.in: Define and substitute STRINGIFY.
* emultempl/*.em: Use stringify.sed from build directory rather
than source directory.
* emultempl/elf32.em: Use stringify.sed rather than inline sed
script.
* emultempl/gld960.em, emultempl/gld960c.em: Likewise.
* emultempl/hppaelf.em, emultempl/linux.em: Likewise.
* emultempl/lnk960.em, emultempl/sunos.em: Likewise.
* configure, Makefile.in: Rebuild.
1999-08-06 22:46:03 +00:00
Andreas Schwab
5d341b0e2a
* emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Add missing
...
comma in initializer.
1999-07-12 06:24:03 +00:00
Ian Lance Taylor
87f2a3464b
* Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
...
as appropriate. Fill in structure initializations.
1999-07-11 20:09:04 +00:00
Richard Henderson
f97f730029
* emultempl/armelf.em: Watch EMULATION_LIBPATH instead of
...
DEFAULT_EMULATION.
* emultempl/elf32.em: Likewise.
* emultempl/sunos.em: Likewise.
1999-06-20 14:12:08 +00:00
Richard Henderson
252b5132c7
19990502 sourceware import
1999-05-03 07:29:11 +00:00