Commit Graph

465 Commits

Author SHA1 Message Date
J.T. Conklin 7ce691aec4 * ld.texinfo: Document --fatal-warnings.
* ld.1: Regenerate.

* ldmisc.c (vfinfo): Set flag to inhibit making executable if
warnings have been turned into errors.
* lexsup.c (OPTION_WARN_FATAL): Define.
(ld_options): Entry for --fatal-warnings.
(parse_args): Handle OPTION_WARN_FATAL.
* ld.h (ld_config_type): Add fatal_warnings field.
2001-04-13 02:22:23 +00:00
Jakub Jelinek f5fa8ca231 bfd/
* libbfd-in.h (_bfd_merge_section): New.
	(_bfd_write_merged_section): New.
	(_bfd_merged_section_offset): New.
	* libbfd.h: Rebuilt.
	* linker.c (_bfd_generic_link_output_symbols): Handle
	discard_sec_merge.
	* aoutx.h (aout_link_write_symbols): Likewise.
	* pdp11.c (aout_link_write_symbols): Likewise.
	* elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
	(elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
	sections.
	(elf_link_sec_merge_syms): New.
	(elf_link_input_bfd): Call _bfd_merged_section_offset
	and _bfd_write_merged_section.
	Handle discard_sec_merge.
	* elf-bfd.h (struct elf_link_hash_table): Add merge_info
	field.
	(struct bfd_elf_section_data): Likewise.
	* elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
	SEC_STRINGS section flags and entsize from their ELF counterparts.
	(_bfd_elf_link_hash_table_init): Initialize merge_info.
	(elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
	from their BFD counterparts.
	* merge.c: New file.
	* Makefile.am: Add strtab.lo.
	* Makefile.in: Rebuilt.
include/
	* bfdlink.h (bfd_link_discard): Add discard_sec_merge.
gas/
	* config/obj-elf.c (obj_elf_change_section): Add entsize argument,
	handle SHF_MERGE and SHF_STRINGS.
	(obj_elf_parse_section_letters): Set SHF_MERGE and SHF_STRINGS.
	(obj_elf_section): Allow additional argument specifying entity size.
	* write.c (adjust_reloc_syms): Keep relocations against local symbols
	in SEC_MERGE sections.
ld/
	* ldmain.c (main): Default to discard_sec_merge.
	* lexsup.c (OPTION_DISCARD_NONE): Define.
	(ld_options): Add --discard-none.
	(parse_args): Handle OPTION_DISCARD_NONE.
	* ldlang.c (wild_doit): SEC_MERGE should be set in the output
	section only if SEC_MERGE and SEC_STRINGS flags and entsize of
	all its input sections match.
2001-04-13 00:34:36 +00:00
H.J. Lu fdec3cfc83 2001-04-05 Steven J. Hill <sjhill@cotw.com>
* Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
	(ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
	(eelf32ltsmip.c): New target.
	(eelf64btsmip.c): Likewise.
	(eelf64ltsmip.c): Likewise.
	* Makefile.in: Regenerated.

	* configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
	target.
	(mips*-*-linux-gnu*): Likewise.

	* emulparams/elf32ltsmip.sh: New. Traditional little endian
	MIPS taget.
	* emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
	target.
	* emulparams/elf64ltsmip.sh: New. Traditional 64bit little
	endian target.
2001-04-08 05:13:57 +00:00
Hans-Peter Nilsson 589bad82a2 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
correct value of __Stext here.
	(TEXT_START_SYMBOLS): Define; always define __Stext, to start of
	.startup section.

	* emulparams/crislinux.sh: Remove FIXME.
2001-04-05 20:37:54 +00:00
David O'Brien 358a550280 2001-04-01 David O'Brien <obrien@FreeBSD.org>
* ld-undefined/undefined.exp: XFAIL on FreeBSD/i386 for the usual (even
	though it doesn't use DWARF2 yet (but its output is identical).

Approved by:  Alan Modra <alan@linuxcare.com.au>
              <Pine.LNX.4.21.0104021511350.487-100000@front.linuxcare.com.au>
2001-04-02 23:44:03 +00:00
David O'Brien 44df2f94b9 001-04-01 David O'Brien <obrien@FreeBSD.org>
* ld-selective/selective.exp: Use -O with gcc rather than -O2.
	This optimization level is buggy on some platforms, and this test
	is not intended to test compiler optimizations.

Approved by:  Alan Modra <alan@linuxcare.com.au>
              <Pine.LNX.4.21.0104021510450.487-100000@front.linuxcare.com.au>
2001-04-02 23:33:20 +00:00
Alan Modra 94202e16cf Bump page size to 64k 2001-04-02 01:21:27 +00:00
Hans-Peter Nilsson 1268a053f8 * configure.tgt (cris-*-*): Change default emulation to criself.
(cris-*-*aout*): New rule.
2001-03-27 02:37:41 +00:00
Alan Modra d85e9ff7b1 Go to 16k page size on hppa-linux. 2001-03-27 00:42:47 +00:00
Andreas Jaeger 0879a67a8f 2001-03-26 Andreas Jaeger <aj@suse.de>
* binutils.texi (nm): Fix texi syntax.

2001-03-26  Andreas Jaeger  <aj@suse.de>

	* ld.texinfo (Overview): Fix syntax in texi code.
2001-03-26 07:02:59 +00:00
Nick Clifton 0285c67df1 Automate generate on man pages 2001-03-25 20:32:31 +00:00
Nick Clifton c20ec07b9a Support the GCC flags '-ffunction-sections' and '-fdata-sections'.
Set the VMA of STABS sections to zero.
2001-03-23 23:05:07 +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
Michael Meissner f9faad58a2 Fixup checkin of wrong source 2001-03-08 02:26:19 +00:00
Michael Meissner 788fca5a32 Add support for -fdata-sections 2001-03-08 02:20:25 +00:00
DJ Delorie b536df83ee * ld-scripts/cross2.t: Support any type of text/data sections, not
just the canonical ones.
2001-03-06 23:03:28 +00:00
Alan Modra 1c7566d167 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
after_allocation_default, not gld..._before_allocation.
2001-03-05 05:02:03 +00:00
Matthew Hiller c19bd1c6f4 *** empty log message *** 2001-03-01 19:39:30 +00:00
Matthew Hiller 1688b748f1 2001-02-28 Matt Hiller <hiller@redhat.com>
* testsuite/ld-scripts/crossref.exp: Initialize flags to
	[big_or_little_endian].
	* testsuite/ld-undefined/undefined.exp: Ditto, and include $flags
	in ld invocations.
	* testsuite/lib/ld-lib.exp (big_or_little_endian): Recognize -EB,
	-eb, EL and el.
	(is_endian_output_format): New function.
	(default_ld_link): Set flags to [big_or_little_endian] only if ld
	is being invoked such that the output format being used is of
	known endianness.
	(default_ld_simple_link): Ditto.
2001-03-01 19:13:27 +00:00
Alan Modra 27b7e12d2d Bump version to 2.11.90, fix missing dependencies in bfd/,
and run "make dep-am".
2001-02-27 06:43:56 +00:00
Timothy Wall 2bc551c701 Add aix5 settings. 2001-02-27 03:23:00 +00:00
Nick Clifton 1276aefac0 BFD: Catch & report unhandled PE section flags.
LD: Catch BFD errors whilst loading symbols and do not produce an executable.
2001-02-27 01:38:06 +00:00
Timothy Wall 41c4999810 Add ia64-*-aix* configuration. 2001-02-22 17:24:33 +00:00
Kazu Hirata 1ac7e077c9 Fix a typo. 2001-02-21 00:19:45 +00:00
H.J. Lu 78f85fd798 2001-02-20 H.J. Lu <hjl@gnu.org>
* ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
	false if we found the file.
2001-02-20 21:07:24 +00:00
David O'Brien fb33b90691 001-02-18 David O'Brien <obrien@FreeBSD.org>
* configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
	FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.

Approved by:  Philip Blundell <philb@gnu.org>
              Message-Id: <E14URxF-00023n-00@kings-cross.london.uk.eu.org>
2001-02-19 06:51:51 +00:00
Nick Clifton e135f41bc2 Add PDP-11 support 2001-02-18 23:33:11 +00:00
David O'Brien a842aceb48 2001-02-17 David O'Brien <obrien@FreeBSD.org>
* configure.host: Add a generic FreeBSD configuration entry such that
	all [modern] FreeBSD systems on all platforms will look the same.

Approved by:  Alan Modra <alan@linuxcare.com.au>
              <Pine.LNX.4.21.0102172155140.30011-100000@front.linuxcare.com.au>
2001-02-18 02:17:24 +00:00
H.J. Lu 69f03d6521 Change "armelf" to armelf. 2001-02-15 17:18:35 +00:00
H.J. Lu ad995491f8 2001-02-14 H.J. Lu <hjl@gnu.org>
* ld-bootstrap/bootstrap.exp: Rebuild tmpdir/ld2 with tmpdir/ld3
	for -static on ia64.

	* ld-checks/checks.exp: Don't run on ia64-*-elf* nor
	ia64-*-linux*.

	* ld-elfvers/vers.exp: Also run ia64-*-elf* and ia64-*-linux*.

	* ld-elfvsb/elfvsb.exp: Use i?86-*-*. Also run on ia64-*-linux*.
	Set up expected failures for ia64-*-linux*.
	* ld-shared/shared.exp: Likewise.
2001-02-15 01:17:07 +00:00
H.J. Lu 24174db0fa 2001-02-14 H.J. Lu <hjl@gnu.org>
* configure.tgt: Remove mention of earmelf_linux26.
2001-02-14 18:34:13 +00:00
Richard Henderson 30c3c13a92 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove. 2001-02-13 23:07:54 +00:00
H.J. Lu b46a87b160 2001-02-13 H.J. Lu <hjl@gnu.org>
* ldexp.h (node_type): Add etree_provided.
	* ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
	type to etree_provided if defined by PROVIDE. Allow updating
	for etree_provided.
	(exp_print_tree): Handle etree_provided.
	* mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
	etree_provided.
2001-02-13 22:23:33 +00:00
Richard Henderson f3988fd901 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
.IA_64.unwind.* pattern to unwind table section and
        .IA_64.unwind_info* pattern to unwind info section.
2001-02-10 01:44:39 +00:00
Nick Clifton a85d7ed0f0 Add s390 support 2001-02-10 00:58:38 +00:00
Jakub Jelinek 780248c402 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
targ_extra_libpath.
	(sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2001-02-09 15:55:14 +00:00
Stephane Carrez fef67c28c8 * ld-srec/srec.exp (run_srec_test): m6811 code has references
to soft registers, define them with --defsym.
	* ld-selective/selective.exp: Likewise.
2001-02-08 18:57:47 +00:00
Phil Blundell 0e2534bd04 2001-02-06 Philip Blundell <philb@gnu.org>
* Makefile.am: Remove mention of earmelf_linux26.
	* Makefile.in: Regenerate.
2001-02-06 08:19:34 +00:00
Phil Blundell 46c1ea57dc 2001-02-04 Philip Blundell <philb@gnu.org>
* emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
	* emulparams/armelf_linux26.sh: Delete.
	* configure.tgt: Remove mention of armelf_linux26 emulation.
2001-02-04 14:01:35 +00:00
Nick Clifton 0088edd2a0 Replace occurances of -oformat with --oformat. 2001-02-01 18:44:43 +00:00
Alan Modra 02aa14fb32 (lang_leave_overlay): Don't set lma_region when load_base is specified. 2001-01-25 02:31:42 +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 c1eb148815 Only set lma_region from the default for the first section
of a group of overlay sections.
2001-01-23 11:48:28 +00:00
Alan Modra d9fc371418 Allow Maciej to select weird --libdir options and still select
tooldir correctly.
2001-01-22 13:50:17 +00:00
Jim Wilson 6be0ca9435 Fix gp overflow problem with Intel compiler.
* emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
	and IA_64.unwind.info.
2001-01-16 23:44:26 +00:00
H.J. Lu b92473047e 2001-01-16 H.J. Lu <hjl@gnu.org>
* ldlang.c (lang_check): Merge the private data only if the
	input file has contents.
2001-01-16 21:04:29 +00:00
Alan Modra d952f17a9d Linux target variants for elfxx-hppa. 2001-01-14 11:12:53 +00:00
Alan Modra ffd6e9debc Automatically enable --unique=.text for elf32-hppa. 2001-01-14 07:39:01 +00:00