Kaz Kojima
308f753f1c
* emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
...
* emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
2003-06-03 04:51:49 +00:00
Nick Clifton
3bb727441d
Add new test for cygwin target: building an executable with an export table.
2003-06-02 09:11:01 +00:00
Nick Clifton
03a1c9a708
Scan table pe_dll->exports, which is sorted alphabetically, instead of
...
exported_symbols, which is sorted by ordinal.
2003-06-02 08:43:37 +00:00
Jakub Jelinek
36af4a4e51
bfd/
...
* elflink.h (elf_link_add_object_symbols): Use !info->executable
instead of info->shared where appropriate.
(bfd_elfNN_size_dynamic_sections, elf_link_output_extsym): Likewise.
* elflink.c (_bfd_elf_create_got_section): Likewise.
(_bfd_elf_link_create_dynamic_sections): Likewise.
(_bfd_elf_link_assign_sym_version): Likewise.
* elf32-i386.c (elf_i386_size_dynamic_sections): Create .interp section
and DT_DEBUG dynamic tag even for position independent executables.
* elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
* elf32-s390.c (elf_s390_size_dynamic_sections: Likewise.
* elf64-ppc.c (ppc64_elf_size_dynamic_sections: Likewise.
* elf64-s390.c (elf_s390_size_dynamic_sections: Likewise.
* elf64-x86-64.c (elf64_x86_64_size_dynamic_sections: Likewise.
* elfxx-ia64.c (elfNN_ia64_size_dynamic_sections: Likewise.
* elf32-sparc.c (elf32_sparc_size_dynamic_sections: Likewise.
* elf64-alpha.c (elf64_alpha_size_dynamic_sections: Likewise.
* elf64-sparc.c (sparc64_elf_size_dynamic_sections: Likewise.
include/
* bfdlink.h (struct bfd_link_info): Add pie and executable
bits.
ld/
* lexsup.c (OPTION_PIE): Define.
(ld_options): Add -pie and --pic-executable options.
(parse_args): Handle OPTION_PIE.
* ldmain.c (main): Initialize link_info.pie and
link_info.executable.
* genscripts.sh: Generate PIE scripts.
* ld.texinfo: Document -pie and --pic-executable options.
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
(gld${EMULATION_NAME}_place_orphan): Likewise.
(gld${EMULATION_NAME}_get_script): Include PIE scripts.
* scripttempl/elf.sc: In PIE scripts set . the same way as in
shared scripts.
* emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
* emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
2003-05-30 15:50:12 +00:00
H.J. Lu
cdaeef2eb5
ld/
...
2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
* genscripts.sh: Create tmpdir/libpath.exp.
ld/testsuite/
2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
* config/default.exp: Load tmpdir/libpath.exp.
(gcc_ld_flag): Set from $libpath.
2003-05-30 13:23:25 +00:00
Nick Clifton
06aa72344f
(arm_elf_before_allocation): Replace ASSERT with a test for a NULL
...
bfd_for_interworking.
2003-05-30 08:19:30 +00:00
Jason Thorpe
561c27b2bb
* configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
...
correctly for more recent versions of NetBSD.
(alpha*-*-netbsd*): Remove.
(i[3-7]86-*-netbsd*): Remove.
2003-05-29 17:38:52 +00:00
Nick Clifton
29e1a6e4ca
Replace <ctype.h> with "safe-ctype.h"
2003-05-29 15:05:41 +00:00
Jason Thorpe
43f9d75bc1
* ld-elf/elf.exp: Use if_elf_format.
...
* ld-elf/sec64k.exp: Likewise.
* ld-elfcomm/elfcomm.exp: Likewise.
* lib/ld-lib.exp (is_elf_format): Match hppa*64*-*-hpux*.
2003-05-29 00:16:46 +00:00
Maciej W. Rozycki
90be1c5c08
* emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
...
trap on pointer crops.
2003-05-26 11:56:26 +00:00
Jason Thorpe
493e6a13fd
* ld-mips-elf/mips-elf.exp: Make all NetBSD targets match as elf.
2003-05-25 14:36:19 +00:00
Nick Clifton
cea3d58d02
Check for a target triplet of shl-...-netbsdelf as well as shle-...-netbsdelf.
2003-05-21 13:06:30 +00:00
H.J. Lu
22d5e33918
bfd/
...
2003-05-20 Jakub Jelinek <jakub@redhat.com>
* elflink.h (elf_link_output_extsym): Only issue error about !=
STV_DEFAULT symbols if they are bfd_link_hash_undefined.
2003-05-20 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (_bfd_elf_merge_symbol): Check ELF_LINK_DYNAMIC_DEF
when removing the old definition for symbols with non-default
visibility.
ld/testsuite/
2003-05-20 Jakub Jelinek <jakub@redhat.com>
* ld-elfvsb/common.c: New file.
* ld-elfvsb/elfvsb.exp: Add common.
2003-05-20 H.J. Lu <hongjiu.lu@intel.com>
* ld-elfvsb/sh3.c: New file.
* ld-elfvsb/test.c: Likewise.
* ld-elfvsb/elfvsb.exp: Add new weak hidden symbol tests.
2003-05-20 14:35:01 +00:00
Nick Clifton
80c7c40aef
Replace i[3456]86 with i[3-7]86
2003-05-16 16:30:27 +00:00
H.J. Lu
b765d4e375
2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
...
* config/default.exp (gcc_ld_flag): New. Make the newly built
linker available to gcc.
* lib/ld-lib.exp (default_ld_simple_link): Pass $gcc_ld_flag
to gcc.
* ld-elfvers/vers.exp: Use "ld_simple_link $CC" to build shared
libraries.
* ld-elfvsb/elfvsb.exp: Likewise.
* ld-elfweak/elfweak.exp: Likewise.
* ld-shared/shared.exp: Likewise.
* ld-elfvers/vers.exp: Use "-Wl,-rpath,." to build shared
libraries.
* ld-elfvsb/elfvsb.exp: Likewise.
* ld-elfvsb/elfvsb.exp: Remove xfail for powerpc-*-linux*.
* ld-elfweak/elfweak.exp: Use PIC for shared libraries.
2003-05-16 05:04:34 +00:00
H.J. Lu
a6c0916fe9
2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
...
* emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
2003-05-15 14:56:33 +00:00
Stephane Carrez
99573a9826
* ld-m68hc11/link-hcs12.d: New test.
...
* ld-m68hc11/link-hcs12.s: New file.
* ld-m68hc11/link-hc12.s: New file.
2003-05-13 19:11:45 +00:00
H.J. Lu
5c449c3fa6
2003-05-13 H.J. Lu <hongjiu.lu@intel.com>
...
* ld-elfweak/elfweak.exp: Fix typo.
2003-05-13 16:13:28 +00:00
Nick Clifton
59758b1cc8
Run on sh[34]*-*-linux*.
2003-05-13 11:39:58 +00:00
Hans-Peter Nilsson
5ff4a71ef3
* ld-mmix/b-fixo2.d, ld-mmix/bpo-18.d, ld-mmix/bpo-18m.d,
...
ld-mmix/loc4.d, ld-mmix/loc4m.d, ld-mmix/loc6.d, ld-mmix/loc6m.d,
ld-mmix/locdo-1.d, ld-mmix/sec-1.d, ld-mmix/sec-2.d,
ld-mmix/sec-3.d, ld-mmix/sec-4.d, ld-mmix/sec-5.d,
ld-mmix/sec-7m.d, ld-mmix/sec-8m.d, ld-mmix/spec802.d,
ld-mmix/spec803.d, ld-mmix/spec804.d, ld-mmix/spec805.d,
ld-mmix/spec806.d, ld-mmix/spec807.d, ld-mmix/spec808.d: Tweak for
objdump no longer truncating dump addresses.
2003-05-12 05:45:38 +00:00
Daniel Jacobowitz
df9a14a132
Add missing changelog entry for last commit:
...
* configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
2003-05-09 20:05:46 +00:00
Daniel Jacobowitz
d2012d1718
* Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
...
(earmelfb.c, earmelfb_linux.c): New rules.
* Makefile.in: Regenerated.
* emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
2003-05-09 20:05:04 +00:00
Nick Clifton
3cd9fdd546
oops - update date in ChangeLog entry
2003-05-09 16:13:45 +00:00
Nick Clifton
661849791b
Default to generating a fatal error message if a loadable section is not
...
allocated to a memory region when regions are defined.
2003-05-09 16:12:07 +00:00
Martin Schwidefsky
4648dfcf5b
* ld-elfvsb/elf-offset.ld: Add .rel.eh_frame and .rela.eh_frame
...
to linker script.
* ld-elfvsb/elfvsb.exp (visibility_run): Add setup_xfails for s390x.
* ld-selective/selective.exp: Disable for s390 and s390x.
* ld-shared/elf-offset.ld: Add .rel.eh_frame and .rela.eh_frame
to linker script.
* ld-shared/shared.exp (shared_test): Add setup_xfails for s390x.
* ld-undefined/undefined.exp (checkund): Remove setup_xfail for s390x.
2003-05-09 15:35:09 +00:00
Alan Modra
efdffbe268
* Makefile.am (em68hc11elf.c): Correct dependencies.
...
(em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
* Makefile.in: Regenerate.
* emultempl/elf32.em (find_exp_assignment): Adjust for changed
bfd_elf_record_link_assignment name.
2003-05-09 02:28:01 +00:00
H.J. Lu
54c9a60f31
2003-05-08 H.J. Lu <hongjiu.lu@intel.com>
...
* ld-elfvers/vers.exp: Add vers27d4 and vers27d5 to test
versioned reference for hidden symbol.
* ld-elfvers/vers27d4.dsym: New file.
* ld-elfvers/vers27d4.ver: Likewise.
2003-05-08 19:51:48 +00:00
H.J. Lu
95b4a16ea5
2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
...
* ld-elfvers/vers27d3.c (__start): New.
(start): New.
2003-05-08 07:01:11 +00:00
H.J. Lu
0ae911fecd
2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
...
* ld-elfvers/vers.exp (build_binary): Support build exeutable.
(build_binary): Renamed from ...
(build_vers_lib): This.
(build_vers_lib_no_pic): Updated.
(build_vers_lib_pic): Likewise.
Add vers27d1, vers27d2 and vers27d3 to test versioned
definition for hidden symbol referenced by a DSO.
* ld-elfvers/vers27d.dsym: New file.
* ld-elfvers/vers27d.sym: Likewise.
* ld-elfvers/vers27d.ver: Likewise.
* ld-elfvers/vers27d1.c: Likewise.
* ld-elfvers/vers27d2.c: Likewise.
* ld-elfvers/vers27d3.c: Likewise.
2003-05-08 05:10:47 +00:00
Andreas Schwab
3a8260b266
* ld-elfvsb/elfvsb.exp: Run dump tests even when cross
...
compiling.
2003-05-07 09:21:27 +00:00
Alexandre Oliva
697380b39c
* config/default.exp (gcc_gas_flags): Force ABI to n32 on
...
mips64-linux.
* ld-elf/merge.d: Xfail on mips64*-linux-gnu*.
* ld-mips-elf/mips-elf-flags.exp (ldemul): Set to o32-compatible
on mips-sgi-irix6*, mips64-linux-gnu and mips64el-linux-gnu.
(good_combination, bad_combination): Use it.
Add -32 or -mabi=o64 wherever the ABI was formerly implied.
2003-05-07 05:08:02 +00:00
Alexandre Oliva
8aae64e67e
* ldmain.h (overflow_cutoff_limit): Declare.
...
* ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
(reloc_overflow): Limit error messages based on it.
* lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
unlimited.
2003-05-07 04:14:57 +00:00
H.J. Lu
08d5f1b40e
2003-05-06 H.J. Lu <hjl@gnu.org>
...
* ld-elfvers/vers.exp (objdump_versionstuff): Support comment
in expected version file.
* ld-elfvers/vers25b.c: Add a line of comment.
* ld-elfvers/vers25b.dsym: Likwise.
* ld-elfvers/vers25b.ver: Likwise.
* ld-elfvers/vers26b.dsym: Likwise.
* ld-elfvers/vers26b.ver: Likwise.
* ld-elfvers/vers27b.dsym: Likwise.
* ld-elfvers/vers27b.ver: Likwise.
* ld-elfvers/vers27c.c: Likwise.
* ld-elfvers/vers27c.dsym: Likwise.
* ld-elfvers/vers27c.ver: Likwise.
2003-05-06 15:55:09 +00:00
Alan Modra
5c7966bf11
* ldlex.l: Accept C style comments in version scripts.
2003-05-05 06:28:00 +00:00
H.J. Lu
ef5aade5ac
bfd/
...
2003-05-04 H.J. Lu <hjl@gnu.org>
* elf32-i386.c (allocate_dynrelocs): Don't allocate dynamic
relocation entries for weak undefined symbols with non-default
visibility.
(elf_i386_relocate_section): Initialize the GOT entries and
skip R_386_32/R_386_PC32 for weak undefined symbols with
non-default visibility.
* elfxx-ia64.c (allocate_fptr): Don't allocate function
descriptors for weak undefined symbols with non-default
visibility.
(allocate_dynrel_entries): Don't allocate relocation entries
for symbols resolved to 0.
(set_got_entry): Don't install dynamic relocation for weak
undefined symbols with non-default visibility.
(set_pltoff_entry): Likewise.
* elflink.h (elf_fix_symbol_flags): Hide weak undefined symbols
with non-default visibility.
(elf_link_output_extsym): Don't make weak undefined symbols
with non-default visibility dynamic.
ld/testsuite/
2003-05-04 H.J. Lu <hjl@gnu.org>
* ld-elfvsb/main.c: Updated.
* ld-elfvsb/sh1.c: Likewise.
2003-05-05 05:46:53 +00:00
H.J. Lu
839efa267f
Add missing entries for the last checkin.
2003-05-05 03:44:59 +00:00
H.J. Lu
c424e0e973
bfd/
...
2003-05-04 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_merge_symbol): Correctly handle weak definiton.
ld/testsuite/
2003-05-04 H.J. Lu <hjl@gnu.org>
* ld-elfvers/vers18.dsym: Updated for weak definiton change.
* ld-elfvers/vers18.ver: Likewise.
* ld-elfvers/vers19.ver: Likewise.
* ld-elfweak/elfweak.exp: Remove xfail.
2003-05-05 03:33:09 +00:00
Alexandre Oliva
508073f77f
* ld-mips-elf/multi-got-1.d: Force into big-endian mode.
...
Turn relocation offsets into regexps.
2003-05-04 21:06:35 +00:00
H.J. Lu
95aa61ce02
2003-05-03 H.J. Lu <hjl@gnu.org>
...
* ld-elfvers/vers.exp: Add vers27a, vers27b, vers27c1 and
vers27c2 to test versioned definition vs. hidden definition in
different files.
* ld-elfvers/vers27a.c: New file.
* ld-elfvers/vers27a.dsym: Likewise.
* ld-elfvers/vers27a.map: Likewise.
* ld-elfvers/vers27a.ver: Likewise.
* ld-elfvers/vers27b.c: Likewise.
* ld-elfvers/vers27b.dsym: New empty file.
* ld-elfvers/vers27b.ver: Likwise.
* ld-elfvers/vers27c.c: Likwise.
* ld-elfvers/vers27c.dsym: Likwise.
* ld-elfvers/vers27c.ver: Likwise.
2003-05-03 16:51:05 +00:00
Nick Clifton
2968149b03
Fix xstormy16's handling of pc-relative relocs against defined symbols.
2003-05-02 12:42:13 +00:00
Andreas Jaeger
fcd06cfe45
* ld-elfvers/vers.exp (build_exec): Disable vers26b3 on x86-64-linux.
2003-05-02 08:16:25 +00:00
H.J. Lu
bf57c3c94d
gas/
...
2003-04-30 H.J. Lu <hjl@gnu.org>
* config/tc-ia64.c (md_section_align): Deleted.
* config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
(md_section_align): New.
gas/testsuite/
2003-04-29 H.J. Lu <hjl@gnu.org>
* gas/ia64/ia64.exp: Add align.
* gas/ia64/align.d: New file.
* gas/ia64/align.s: Likewise.
* ia64/dependency-1.d: Remove the padding.
ld/testsuite/
2003-04-29 H.J. Lu <hjl@gnu.org>
* ld-ia64/tlsbin.dd: Updated.
* ld-ia64/tlsbin.rd: Likewise.
* ld-ia64/tlsbin.sd: Likewise.
* ld-ia64/tlsbin.td: Likewise.
* ld-ia64/tlspic.rd: Likewise.
* ld-ia64/tlspic.sd: Likewise.
* ld-ia64/tlspic.td: Likewise.
2003-05-01 00:53:39 +00:00
Joern Rennecke
5ad8914f65
* ld-selective/3.cc (start): New function.
...
* ld-selective/4.cc: Likewise.
* ld-selective/5.cc: Likewise.
2003-04-30 12:07:19 +00:00
H.J. Lu
c7996ad628
bfd/
...
2003-04-28 H.J. Lu <hjl@gnu.org>
* elfxx-ia64.c (elfNN_ia64_relax_section): Relax ldxmov during
the relax finalize pass.
* section.c (struct sec): Add need_finalize_relax and remove
flag11.
(STD_SECTION): Update struct sec initializer.
* bfd-in2.h: Regenerated.
include/
2003-04-28 H.J. Lu <hjl@gnu.org>
* bfdlink.h (bfd_link_info): Add relax_finalizing.
ld/
2003-04-28 H.J. Lu <hjl@gnu.org>
* ldlang.c (lang_process): Add the relax finalize pass.
* ldmain.c (main): Initialize link_info.relax_finalizing to
FALSE.
2003-04-29 01:53:46 +00:00
H.J. Lu
f006af20ee
bfd/
...
2003-04-28 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_merge_symbol): Call elf_backend_copy_indirect_symbol
to copy any information related to dynamic linking when we flip
the indirection.
ld/testsuite/
2003-04-28 H.J. Lu <hjl@gnu.org>
* ld-elfvers/vers.exp (picflag): Set PIC flag for compiler.
(build_vers_lib): Support PIC.
(build_vers_lib_no_pic): New. Change all calls to build_vers_lib
to build_vers_lib_no_pic.
(build_vers_lib_pic): New.
Add tests vers26a, vers26b1, vers26b2 and vers26b3 for versioned
definition vs. normal definition in different files.
* ld-elfvers/vers26a.c: New file.
* ld-elfvers/vers26a.dsym: Likewise.
* ld-elfvers/vers26a.map: Likewise.
* ld-elfvers/vers26a.ver: Likewise.
* ld-elfvers/vers26b.c: Likewise.
* ld-elfvers/vers26b.dsym: New empty file.
* ld-elfvers/vers26b.ver: Likewise.
2003-04-28 16:58:01 +00:00
H.J. Lu
1b1fe8feb3
bfd/
...
2003-04-27 H.J. Lu <hjl@gnu.org>
* elf-bfd.h (ELF_LINK_DYNAMIC_DEF): New.
(ELF_LINK_DYNAMIC_WEAK): New.
* elflink.h (elf_merge_symbol): Add one argument to indicate if
a symbol should be skipped. Ignore definitions in dynamic
objects for symbols with non-default visibility.
(elf_add_default_symbol): Adjusted.
(elf_link_add_object_symbols): Check if a symbol should be
skipped. Don't merge the visibility field with the one from
a dynamic object.
(elf_link_check_versioned_symbol): Use undef_bfd.
(elf_link_output_extsym): Warn if a forced local symbol is
referenced from dynamic objects. Make non-weak undefined symbol
with non-default visibility a fatal error.
ld/testsuite/
2003-04-27 H.J. Lu <hjl@gnu.org>
* ld-elfvsb/elfvsb.dat: Updated.
* ld-elfvsb/elfvsb.exp: Likewise.
* ld-elfvsb/main.c: Likewise.
* ld-elfvsb/sh1.c: Likewise.
* ld-elfvsb/sh2.c: Likewise.
2003-04-28 03:31:36 +00:00
Stephane Carrez
d204f4c0f9
PR savannah/3331:
...
* elf32-m68hc11.c (m68hc11_elf_relax_section): Clear prev_insn_group
when we couldn't relax something.
* ld-m68hc11/bug-3331.d: New test.
* ld-m68hc11/bug-3331.s: New file.
2003-04-26 11:53:36 +00:00
Joern Rennecke
635f10624f
* lib/ld-lib.exp (big_or_little_endian): Also check for -mb and -ml.
2003-04-25 14:23:31 +00:00
H.J. Lu
09bf97202b
2003-04-24 J"orn Rennecke <joern.rennecke@superh.com>
...
* ld-elfcomm/elfcomm.exp: Allow symbols to have '_' prepended.
2003-04-24 21:00:06 +00:00
Roland McGrath
d145330dd9
.
2003-04-24 17:19:55 +00:00
Roland McGrath
d038301c19
2003-04-24 Roland McGrath <roland@redhat.com>
...
* ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
If a name string is unknown, give an error rather than crashing later.
2003-04-24 17:15:25 +00:00
Nick Clifton
0dbc2a48b4
oops - omitted from previous delta
2003-04-24 15:25:24 +00:00
Nick Clifton
8d9cd6b19b
Add support for h8300hn and h8300sn
2003-04-24 12:36:08 +00:00
Kaz Kojima
267fb3c1ce
* elf32-sh.c (tpoff): New.
...
(struct elf_sh_dyn_relocs): Remove tls_tpoff32.
(WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead of INFO.
(allocate_dynrelocs): Don't make unnecessary dynamic TLS
relocations. Adjust WILL_CALL_FINISH_DYNAMIC_SYMBOL uses.
(sh_elf_relocate_section): Likewise. Remove unnecessary tests.
(dtpoff_base): Fix wrong indentation.
(sh_elf_check_relocs): Don't set DF_STATIC_TLS flag with non-TLS
relocations. Don't set tls_tpoff32 flag. Don't make unnecessary
R_SH_TLS_TPOFF32 relocations.
* ld-sh/tlsbin-1.d, ld-sh/tlsbin-2.d, ld-sh/tlsbin-3.d,
ld-sh/tlstpoff-1.d, ld-sh/tlstpoff-2.d: Update for removing
unnecessary TLS relocs.
2003-04-24 05:19:09 +00:00
H.J. Lu
0f0569c4ae
include/
...
* bfdlink.h (bfd_link_callbacks): Add error_handler.
ld/
* ldmain.c (link_callbacks): Initialize error_handler.
* ldmisc.c (error_handler): New function.
* ldmisc.h (error_handler): New prototype.
2003-04-24 01:43:33 +00:00
Joern Rennecke
ef23021837
bfd:
...
* archures.c (enum bfd_architecture): Amend comment to refer to SuperH.
* cpu-sh.c: Likewise.
* elf32-sh.c: Likewise.
* reloc.c (bfd_reloc_code_real): Likewise.
* elf32-sh64-com.c: Change comment to refer to SuperH.
* elf32-sh64.c: Likewise.
* elf64-sh64.c: Likewise.
* bfd-in2.h (enum bfd_architecture): Regenerate.
binutils:
* readelf.c (get_machine_name) <EM_SH>: Amend return value
to refer to SuperH.
gas:
* config/tc-sh.c: Amend comment to refer to SuperH.
* config/tc-sh.h: Likewise.
(LISTING_HEADER): Amend to refer to SuperH.
* config/tc-sh64.c: Change comment to refer to SuperH.
* config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
* doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
* doc/c-sh.texi: Amend to refer to SuperH.
Add SuperH architecture documentation references.
* doc/c-sh64.texi: Change to refer to SuperH.
include/elf:
* common.h (EM_SH): Amend comment to refer to SuperH.
ld/testsuite:
* ld-sh/sh64/crange3-cmpct.rd (Machine): Change to refer to SuperH.
* ld-sh/sh64/crange3-media.rd (Machine): Likewise.
2003-04-23 21:09:04 +00:00
H.J. Lu
834216a99a
Check in the new files.
2003-04-23 16:40:04 +00:00
H.J. Lu
365f913182
2003-04-23 H.J. Lu <hjl@gnu.org>
...
* ld-elfvers/vers.exp (objdump_dynsymstuff): Support empty
files.
(objdump_versionstuff): Likewise.
Add tests vers25a, vers25b1 and vers25b2 for versioned
definition vs. normal definition in different files.
* ld-elfvers/vers25a.c: New file.
* ld-elfvers/vers25a.dsym: Likewise.
* ld-elfvers/vers25a.map: Likewise.
* ld-elfvers/vers25a.ver: Likewise.
* ld-elfvers/vers25b.c: New empty file.
* ld-elfvers/vers25b.dsym: Likewise.
* ld-elfvers/vers25b.ver: Likewise.
2003-04-23 16:34:39 +00:00
H.J. Lu
ab7be2df2a
2003-04-22 H.J. Lu <hjl@gnu.org>
...
* ld-elfcomm/elfcomm.exp: Support 64bit targets.
2003-04-22 15:00:02 +00:00
Stephane Carrez
6c6532f753
* ld-m68hc11/far-hc11.s: New file.
...
* ld-m68hc11/far-hc11.d: New test for HC11 trampoline generation.
* ld-m68hc11/far-hc12.s: New file.
* ld-m68hc11/far-hc12.d: New test for HC12 trampoline generation.
* ld-m68hc11/far-hc12.ld: New file.
2003-04-21 13:30:14 +00:00
Stephane Carrez
e2cebd4bde
* emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
...
* emulparams/m68hc11elfb.sh: Likewise.
* emulparams/m68hc12elf.sh: Likewise.
* emulparams/m68hc12elfb.sh: Likewise.
2003-04-21 13:29:05 +00:00
Stephane Carrez
67bb994066
* emultempl/m68hc1xelf.em: New file to generate far trampolines on
...
68HC11 and 68HC12.
(LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
generate.
(LDEMUL_FINISH): Override to generate the trampolines after gc and
linker relaxation.
(LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
stub file for trampolines.
(PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
--no-trampoline and --bank-window to control the memory bank window.
2003-04-19 08:26:38 +00:00
H.J. Lu
97b51f20ac
2003-04-18 H.J. Lu <hjl@gnu.org>
...
* ldfile.c (ldfile_add_library_path): Remove the unused
variable.
2003-04-18 15:33:49 +00:00
Nick Clifton
517ed4859c
Define __data and __rdata
2003-04-18 08:26:17 +00:00
Nick Clifton
39f1ebed0b
Add .jcr section mapping.
2003-04-16 11:53:46 +00:00
H.J. Lu
37adfc7e9f
2003-04-15 H.J. Lu <hjl@gnu.org>
...
* ld-elfcom/elfcom.exp: Fix a typo.
2003-04-15 14:56:06 +00:00
H.J. Lu
731e28d885
2003-04-15 H.J. Lu <hjl@gnu.org>
...
From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
* ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
2003-04-15 14:50:29 +00:00
Nick Clifton
ca4fa240d6
Properly report filename for alignment reduction.
...
Add test for alignment reduction.
2003-04-15 09:38:11 +00:00
Nick Clifton
c2dcd04ec8
Replace occurrances of 'Hitachi' with 'Renesas'.
2003-04-15 08:51:55 +00:00
Alan Modra
877d60f7bc
* scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
...
other variants of crtbegin.o, crtend.o.
(DTOR): Likewise.
* scripttempl/crisaout.sc (ctors, dtors): Likewise.
* scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
* scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
* scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
* scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
* scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
* scripttempl/mmo.sc (ctors, dtors): Likewise.
* scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
2003-04-14 13:03:17 +00:00
Daniel Jacobowitz
878a91906b
* ld-discard/extern.s, ld-discard/start.s, ld-discard/static.s,
...
ld-sh/refdbg.s: Add leading 0 to .debug_info to prevent parsing it
for error messages.
2003-04-13 14:42:22 +00:00
Alexandre Oliva
7d6c757702
* ld-mips-elf/elf-rel-got-n32.d,
...
ld-mips-elf/elf-rel-got-n64.d, ld-mips-elf/elf-rel-xgot-n32.d,
ld-mips-elf/elf-rel-xgot-n64.d: New.
* ld-mips-elf/mips-elf.exp (hasn32): Define as condition for
new tests to run.
2003-04-11 01:56:51 +00:00
Nick Clifton
d4b6ee6788
Add initX, finiX, ctors, dtors sections to respect C++ constructor/destructor.
...
Add ctors/dtors start/stop definitions.
2003-04-09 11:07:51 +00:00
Nick Clifton
bb10df3605
Add notes about the target specific nature of i386 PE command line options.
2003-04-06 09:38:11 +00:00
Stephane Carrez
1f8bd31255
* ld-m68hc11/bug-1417.d: Update to take into account jsr->bsr relax.
2003-04-04 21:17:59 +00:00
Svein Seldal
9f8633693f
Fixed wrong entry in the ld/configure.tgt list
2003-04-04 14:13:16 +00:00
Svein Seldal
be33c5dd4d
Namespace cleanup for the tic4x target. Replace s/c4x/tic4x/ and s/c3x/tic3x/. 2003 copyright update
2003-04-04 08:15:15 +00:00
Nick Clifton
e8fd74766a
Mention support for Xtensa architecture
2003-04-03 07:37:41 +00:00
Bob Wilson
8fdeb6e3c5
* ld-xtensa/coalesce.exp: Skip if target is not xtensa-*-*.
...
* ld-xtensa/lcall.exp: Likewise.
2003-04-02 18:00:34 +00:00
Nick Clifton
2b817be136
pe-dll.c (pe_detail_list): arm-pe targets use underscores.
...
(process_def_file): Don't create an export section if there are no exports and
we're building an exe.
(pe_dll_build_sections): Ditto
(pe_dll_fill_sections): Conditionalize setting abfd->dll true on info->shared
emultempl/pe.em (gld_${EMULATION_NAME}_after_open): If i386pe or armpe, call
pe_dll_build_section() for both exe's and dll's, not just dll's. Don't call
pe_dll_build_section() if link_info.relocateable.
(gld_${EMULATION_NAME}_finish): For all targets except shpe and mipspe, call
pe_dll_fill_sections() for both exe's and dll's, not just dll's. Don't call
pe_dll_fill_sections() if link_info.relocateable.
2003-04-02 17:39:24 +00:00
Bob Wilson
f6c8b716bd
* emulparams/xtensa-config.sh: Remove comment indicating that this is
...
a generated file.
2003-04-02 16:56:56 +00:00
Nick Clifton
e0001a05d2
Add Xtensa port
2003-04-01 15:50:31 +00:00
Jakub Jelinek
276e509410
* configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
...
targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
if --enable-64-bit-bfd.
2003-04-01 14:08:00 +00:00
Nick Clifton
394ce546ee
fix spelling typo
2003-04-01 13:10:07 +00:00
Nick Clifton
5a6c681789
Fixes for iWMMXt contribution.
2003-04-01 13:08:06 +00:00
Alexandre Oliva
a6e028719a
* ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
...
--section-start.
2003-04-01 00:34:04 +00:00
Nick Clifton
5ed6aba41c
Fix memory leaks
2003-03-31 18:13:25 +00:00
Alexandre Oliva
05e6bb2fc9
* ld-mips-elf/mips-elf.exp: Added...
...
* ld-mips-elf/relax-jalr.s, ld-mips-elf/relax-jalr-n32.d,
ld-mips-elf/relax-jalr-n32-shared.d, ld-mips-elf/relax-jalr-n64.d,
ld-mips-elf/relax-jalr-n64-shared.d: New tests.
2003-03-26 01:05:44 +00:00
Nick Clifton
e16bb312f5
Add iWMMXt support
2003-03-25 20:56:01 +00:00
Nick Clifton
3fe38064ba
ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define. (main): Initialize them.
...
ldfile.c: Include pathnames.h. (is_sysrooted_pathname): New. (ldfile_add_library_path): Use it.
(ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH.
Don't search_dirs if given an absolute pathname.
(ldfile_open_file): Issue error message for sysrooted absolute pathnames.
2003-03-25 10:29:28 +00:00
Alexandre Oliva
fe6c07ac60
Replace oddly-encoded blank with regular blanks
2003-03-25 00:41:25 +00:00
Nick Clifton
9418ab9c20
Rename the all occurances of C54X to TIC54X.
2003-03-24 15:43:15 +00:00
Andreas Schwab
4f39e30283
* ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
...
eof.
2003-03-19 09:56:06 +00:00
Danny Smith
4064c85643
* defilep.y (opt_base): If no number given, set to default
...
(-1), not 0.
2003-03-18 21:33:43 +00:00
Danny Smith
053c44e1bf
* deffilep.y (def_import): Use default extension of "dll"
...
if no extension provided in parsed IMPORT definition.
* deffilep.y (def_lex): Revert 2003-03-12 change.
(dot_name): New id type and rule.
(expline): Use instead of ID.
(opt_equal_name): Likewise.
2003-03-13 09:39:09 +00:00
Danny Smith
9be2edc5c4
* deffilep.y (def_lex): Accept '.' as valid non-lead char.
2003-03-12 08:38:16 +00:00
Alexandre Oliva
48fe7bdacc
* ld-mips-elf/mips-elf.exp (linux_gnu): New variable. Add:
...
* ld-mips-elf/rel32-o32.d, ld-mips-elf/rel32-n32.d,
ld-mips-elf/rel64.d, ld-mips-elf/rel32.s, ld-mips-elf/rel64.s: New
tests.
2003-03-11 19:20:16 +00:00
Alan Modra
e515b05172
* elf32-ppc.c (ppc_elf_relocate_section): Subtract tls seg vma from
...
zero index dynamic tls relocs generated for the GOT. Tidy code.
Set "relocation" to 1 on DTPMOD32 relocs. Optimize HA adjustment.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* ld-powerpc/tlsso.r: Adjust for corrected zero symbol index relocs.
* ld-powerpc/tlsso32.r: Likewise.
2003-03-10 23:25:13 +00:00
Christopher Faylor
d55b850c07
* configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after apparent
...
accidental removal on 2003-01-06.
2003-03-08 03:35:48 +00:00
Nick Clifton
b4275f439a
Add new devices x1122 x1132 emulation.
2003-03-04 17:02:40 +00:00