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
Alexandre Oliva
4ca1b7908a
* ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
...
well.
2003-03-03 20:01:02 +00:00
Alexandre Oliva
e3f2db7fa6
* ldfile.h (struct search_dirs): Added sysrooted field.
...
* ldlang.h (struct lang_input_statement_struct): Likewise.
* ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
(ldfile_open_file_search): Look for sysrooted filename starting
with / in ld_sysroot instead of in the current directory. Clear
sysrooted flag if it's found in the current directory. Set it
from the search directory's sysrooted flag where it is found
otherwise.
* ldlang.c (ldlang_sysrooted_script): New static variable.
(new_afile): Mark search_file_enums as sysrooted if
ldlang_sysrooted_script.
(load_symbols): Set ldlang_sysrooted_script according to the
script's sysrooted field while processing it.
* ld.texinfo: Document INPUT behavior in sysroot.
2003-03-03 20:00:35 +00:00
Christopher Faylor
15c9f67344
* scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
2003-03-03 02:38:10 +00:00
Alan Modra
c279ca3ee9
* emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
...
(PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
PARSE_AND_LIST_EPILOGUE): Don't define.
* emultempl/alphaelf.em: New file.
2003-03-02 22:07:10 +00:00
Alan Modra
fcf6587111
* ldemul.c: Include getopt.h.
...
* emultempl/elf32.em: Include getopt.h earlier.
* emultempl/ticoff.em: Likewise.
2003-02-28 22:55:11 +00:00
Alan Modra
a060b769bb
* emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
...
support when scripts read from files.
2003-02-28 04:46:04 +00:00
Alan Modra
3aa97c5886
* ldemul.c (ldemul_parse_args): Return FALSE by default.
...
* ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
comment.
2003-02-28 02:10:06 +00:00
Alan Modra
3bcf55573d
* ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
...
(ldemul_parse_args): Return bfd_boolean. Formatting.
* ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
(ldemul_parse_args): Adjust.
(struct ld_emulation_xfer_struct): Add add_options and handle_option.
Return bfd_boolean from parse_args.
* lexsup.c (parse_args): Malloc shortopts, longopts and
really_longopts. Call ldemul_add_options and ldemul_handle_option.
* emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
gld${EMULATION_NAME}_parse_args.
(gld${EMULATION_NAME}_handle_option): Likewise.
(ld_${EMULATION_NAME}_emulation): Adjust initializer.
* emultempl/armcoff.em: As for aix.em, but remove parse_args.
* emultempl/beos.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/ticoff.em: Likewise.
* emultempl/elf32.em: Likewise. Don't duplicate long options either.
(gld${EMULATION_NAME}_add_sysroot): Prototype.
* emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
options.
* emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
* emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
* emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
* emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
initializer.
* emultempl/generic.em: Likewise.
* emultempl/gld960.em: Likewise.
* emultempl/gld960c.em: Likewise.
* emultempl/linux.em: Likewise.
* emultempl/lnk960.em: Likewise.
* emultempl/m68kcoff.em: Likewise.
* emultempl/mipsecoff.em: Likewise.
* emultempl/sunos.em: Likewise.
* emultempl/vanilla.em: Likewise.
* emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
2003-02-28 01:32:31 +00:00
Alexandre Oliva
42644a8920
* emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
...
memory allocation error.
2003-02-26 00:56:14 +00:00
Nick Clifton
0125cdf20c
(ld_sysroot): Try to set from TOOLBINDIR too.
2003-02-25 10:32:33 +00:00
Nick Clifton
cf888e70e2
Disable region size checking whilst relaxing sections.
2003-02-21 10:51:24 +00:00
Nick Clifton
36f63dca98
Apply Bob Wilson's linker documenation clean ups.
2003-02-21 10:27:06 +00:00
Alexandre Oliva
715d16565f
* configure.in (TARGET_SYSTEM_ROOT): Set default to
...
${exec_prefix}/${target_alias}/sys-root. Match explicit
'${exec_prefix}' (in addition to the expansion thereof) as
relocatable.
* configure: Rebuilt.
2003-02-20 23:38:58 +00:00
Alan Modra
8e23b15d1c
* ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
...
* ldgram.y (vers_defns): Allow optional trailing semicolon in
EXTERN NAME block;
2003-02-20 01:02:39 +00:00
Alan Modra
89b16ee576
* ld-powerpc/tlsexe.d: Update for changed handling of invalid LD
...
relocs.
* ld-powerpc/tlsexe.g: Likewise.
* ld-powerpc/tlsexe.r: Likewise.
* ld-powerpc/tlsexe.t: Likewise.
2003-02-18 12:54:56 +00:00
Alan Modra
2a050fb5ce
New tests.
2003-02-18 06:11:32 +00:00
Alan Modra
f9e6bfa8dc
* emultempl/ppc32elf.em: New file.
...
* emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
* Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
(eelf32lppcnto.c): Likewise.
(eelf32lppcsim.c): Likewise.
(eelf32ppcnto.c): Likewise.
(eelf32ppc.c): Likewise.
(eelf32ppc_fbsd.c): Likewise.
(eelf32ppcsim.c): Likewise.
(eelf32ppclinux.c): Likewise.
2003-02-18 06:05:07 +00:00
Alan Modra
9a6c7def26
* ld.texinfo: Remove spaces between @samp and opening brace.
2003-02-18 04:52:21 +00:00
Alan Modra
5502cb9fb4
* ld-powerpc/tlsexe.g: Update for 2003-02-14 elf64-ppc.c change.
2003-02-17 22:49:53 +00:00
Alan Modra
a015f5eccc
* emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
...
hash creator.
(ppc_before_allocation): Don't do optimizations if wrong hash table.
(gld${EMULATION_NAME}_finish): Ditto.
2003-02-17 22:49:24 +00:00
Nick Clifton
ae9a127f86
Fix the behaviour of --allow-shlib-undefined, so that it does what it claims
...
to do. Add an inverse switch. Update the documentation.
2003-02-17 18:24:40 +00:00
Jakub Jelinek
9147e853bf
bfd/
...
* elflink.h (elf_link_add_object_symbols): Handle .symver x, x@FOO.
ld/testsuite/
* ld-shared/shared.exp: Run on s390*-*-linux* and x86_64-*-linux* too.
xfail tests linking non-pic code into shared libs on x86_64-*-linux*.
* ld-elfvsb/elfvsb.exp: Likewise.
* ld-elfvers/vers.exp: Likewise. Add vers24a, vers24b and vers24c
tests.
* ld-elfvers/vers3.ver: Allow VERS_2.0 to come before GLIBC_*
version.
* ld-elfvers/vers19.ver: Likewise.
* ld-elfvers/vers24a.c: New test.
* ld-elfvers/vers24b.c: New test.
* ld-elfvers/vers24c.c: New test.
* ld-elfvers/vers24.map: New test.
* ld-elfvers/vers24.rd: New test.
* lib/ld-lib.exp (run_ld_link_tests): Add optional 7th argument
cflags. If source files have .c extension, compile them first.
2003-02-13 22:14:11 +00:00
Nick Clifton
7e4482c1bb
Fix spelling typo in previous delta
2003-02-11 18:03:44 +00:00
Nick Clifton
db6a591064
Add new data anchors defenitions.
2003-02-11 18:02:55 +00:00
Nick Clifton
42b5d0eaa9
Add support for configuring *-*-kaos targets.
2003-02-11 13:47:08 +00:00
Dave Anglin
cfbd8dfaa6
* hppaelf.em (group_size): Change default back to 1.
2003-02-11 02:20:30 +00:00
Kaz Kojima
0f85b45c31
* ld-sh/tlstpoff-1.d: New.
...
* ld-sh/tlstpoff-2.d: New.
* ld-sh/tlstpoff1.s: New.
* ld-sh/tlstpoff2.s: New.
2003-02-10 22:19:26 +00:00
Alan Modra
ac8b6cc0b0
* ld-powerpc/tlslib.s: Give .__tls_get_addr function type.
...
* ld-powerpc/tlsexe.d: Update for changed handling of (invalid) ld var
in dynamic lib.
* ld-powerpc/tlsexe.g: Likewise.
* ld-powerpc/tlsexe.r: Likewise.
* ld-powerpc/tlsexe.t: Likewise.
* ld-powerpc/tlsexetoc.d: Likewise.
* ld-powerpc/tlsexetoc.g: Likewise.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsexetoc.t: Likewise.
2003-02-09 04:37:04 +00:00
Alan Modra
e5096e3f2d
* emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
2003-02-09 04:36:44 +00:00
Dave Anglin
5e1e138d28
* hppaelf.em (group_size): Change default to -1.
2003-02-07 15:55:49 +00:00
Nick Clifton
ef5bdbd1fe
Add duplicate entry for no-pipeline-knowledge. This will prevent the getopt
...
package from thinking that there are any shorter abbreviations for
--no-pipeline-knowledge.
2003-02-07 15:32:22 +00:00
Jakub Jelinek
d460ab5823
* genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
...
which already have it. Avoid duplicates.
2003-02-07 14:21:03 +00:00
Jakub Jelinek
cad91d28c9
* emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
...
* emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
* emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
2003-02-06 14:45:04 +00:00
Alan Modra
266fb68310
new ppc64 tls tests
2003-02-04 14:52:11 +00:00
Alan Modra
e0468e59ad
* emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
...
call ppc64_elf_tls_optimize.
2003-02-04 14:51:35 +00:00
Daniel Jacobowitz
3dc16cab3d
* emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
...
outside of GNU/Linux conditional.
2003-02-03 17:47:23 +00:00
Nick Clifton
a35bc64f56
Add code to prevent importing a dll multiple times.
2003-01-28 11:39:43 +00:00
Alexandre Oliva
8914585cde
* ld-mips-elf/multi-got-1.d: New.
...
* ld-mips-elf/multi-got-1-1.s: New.
* ld-mips-elf/multi-got-1-2.s: New.
* ld-mips-elf/mips-elf.exp (elf): mips*-*-irix* is elf.
Run multi-got-1.
2003-01-28 00:01:53 +00:00
Jakub Jelinek
b9734f3572
bfd/
...
* elf32-sparc.c (_bfd_sparc_elf_howto_table): Add TLS relocs.
(elf32_sparc_rev32_howto): New variable.
(sparc_reloc_map): Add TLS relocs.
(elf32_sparc_reloc_type_lookup, elf32_sparc_info_to_howto):
Handle REV32.
(sparc_elf_hix22_reloc, sparc_elf_lox10_reloc, elf32_sparc_mkobject):
New functions.
(struct elf32_sparc_dyn_relocs, struct elf32_sparc_link_hash_entry,
struct elf32_sparc_link_hash_table):
New structures.
(elf32_sparc_tdata, elf32_sparc_local_got_tls_type,
elf32_sparc_hash_table): Define.
(link_hash_newfunc, elf32_sparc_link_hash_table_create,
create_got_section, elf32_sparc_create_dynamic_sections,
elf32_sparc_copy_indirect_symbol, elf32_sparc_tls_transition): New
functions.
(elf32_sparc_check_relocs): Handle TLS relocs. Add dynamic reloc
reference counting.
(elf32_sparc_gc_sweep_hook): Likewise.
(elf32_sparc_adjust_dynamic_symbol): Likewise.
(elf32_sparc_size_dynamic_sections): Likewise.
(elf32_sparc_relocate_section): Likewise.
(allocate_dynrelocs, readonly_dynrelocs, dtpoff_base, tpoff):
New functions.
(elf32_sparc_object_p): Allocate backend private object data.
(bfd_elf32_bfd_link_hash_table_create,
elf_backend_copy_indirect_symbol, bfd_elf32_mkobject,
elf_backend_can_refcount): Define.
(elf_backend_create_dynamic_sections): Define to
elf32_sparc_create_dynamic_sections.
* reloc.c: Add SPARC TLS relocs.
* bfd-in2.h, libbfd.h: Rebuilt.
* elf64-sparc.c (sparc64_elf_howto_table): Add TLS relocs.
(sparc_reloc_map): Likewise.
gas/
* config/tc-sparc.c (sparc_ip): Handle TLS % operators.
(tc_gen_reloc): Handle TLS relocs.
(sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
* config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
relocs.
* config/obj-elf.c (obj_elf_section_word): Handle tls.
(obj_elf_type): Handle tls_object.
include/
* elf/sparc.h: Add TLS relocs. Move R_SPARC_REV32 to 252.
ld/testsuite/
* ld-sparc/sparc.exp: New.
* ld-sparc/tlsg32.s: New test.
* ld-sparc/tlsg32.sd: Likewise.
* ld-sparc/tlsg64.s: Likewise.
* ld-sparc/tlsg64.sd: Likewise.
* ld-sparc/tlslib.s: Likewise.
* ld-sparc/tlsnopic.s: Likewise.
* ld-sparc/tlspic.s: Likewise.
* ld-sparc/tlssunbin32.dd: Likewise.
* ld-sparc/tlssunbin32.rd: Likewise.
* ld-sparc/tlssunbin32.s: Likewise.
* ld-sparc/tlssunbin32.sd: Likewise.
* ld-sparc/tlssunbin32.td: Likewise.
* ld-sparc/tlssunbin64.dd: Likewise.
* ld-sparc/tlssunbin64.rd: Likewise.
* ld-sparc/tlssunbin64.s: Likewise.
* ld-sparc/tlssunbin64.sd: Likewise.
* ld-sparc/tlssunbin64.td: Likewise.
* ld-sparc/tlssunbinpic32.s: Likewise.
* ld-sparc/tlssunbinpic64.s: Likewise.
* ld-sparc/tlssunnopic32.dd: Likewise.
* ld-sparc/tlssunnopic32.rd: Likewise.
* ld-sparc/tlssunnopic32.s: Likewise.
* ld-sparc/tlssunnopic32.sd: Likewise.
* ld-sparc/tlssunnopic64.dd: Likewise.
* ld-sparc/tlssunnopic64.rd: Likewise.
* ld-sparc/tlssunnopic64.s: Likewise.
* ld-sparc/tlssunnopic64.sd: Likewise.
* ld-sparc/tlssunpic32.dd: Likewise.
* ld-sparc/tlssunpic32.rd: Likewise.
* ld-sparc/tlssunpic32.s: Likewise.
* ld-sparc/tlssunpic32.sd: Likewise.
* ld-sparc/tlssunpic32.td: Likewise.
* ld-sparc/tlssunpic64.dd: Likewise.
* ld-sparc/tlssunpic64.rd: Likewise.
* ld-sparc/tlssunpic64.s: Likewise.
* ld-sparc/tlssunpic64.sd: Likewise.
* ld-sparc/tlssunpic64.td: Likewise.
2003-01-24 23:44:45 +00:00
Martin Schwidefsky
6c5977968d
* ld-s390/s390.exp: New file.
...
* ld-s390/tlsbin_64.dd: New file.
* ld-s390/tlsbin_64.rd: New file.
* ld-s390/tlsbin_64.s: New file.
* ld-s390/tlsbin_64.sd: New file.
* ld-s390/tlsbin_64.td: New file.
* ld-s390/tlsbin.dd: New file.
* ld-s390/tlsbinpic_64.s: New file.
* ld-s390/tlsbinpic.s: New file.
* ld-s390/tlsbin.rd: New file.
* ld-s390/tlsbin.s: New file.
* ld-s390/tlsbin.sd: New file.
* ld-s390/tlsbin.td: New file.
* ld-s390/tlslib_64.s: New file.
* ld-s390/tlslib.s: New file.
* ld-s390/tlspic1_64.s: New file.
* ld-s390/tlspic1.s: New file.
* ld-s390/tlspic2_64.s: New file.
* ld-s390/tlspic2.s: New file.
* ld-s390/tlspic_64.dd: New file.
* ld-s390/tlspic_64.rd: New file.
* ld-s390/tlspic_64.sd: New file.
* ld-s390/tlspic_64.td: New file.
* ld-s390/tlspic.dd: New file.
* ld-s390/tlspic.rd: New file.
* ld-s390/tlspic.sd: New file.
* ld-s390/tlspic.td: New file.
2003-01-24 17:20:25 +00:00
Alan Modra
0ef7d236e5
* ld-alpha/tlsbin.sd: Cope with truncated address in data dumps.
...
* ld-alpha/tlsbin.td: Likewise.
* ld-alpha/tlsbinr.sd: Likewise.
2003-01-23 22:37:21 +00:00
Alan Modra
f0abc2a11f
include/elf/ChangeLog
...
* sh.h: Split out various bits to bfd/elf32-sh64.h.
include/opcode/ChangeLog
* m68hc11.h (cpu6812s): Define.
bfd/ChangeLog
* elf-bfd.h (struct bfd_elf_section_data): Remove tdata. Change
dynindx to an int. Rearrange for better packing.
* elf.c (_bfd_elf_new_section_hook): Don't alloc if already done.
* elf32-mips.c (bfd_elf32_new_section_hook): Define.
* elf32-sh64.h: New. Split out from include/elf/sh.h.
(struct _sh64_elf_section_data): New struct.
(sh64_elf_section_data): Don't dereference sh64_info (was tdata).
* elf32-sh64-com.c: Include elf32-sh64.h.
* elf32-sh64.c: Likewise.
(sh64_elf_new_section_hook): New function.
(bfd_elf32_new_section_hook): Define.
(sh64_elf_fake_sections): Adjust for sh64_elf_section_data change.
(sh64_bfd_elf_copy_private_section_data): Likewise.
(sh64_elf_final_write_processing): Likewise.
* elf32-sparc.c (struct elf32_sparc_section_data): New.
(elf32_sparc_new_section_hook): New function.
(SET_SEC_DO_RELAX, SEC_DO_RELAX): Delete.
(sec_do_relax): Define.
(elf32_sparc_relax_section): Adjust to use sec_do_relax.
(elf32_sparc_relocate_section): Likewise.
* elf64-mips.c (bfd_elf64_new_section_hook): Define.
* elf64-mmix.c (struct _mmix_elf_section_data): New.
(mmix_elf_section_data): Define. Use throughout file.
(mmix_elf_new_section_hook): New function.
(bfd_elf64_new_section_hook): Define.
* elf64-ppc.c (struct _ppc64_elf_section_data): New.
(ppc64_elf_section_data): Define. Use throughout.
(ppc64_elf_new_section_hook): New function.
(bfd_elf64_new_section_hook): Define.
* elf64-sparc.c (struct sparc64_elf_section_data): New.
(sparc64_elf_new_section_hook): New function.
(SET_SEC_DO_RELAX, SEC_DO_RELAX): Delete.
(sec_do_relax): Define.
(sparc64_elf_relax_section): Adjust to use sec_do_relax.
(sparc64_elf_relocate_section): Likewise.
(bfd_elf64_new_section_hook): Define.
* elfn32-mips.c (bfd_elf32_new_section_hook): Define.
* elfxx-mips.c (struct _mips_elf_section_data): New.
(mips_elf_section_data): Define. Use throughout.
(_bfd_mips_elf_new_section_hook): New function.
(mips_elf_create_got_section): Don't alloc used_by_bfd.
* elfxx-mips.h (_bfd_mips_elf_new_section_hook): Declare.
* elfxx-target.h (bfd_elfNN_new_section_hook): Add #ifndef.
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
opcodes/ChangeLog
* sh64-dis.c: Include elf32-sh64.h.
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
gas/ChangeLog
* config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
sh64_elf_section_data.
* config/tc-sh64.h: Include elf32-sh64.h.
* config/tc-m68hc11.c: Don't include stdio.h.
(md_show_usage): Fix missing continuation.
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
ld/ChangeLog
* emultempl/sh64elf.em: Include elf32-sh64.h.
(sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
sh64_elf_section_data.
(sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
2003-01-23 11:51:35 +00:00
Nick Clifton
489d0400af
Remove an extra "i" in --dll-search-prefix.
...
Move a cross-80th-column-margin "an" to the next line.
2003-01-23 09:30:44 +00:00
Richard Henderson
8b0c8155b2
New TLS tests for Alpha.
2003-01-22 00:41:59 +00:00
Nick Clifton
dd1e43b69f
fix typo in previous entry
2003-01-21 17:11:56 +00:00
Nick Clifton
019ac0e357
Fix generation of tic3xcoff_onchip.c
2003-01-21 17:09:47 +00:00
Nick Clifton
da896d3fcc
Add support for i386-*-aros triple.
2003-01-21 16:08:31 +00:00
Svein Seldal
0da35f8be8
Updates for fixing tic4x arch tagging of its object files.
...
* bfd/coffcode.h (coff_set_flags): Added get/set arch hooks.
* include/coff/tic4x.h (TICOFF_TARGET_MACHINE_GET): Fixed define bug
* include/coff/ti.h (TICOFF_TARGET_MACHINE_GET): Added macros
* ld/Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
* ld/Makefile.in: Regenerate
* ld/configure.tgt: Added extra target emulations
* ld/emulparams/tic3xcoff.sh: Remove old settings
* ld/emulparams/tic4xcoff.sh: Ditto
* ld/emulparams/tic3xcoff-onchip.sh: Added new
* ld/scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
* ld/scripttempl/tic3xcoff.sc: Remove
2003-01-20 22:34:39 +00:00
Alan Modra
d2823f55fd
* ld-srec/srec.exp (run_srec_test): Pass --traditional-format to ld.
2003-01-20 12:57:59 +00:00
Jakub Jelinek
a823975ae0
* elfxx-ia64.c (elfNN_ia64_relocate_section): Handle
...
R_IA64_TPREL64[LM]SB against non-global symbol properly.
* ld-ia64/tlspic1.s: Add tests for IE in shared libraries.
* ld-ia64/tlspic.rd: Adjust.
* ld-ia64/tlspic.dd: Adjust.
* ld-ia64/tlspic.sd: Adjust.
2003-01-17 23:27:57 +00:00
Andreas Jaeger
ae42d3a94d
* emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
...
skip ':'.
2003-01-17 10:36:49 +00:00
Jakub Jelinek
b3dfd7fe24
* elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add
...
self_dtpmod_done and self_dtpmod_offset.
(allocate_global_data_got): Only use one got entry for all
dtpmod relocs against local symbols.
(allocate_dynrel_entries): Only need .rela.got entry for
dtpmod against global symbol.
(elfNN_ia64_size_dynamic_sections): Initialize self_dtpmod_offset.
Reserve space in .rela.got for the local dtpmod entry.
(set_got_entry): Initialize the common local dtpmod .got entry.
(elfNN_ia64_relocate_section): Handle R_IA_64_DTPREL64LSB
and R_IA_64_DTPREL64MSB.
* config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
* ld-ia64/ia64.exp: New.
* ld-ia64/tlsbin.dd: New test.
* ld-ia64/tlsbinpic.s: New test.
* ld-ia64/tlsbin.rd: New test.
* ld-ia64/tlsbin.s: New test.
* ld-ia64/tlsbin.sd: New test.
* ld-ia64/tlsbin.td: New test.
* ld-ia64/tlsg.s: New test.
* ld-ia64/tlsg.sd: New test.
* ld-ia64/tlslib.s: New test.
* ld-ia64/tlspic1.s: New test.
* ld-ia64/tlspic2.s: New test.
* ld-ia64/tlspic.dd: New test.
* ld-ia64/tlspic.rd: New test.
* ld-ia64/tlspic.sd: New test.
* ld-ia64/tlspic.td: New test.
2003-01-16 21:31:18 +00:00
Alan Modra
6f78fb71bb
* Makefile.in: Regenerate.
2003-01-16 04:11:53 +00:00
Nick Clifton
0a5d968ed1
(node WIN32): Some clarifications and formatting fixups.
2003-01-14 11:25:58 +00:00
Chris Demetriou
6f33421c47
2003-01-09 Chris Demetriou <cgd@broadcom.com>
...
* ldmain.c (get_emulation): Sort -mipsNN checks in the usual
order, and handle (ignore) -mips32r2.
2003-01-09 21:26:53 +00:00
Daniel Jacobowitz
a65fb6096a
* ldmain.c (main): Make sure ld_sysroot is initialized.
2003-01-09 16:40:14 +00:00
Daniel Jacobowitz
9c8ebd6a51
* Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
...
* Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
(GENSCRIPTS): Add @use_sysroot@.
* Makefile.in: Regenerated.
* configure.host: Move setting of NATIVE_LIB_DIRS to...
* configure.tgt: ... here. Use ${target} instead of ${host}
for NATIVE_LIB_DIRS.
* configure.in: Add --with-sysroot.
* configure: Regenerated.
* genscripts.sh: Accept use_sysroot option. Set new variables
NATIVE and USE_LIBPATH. Prepend "=" to directory names if
$use_sysroot. Don't search $tool_lib if $use_sysroot.
* ldfile.c (ldfile_add_library_path): Handle leading '='.
* ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
(ld_sysroot): New variable.
(main): Initialize ld_sysroot.
* ldmain.h (ld_sysroot): New extern.
* emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
searching $EMULATION_LIBPATH.
(gld${EMULATION_NAME}_add_sysroot): New function.
(gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
(gld${EMULATION_NAME}_after_open): Likewise. Only search
environment variables if $NATIVE.
* ld.texinfo (Options): Mention "=" prefix in the description of -L.
* NEWS: Mention --with-sysroot.
* emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
instead of setting LIB_PATH.
* emulparams/elf32ppc.sh: Likewise.
* emulparams/elf64_s390.sh: Likewise.
* emulparams/elf64_sparc.sh: Likewise.
* emulparams/elf64ppc.sh: Likewise.
* emulparams/elf_x86_64.sh: Likewise.
* emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
* emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
2003-01-06 16:14:01 +00:00
Christopher Faylor
54d4efe3df
* ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
2003-01-05 03:04:10 +00:00
Daniel Jacobowitz
cdc0d45e15
* Makefile.am (ldmain.o): Pass BINDIR.
...
* Makefile.in: Regenerated.
* ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
search path.
2003-01-04 20:40:28 +00:00
Stan Cox
e09a710638
* Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
...
(eelf32iq2000.c): New target.
* Makefile.in: Regenerate.
* configure.tgt: Handle iq2000-*-elf.
* emulparams/elf32iq10.sh: New file.
* emulparams/elf32iq2000.sh: New file.
* scripttempl/iq2000.sc: New file.
2003-01-04 02:04:44 +00:00
Richard Sandiford
1efcd1fdb6
* ld-mips-elf/mips-elf-flags.exp: Add -mips4 to a -mgp64 test.
2003-01-03 11:04:26 +00:00
Richard Sandiford
64543e1acf
bfd/
...
* elfxx-mips.c: Include libiberty.h.
(elf_mips_isa, _bfd_mips_elf_mach_extends_p): Remove.
(mips_set_isa_flags): New function, split out from...
(_bfd_mips_elf_final_write_processing): ...here. Only call
mips_set_isa_flags if the EF_MIPS_MACH bits are clear.
(mips_mach_extensions): New array.
(mips_32bit_flags_p): New function.
(_bfd_mips_elf_merge_private_bfd_data): Rework architecture checks.
Use mips_32bit_flags_p to check if one binary is 32-bit and the
other is 64-bit. When adopting IBFD's architecture, adopt the
bfd_mach as well as the flags.
ld/testsuite/
* ld-mips-elf/jr.s: New file.
* ld-mips-elf/mips-elf-flags.exp: New test.
2003-01-02 21:31:32 +00:00
Nick Clifton
1c43e6e58a
Add do_pseudo_reloc and _pei386_runtime_relocator to the exclude list.
2003-01-02 10:26:41 +00:00
Kazu Hirata
396a246719
* ldfile.c: Fix comment typos.
...
* ldlang.c: Likewise.
* mri.c: Likewise.
* pe-dll.c: Likewise.
2003-01-02 03:53:53 +00:00
Daniel Jacobowitz
980c112ced
Suggested by Manfred Hollstein <manfred.h@gmx.net>:
...
* Makefile.am (ld.1): Depend on configdoc.texi
and ldver.texi.
* Makefile.in: Regenerated.
2003-01-02 00:47:44 +00:00
Nick Clifton
2469cfa284
Add support for msp430.
2002-12-30 19:25:13 +00:00
Nick Clifton
3f8173588e
(HAVE_REALPATH): New entry.
...
(HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
2002-12-30 12:37:58 +00:00
Nick Clifton
dc8465bf50
New win32 topics: 'symbol aliasing' and 'export dll symbols'.
2002-12-30 11:44:51 +00:00
Alan Modra
d5cd393307
* ldmain.c (main): Init "strip_discarded".
...
* lexsup.c (OPTION_STRIP_DISCARDED): Define.
(OPTION_NO_STRIP_DISCARDED): Define.
(ld_options): Add "strip-discarded" and "no-strip-discarded".
(parse_args): Handle them.
2002-12-23 12:05:38 +00:00
Nick Clifton
312b768e2f
Change linker's default behaviour - it will now reject binary files whoes
...
architecture it does not recognise, unless it has explicitly told to accept
them.
2002-12-23 10:45:03 +00:00
Alan Modra
b506760271
* ldmain.c (main): Re-order link_info initialization. Init all
...
fields.
2002-12-19 23:11:19 +00:00
Nick Clifton
69da35b57a
Clarify and extend the documentation in the Machine Dependent, WIN32 section.
2002-12-19 17:25:02 +00:00
Nick Clifton
0bc4911d08
Add win32 library search path.
2002-12-18 16:56:19 +00:00
Nick Clifton
2ca22b0314
Add win32 machine depending section.
2002-12-18 16:25:02 +00:00
Nick Clifton
6bdf432d03
Test the auto importing direct from a dll functionality.
2002-12-18 16:05:10 +00:00
Nick Clifton
4cd898632a
Don't search for data import when auto-import is disabled.
2002-12-17 12:16:38 +00:00
Nick Clifton
2a8ac465c4
Use LD_PATHMAX+1 to account for trailing '\0'.
2002-12-17 11:01:25 +00:00
Nick Clifton
a08a0d635b
Duplicate entry for --compact-implib so that it is not confused with -c.
2002-12-17 10:03:52 +00:00
Nick Clifton
939ba9d0fc
Add support to skip import libraries for performance reasons and instead
...
use the direct auto-import of dll's
2002-12-16 18:02:16 +00:00
Alexandre Oliva
c9c1e416d7
* ld-mips-elf/mips-elf.exp: Remove branch-misc-2 test.
...
* ld-mips-elf/branch-misc-2.d: Removed.
2002-12-12 04:39:44 +00:00
Jason Thorpe
e06d9b4589
* lib/ld-lib.exp (is_elf_format): Match NetBSD ELF targets.
2002-12-10 15:54:23 +00:00
Alan Modra
1e5e54006d
* emultempl/elf32.em (struct orphan_save): Add os_tail field.
...
(gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
list too.
2002-12-10 03:34:43 +00:00
Alan Modra
f53154de5a
* ldlang.h: Formatting.
2002-12-08 03:56:04 +00:00
Alan Modra
18794b0c44
* ldlang.c (init_os): Ensure sections mentioned in load_base
...
are initialized.
2002-12-06 22:33:18 +00:00
Alan Modra
36478e9d6f
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
...
load_base for orphans that follow a section with load_base set.
2002-12-04 23:56:14 +00:00
Nick Clifton
e1a9cb8e15
Fix the merging of .PPC.EMB.apuinfo sections. Add a test to make sure that
...
the fix continues to work.
2002-12-03 18:24:33 +00:00
H.J. Lu
a981ed6f5c
2002-12-01 H.J. Lu <hjl@gnu.org>
...
* ld.texinfo: Remove the extra `;' in sample version script.
2002-12-02 00:40:28 +00:00
Stephane Carrez
a4ff0c7986
Fix PR savannah/1417:
...
* ld-m68hc11/bug-1417.s: New test.
* ld-m68hc11/bug-1417.d: Likewise.
2002-12-01 13:25:05 +00:00
Alan Modra
08a1b063ad
* configure.host: Correct dynamic-linker for powerpc64 hosts.
2002-11-30 09:00:36 +00:00
Alan Modra
4a1359d7a7
* Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
...
* Makefile.in: Regenerate.
2002-11-30 08:56:22 +00:00
Alan Modra
b34976b65a
s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. Simplify
...
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
2002-11-30 08:39:46 +00:00
Jakub Jelinek
00f7efb6cc
* symbols.c (S_SET_THREAD_LOCAL): New function.
...
* symbols.h (S_SET_THREAD_LOCAL): New prototype.
* config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
for TLS relocations.
* config/tc-ia64.c (md_apply_fix3): Likewise.
* config/tc-alpha.c (md_apply_fix3): Likewise.
* ld-i386/tlsnopic.rd: Change NOTYPE to TLS for UND sg* symbols.
2002-11-28 14:15:55 +00:00
Kaz Kojima
1448fa3227
* elf32-sh.c (sh_elf_relocate_section): Don't complain about
...
unresolved debugging relocs in dynamic applications.
* elf64-sh64.c (sh_elf64_relocate_section): Likewise.
* ld-sh/refdbg-0-dso.d: New test.
* ld-sh/refdbg-1.d: Likewise.
* ld-sh/refdbg.s: Likewise.
* ld-sh/refdbglib.s: Likewise.
2002-11-28 08:37:15 +00:00
David O'Brien
3b70b24ee4
2002-11-27 David O'Brien <obrien@FreeBSD.org>
...
* configure.host: Fix generic FreeBSD configuration entry.
2002-11-28 02:10:38 +00:00
H.J. Lu
7c9c73bedd
2002-11-27 H.J. Lu <hjl@gnu.org>
...
* ld.texinfo: Add the missing `;' to sample version scripts.
2002-11-27 19:42:10 +00:00
Alan Modra
0e4065952f
* ld-elf/elf.exp: Remove sec64k test.
...
* ld-elf/sec64k.exp: Reinstate.
2002-11-21 21:37:06 +00:00
Alan Modra
782c0ebfc9
* ld-elf/elf.exp: Renamed from sec64k.exp. Add test_list loop.
...
* ld-elf/merge.s: New file.
* ld-elf/merge.d: New file.
* ld-elf/merge.ld: New file.
2002-11-21 13:30:31 +00:00
Alan Modra
1a3fdaa703
* emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
...
Also move some changelog entries to where they belong.
2002-11-20 01:02:44 +00:00
Svein Seldal
48c5eb8a70
TIC4X testcase commit
...
* binutils/testsuite/binutils-all/objcopy.exp: Disable tic4x
from test
* binutils/testsuite/binutils-all/objdump.exp: Setup proper
values for tic4x testcase
* gas/testsuite/gas/all/gas.exp: Setup for tic4x testcase
* gas/testsuite/gas/macros/macros.exp: Ditto
* gas/testsuite/gas/all/gas.exp: Setup for tic4x testcase
* gas/testsuite/gas/macros/macros.exp: Ditto
* gas/testsuite/gas/tic4x: New tic4x gas testsuite directory
* ld/testsuite/ld-scripts/script.exp: Setup for tic4x testcase
2002-11-18 08:28:44 +00:00
Nick Clifton
e514ac71cb
Fix h8300 relaxation.
2002-11-15 11:18:49 +00:00
Nick Clifton
2fa9fc65a5
Add --enable-auto-import extension.
2002-11-14 18:03:17 +00:00
Alan Modra
c4c4121963
* ldlang.c (lang_add_section): Discard debugging sections that have
...
been marked SEC_EXCLUDE.
2002-11-12 11:31:43 +00:00
Nick Clifton
cd24c22246
Add new/updated Danish translations
2002-11-12 10:08:25 +00:00
Alan Modra
836c6af1fd
* emultempl/ppc64elf.em (ppc_before_allocation): New function.
...
(LDEMUL_BEFORE_ALLOCATION): Define.
(gld${EMULATION_NAME}_finish): Run discard_info for relocatable
linking.
* emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
2002-11-12 07:56:38 +00:00
Christopher Faylor
f8b0dbb817
* configure.tgt (LIB_PATH): Default to searching w32api directory under cygwin.
2002-11-12 03:48:43 +00:00
Christopher Faylor
9e8d33e774
* pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list of
...
restricted auto-export libs.
2002-11-11 21:16:28 +00:00
Christopher Faylor
75c2ea5b08
* pe-dll.c (autofilter_liblist): Generalize library names to catch more
...
creative library naming instances like, e.g., libstdc++-2.a.
2002-11-11 17:42:36 +00:00
Hans-Peter Nilsson
b7b0b72964
* ld-elf/sec64k.exp: New test.
...
* lib/ld-lib.exp (run_dump_test): Don't prepend "$srcdir/$subdir/"
to a source file starting with "/".
2002-11-11 10:16:57 +00:00
Hans-Peter Nilsson
646a0a402c
* ld-mmix/local1.d, ld-mmix/local3.d, ld-mmix/local5.d,
...
ld-mmix/local7.d: Tweak for change in readelf output.
2002-11-10 09:29:07 +00:00
Alan Modra
f72dfb13ce
* ld-elfvsb/define.s: Avoid use of @ in .type directive.
2002-11-09 12:27:50 +00:00
Hans-Peter Nilsson
415fe8c69b
Fix attribution last entry
2002-11-07 13:28:48 +00:00
Hans-Peter Nilsson
1790e8ab27
* ld-cris/expdyn6.d, ld-cris/weakref2.d, ld-cris/expdyn7.d,
...
ld-cris/nodyn5.d, ld-cris/expdyn5.d: New tests.
2002-11-07 13:25:48 +00:00
Nick Clifton
3d198be3d5
Only run tests for PE type x86 targets.
2002-11-07 08:36:04 +00:00
Alexandre Oliva
426af4fec2
* emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
...
* emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
2002-11-07 00:46:59 +00:00
Kaz Kojima
5e622545fe
* ld-sh/rd-sh.exp: Set asflags_save always.
2002-11-06 23:37:23 +00:00
Nick Clifton
c9e3887989
Adds support for fastcall symbols as used on Microsoft Windows platforms
...
(i386)
2002-11-06 19:36:20 +00:00
Kaz Kojima
935cac6e77
* ld-sh/rd-sh.exp: Add -isa=SHcompact to ASFLAGS for SH-5.
...
* ld-sh/tlsbin-1.d: Handle GOT_BIAS appropriately for SH-5.
* ld-sh/tlspic-1.d: Likewise.
* ld-sh/tlspic-2.d: Likewise.
* ld-sh/tlsbin-2.d: Likewise. Make it robust for the symbols
defined by the linker scripts.
2002-11-04 01:18:13 +00:00
Daniel Jacobowitz
df2a731323
* emultempl/aix.em: Use include <> for generated headers.
...
* emultempl/beos.em: Likewise.
* emultempl/elf32.em: Likewise.
* emultempl/pe.em: Likewise.
* ldctor.c: Likewise.
* ldexp.c: Likewise.
* ldfile.c: Likewise.
* ldlang.c: Likewise.
* ldlex.c: Likewise.
* ldlex.l: Likewise.
* ldmain.c: Likewise.
* ldmisc.c: Likewise.
* ldwrite.c: Likewise.
* lexsup.c: Likewise.
* mri.c: Likewise.
* pe-dll.c: Likewise.
2002-10-30 03:57:39 +00:00
Jakub Jelinek
a8927cfd1a
* emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
...
sections into .rel{,a}.dyn.
2002-10-23 20:13:01 +00:00
Nick Clifton
63fd3b826b
Add new command line option "--no-omagic" which undoes the effects of -N.
2002-10-23 13:24:10 +00:00
Nick Clifton
3637916721
(__RUNTIME_PSEUDO_RELOC_LIST__, __RUNTIME_PSEUDO_RELOC_LIST_END__): Add
...
only when relocating.
2002-10-23 11:21:27 +00:00
Alexandre Oliva
3ffe58d945
* emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
...
emulation name. Set LIB_PATH only for native tools, and
search the ABI-specific versions of NATIVE_LIB_DIRS before the
.../lib variants, not instead of them. Mostly copied from...
* emulparams/elf32ppc.sh: ... here. Fixed typo.
* emulparams/elf64bmip-defs.sh: Backed out.
* emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
* emulparams/elf64btsmip.sh: Likewise.
(DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
TEXT_DYNAMIC): Removed.
2002-10-22 22:13:26 +00:00
Alexandre Oliva
e316b3a0ed
* emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
...
(GENERATE_SHLIB_SCRIPT): Set to yes.
(EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
* emulparams/elf32bmipn32.sh: here.
(GENERATE_SHLIB_SCRIPT): Deleted as redundant.
* emulparams/elf32btsmipn32.sh: Delete redundant unsets.
* emulparams/elf64bmip-defs.sh: New file. Extend
elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
* emulparams/elf64bmip.sh: Bring in definitions from
elf64bmip-defs.sh.
(ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
settings.
(WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
* emulparams/elf64btsmip.sh: Bring in definitions from
elf64bmip-defs.sh.
(ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
(EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
2002-10-17 21:54:44 +00:00
Jakub Jelinek
f52d1d6405
* config.bfd (s390-*-linux*): Add targ64_selvecs.
...
(s390x-*-linux*): Add targ_selvecs.
* config.table: Use mh-s390pic for s390x too.
* configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
(s390-*-linux*): Add elf64_s390 emulation if want64.
* emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
genscript.sh changes.
* emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
* emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
2002-10-16 19:54:54 +00:00
Alan Modra
03bdc40405
* ldlang.c (load_symbols): Revert last change.
2002-10-15 00:09:02 +00:00
Stephane Carrez
19dd1b4833
* ld-m68hc11/m68hc11.exp: Specific tests for 68HC11/68HC12.
...
* ld-m68hc11/adj-jump.d: New test for linker relaxation.
* ld-m68hc11/adj-jump.s: Likewise.
* ld-m68hc11/adj-brset.s: Likewise.
* ld-m68hc11/adj-brset.d: Likewise.
* ld-m68hc11/relax-direct.s: Likewise.
* ld-m68hc11/relax-direct.d: Likewise.
* ld-m68hc11/relax-group.s: Likewise.
* ld-m68hc11/relax-group.d: Likewise.
* ld-m68hc11/bug-1403.d: Likewise.
* ld-m68hc11/bug-1403.s: Likewise.
2002-10-14 21:20:16 +00:00
Stephen Clarke
24d1feef42
ld-sh/ld-r-1.d: Disable for sh64*-*-linux*.
...
* ld-sh/sh64/sh64.exp: Likewise.
* ld-sh/sh.exp: Disable relaxing tests for sh64*-*-linux*.
* ld-sh/sh64/abi32.sd: Adjust expected output to include
sh64*-*-linux* formats too.
* ld-sh/sh64/relax.exp: Add emul32 variable to hold target
emulation, and set it appropriately for sh*-*-linux*.
* ld-sh/sh64/relfail.exp: Add variables to hold target
emulation, output format, start symbol, and whether target
supports 64-bit ABI. Set appropriately for sh*-*-linux*.
2002-10-14 18:45:03 +00:00
Alan Modra
7c519c12a3
* ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
...
just_syms_flag.
(lang_reasonable_defaults): Don't compare against false.
(size_input_section): Likewise.
(lang_size_sections_1): Likewise.
(lang_do_assignments): Likewise.
(lang_add_output): Likewise.
2002-10-14 13:08:19 +00:00
Alan Modra
c6db2f0545
* Makefile.am: Run "make dep-am".
...
* Makefile.in: Regenerate.
* ldver.c: #include "bfdver.h".
2002-10-14 12:09:18 +00:00
Stephane Carrez
e1026ffb69
* scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
...
.finiN section.
* scripttempl/elfm68hc12.sc: Likewise.
2002-10-13 09:29:35 +00:00
H.J. Lu
f9a3a01aef
2002-10-12 H.J. Lu (hjl@gnu.org)
...
* ld-discard/extern.d: Remove $srcdir/$subdir/.
* ld-discard/start.d: Likewise.
* ld-discard/static.d: Likewise.
* ld-linkonce/zeroehl32.d: Likewise.
* ld-selective/keepdot.d: Likewise.
* ld-selective/keepdot0.d: Likewise.
2002-10-12 15:40:13 +00:00
Kaz Kojima
6c381eeb71
* ld-sh/rd-sh.exp: If the test matches *-dso.d, copy the output
...
of linker to the file tmpdir/*-dso.so.
* ld-sh/tlsbin.s, ld-sh/tlsbinpic.s, ld-sh/tlslib.s: New.
* ld-sh/tlsbin-0-dso.d: New.
* ld-sh/tlsbin-1.d: New.
* ld-sh/tlsbin-2.d: New.
* ld-sh/tlsbin-3.d: New.
* ld-sh/tlsbin-4.d: New.
* ld-sh/tlspic1.s, ld-sh/tlspic2.s: New.
* ld-sh/tlspic-1.d: New.
* ld-sh/tlspic-2.d: New.
* ld-sh/tlspic-3.d: New.
* ld-sh/tlspic-4.d: New.
2002-10-11 14:44:55 +00:00
Alan Modra
fe213ce218
* pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
2002-10-11 08:59:24 +00:00
Alan Modra
2d801b0fa0
* ldgram.y (memory_spec): Provide empty action.
...
(section <NAME>): Likewise.
2002-10-11 07:39:07 +00:00
Jakub Jelinek
599917b82b
* ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
...
they have OUTPUT_FORMAT not matching actual output format.
* ldlang.c (lang_get_output_target): New function.
(open_output): Use it.
* ldlang.h (lang_get_output_target): New prototype.
2002-10-10 15:59:10 +00:00
Jakub Jelinek
2030e6d786
* ld-i386/combreloc.s: New test.
...
* ld-i386/combreloc.d: New test.
* ld-i386/i386.exp (i386tests): Add it.
2002-10-10 07:49:11 +00:00
Alan Modra
4565652e33
* ld-i386/i386.exp (reloc): Turn off combreloc.
...
* ld-i386/reloc.d: Likewise.
* ld-powerpc/powerpc.exp: Likewise.
* ld-powerpc/reloc.d: Likewise.
2002-10-10 02:53:17 +00:00
Alan Modra
24cdb50ae8
* emultempl/elf32.em (output_rel_find): Prefer .rel script sections
...
when orphan is .rel, .rela when orphan is .rela.
(gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
first. Remove outsecname var.
2002-10-10 02:52:27 +00:00
Stephen Clarke
a2b3c63041
* Makefile.am: Add eshelf32_linux.o and
...
eshlelf32_linux.o, new emulations for sh64 Linux.
* Makefile.in: Regenerate.
* configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
* emulparams/shelf32_linux.sh: New file.
* emulparams/shlelf32_linux.sh: New file.
2002-10-09 19:09:59 +00:00
H.J. Lu
c04c958616
2002-10-08 H.J. Lu <hjl@gnu.org>
...
* ldlang.c (lang_file_exist): Removed.
(new_afile): Revert the last change.
* ldlang.h (lang_file_exist): Removed.
* lexsup.c (parse_args): Revert the last change.
2002-10-08 20:12:45 +00:00
Nick Clifton
39cebe23da
Don't re-export auto-import symbols.
2002-10-07 16:36:11 +00:00
Nick Clifton
53b2a62f07
Abort if the filename to be added matches the linker output filename.
2002-10-07 16:08:21 +00:00
H.J. Lu
8b0eebb0b0
2002-10-03 H.J. Lu <hjl@gnu.org>
...
* ld-elfvers/vers21.c (_old_foobar): Initialized to -1 for gcc
3.x.
2002-10-04 07:40:42 +00:00
Chris Demetriou
30a2f863bc
2002-10-03 Chris Demetriou <cgd@broadcom.com>
...
* ld-mips-elf/branch-misc-1.d: Link at 0x500000 and use -N, to be
more compatible with non-embedded targets.
* ld-mips-elf/branch-misc-2.d: Likewise.
* ld-mips-elf/mips-elf.exp: Clean up some comments about embedded
PIC tests.
(elf): New variable, to control whether generic ELF tests are run.
(embedded_elf): New variable, to control whether ELF tests
requiring embedded PIC or embedded relocs are run.
2002-10-03 23:56:24 +00:00
Stephen Clarke
ad050da3e6
* ld-sh/sh64/gotplt.d, ld-sh/sh64/gotplt.map,
...
ld-sh/sh64/gotplt.s: New test.
2002-10-02 21:56:50 +00:00
Stephen Clarke
8033ae3b15
* ld-sh/sh64/cmpct1.sd : Fix linked file name.
...
* ld-sh/sh64/crange3.dd: Likewise.
2002-10-02 21:19:59 +00:00
Alan Modra
a86a09cc1b
* emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
2002-10-02 02:21:52 +00:00
Jakub Jelinek
7c445aa3c8
bfd/
...
* elf32-i386.c (elf_i386_relocate_section): Fix
movl foo@indntpoff, %eax IE->LE transition.
ld/testsuite/
* ld-i386/i386.exp: Add tlsindntpoff test.
* ld-i386/tlsindntpoff.s: New test.
* ld-i386/tlsindntpoff.dd: New test.
2002-10-01 10:43:37 +00:00
Jakub Jelinek
abcf1d5247
bfd/
...
* elf64-x86-64.c (elf64_x86_64_relocate_section): Change TLSGD
sequence and its transitions.
ld/testsuite/
* ld-x86-64/tlspic1.s: Change TLSGD sequences.
* ld-x86-64/tlsbinpic.s: Likewise.
* ld-x86-64/tlspic.dd: Adjust.
2002-10-01 09:15:34 +00:00
Jakub Jelinek
a45bb67df2
bfd/
...
* elf32-i386.c (elf_i386_relocate_section): Resolve R_386_TLS_LDO_32
to st_value + addend in non-code sections.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Resolve
R_X86_64_DTPOFF32 to st_value + addend in non-code sections.
ld/testsuite/
* ld-i386/i386.exp: Add tlsg test.
* ld-i386/tlsg.s: New test.
* ld-i386/tlsg.sd: New test.
* ld-i386/tlsbin.dd: Change LD into LD -> LE in comments.
* ld-i386/tlsbinpic.s: Likewise.
* ld-x86-64/x86-64.exp: Add tlsg test.
* ld-x86-64/tlsg.s: New test.
* ld-x86-64/tlsg.sd: New test.
* ld-x86-64/tlsbin.dd: Change LD into LD -> LE in comments.
* ld-x86-64/tlsbinpic.s: Likewise.
2002-10-01 09:10:46 +00:00
Alan Modra
1bf0a4d93e
* scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
...
* scripttempl/elfm68hc11.sc: Likewise.
* scripttempl/elfm68hc12.sc: Likewise.
2002-09-30 09:31:31 +00:00
Alan Modra
b1e61c4bf3
* ld-powerpc/powerpc.exp: Restrict to 32 bit ELF.
2002-09-30 05:54:51 +00:00
Alan Modra
17c2bdeefe
* ld-powerpc/reloc.s, ld-powerpc/reloc.d: New.
...
* ld-powerpc/powerpc.exp: New.
2002-09-30 05:25:20 +00:00
H.J. Lu
42f986191b
No need to set OTHER_GOT_RELOC_SECTIONS in emulparams/elf32ppclinux.sh.
2002-09-30 04:23:40 +00:00
Alan Modra
302cbfc210
* ld-i386/reloc.s, ld-i386/reloc.d: New.
...
* ld-i386/i386.exp: Run new test.
2002-09-30 03:35:18 +00:00
Alan Modra
ba49312244
* emultempl/elf32.em (output_rel_find): Always place orphan loadable
...
reloc sections just before .rel.plt/.rela.plt.
(gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
Only put loadable reloc sections in hold_rel.
2002-09-30 03:34:46 +00:00
H.J. Lu
fdb9132d5f
2002-09-29 H.J. Lu <hjl@gnu.org>
...
* ld/emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
* ld/emulparams/elf32ppclinux.sh (OTHER_GOT_RELOC_SECTIONS): New.
2002-09-29 23:59:49 +00:00
Jakub Jelinek
bffbf9406f
bfd/
...
* reloc.c: Add x86-64 TLS relocs.
* bfd-in2.h, libbfd.h: Rebuilt.
* elf64-x86-64.c (x86_64_elf_howto): Fix size fields for 32-bit
relocs. Add TLS relocs.
(x86_64_reloc_map): Add TLS relocs.
(elf64_x86_64_info_to_howto): Adjust for added TLS relocs.
(struct elf64_x86_64_link_hash_entry): Add tls_type field.
(GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE): Define.
(elf64_x86_64_hash_entry): Define.
(struct elf64_x86_64_obj_tdata): New.
(elf64_x86_64_tdata, elf64_x86_64_local_got_tls_type): Define.
(struct elf64_x86_64_link_hash_table): Add tls_ld_got.
(link_hash_newfunc): Initialize tls_type.
(elf64_x86_64_link_hash_table_create): Initialize tls_ld_got.
(elf64_x86_64_copy_indirect_symbol): Swap tls_type if necessary.
(elf64_x86_64_mkobject): New.
(elf64_x86_64_elf_object_p): Allocate struct elf64_x86_64_obj_tdata.
(elf64_x86_64_tls_transition): New.
(elf64_x86_64_check_relocs): Add r_type variable and use it.
Handle TLS relocs.
(elf64_x86_64_gc_sweep_hook): Handle TLS relocs.
(allocate_dynrelocs): Allocate GOT space for TLS relocs.
(elf64_x86_64_size_dynamic_sections): Likewise.
(dtpoff_base, tpoff): New.
(elf64_x86_64_relocate_section): Handle TLS relocs.
(elf64_x86_64_finish_dynamic_symbol): Only handle non-TLS GOT
entries.
(bfd_elf64_mkobject): Define.
* elf32-i386.c (elf_i386_check_relocs) [R_386_TLS_LE]: Set
DF_STATIC_TLS if shared.
gas/
* config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
Define them if not BFD_ASSEMBLER.
(lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
@tlsld.
(md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
(tc_gen_reloc): Handle x86-64 TLS relocs.
include/
* elf/x86-64.h: Add TLS relocs.
ld/testsuite/
* lib/ld-lib.exp (run_ld_link_tests): Add.
* ld-sh/sh64/sh64.exp (run_ld_link_tests, regexp_diff,
file_contents): Remove.
(sh64tests): Add 6th field to the tests array.
* ld-i386/i386.exp (run_ld_link_tests): Remove.
* ld-x86-64/x86-64.exp: New.
* ld-x86-64/tlsbin.dd: New test.
* ld-x86-64/tlsbinpic.s: New test.
* ld-x86-64/tlsbin.rd: New test.
* ld-x86-64/tlsbin.s: New test.
* ld-x86-64/tlsbin.sd: New test.
* ld-x86-64/tlsbin.td: New test.
* ld-x86-64/tlslib.s: New test.
* ld-x86-64/tlspic1.s: New test.
* ld-x86-64/tlspic2.s: New test.
* ld-x86-64/tlspic.dd: New test.
* ld-x86-64/tlspic.rd: New test.
* ld-x86-64/tlspic.sd: New test.
* ld-x86-64/tlspic.td: New test.
2002-09-27 19:29:18 +00:00
Daniel Jacobowitz
ff3268267c
From "Anita Kulkarni" <AnitaK@kpit.com>
...
* scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
sections.
2002-09-25 17:06:09 +00:00
Alan Modra
1ddd7b13ed
* genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
...
TARGET_PAGE_SIZE.
* scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
SEGMENT_SIZE alignment.
* emulparams/elf64ppc.sh (DATA_ADDR): Delete.
(SEGMENT_SIZE): Define.
2002-09-25 07:21:08 +00:00
Alan Modra
0ae1cf52b2
* ldexp.c (fold_unary): New. Split out from exp_fold_tree.
...
(fold_binary): Correct abs - non-abs case.
(fold_trinary): New. Split out from exp_fold_tree.
2002-09-25 02:42:13 +00:00
Alan Modra
06143382c6
* emulparams/elf64ppc.sh (DATA_ADDR): Define.
...
* emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
for start of .data, instead align up to 256M boundary.
* scripttempl/aix.sc: Likewise.
2002-09-24 04:02:03 +00:00
DJ Delorie
8e616ecc6b
* scripttempl/i386go32.sc: Handle bss unique sections.
2002-09-23 11:36:15 +00:00
Alan Modra
5cfb2bb208
* ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
2002-09-21 14:14:25 +00:00
Alan Modra
344897cceb
* ld-undefined/undefined.exp: Adjust function test.
2002-09-21 14:14:00 +00:00
Alan Modra
c7749bd6ec
* ld-i386/i386.exp: Only run tests on ELF targets.
2002-09-20 07:57:08 +00:00
Jakub Jelinek
37e55690c4
bfd/
...
* reloc.c (BFD_RELOC_386_TLS_TPOFF, BFD_RELOC_386_TLS_IE,
BFD_RELOC_386_TLS_GOTIE): Add.
* bfd-in2.h, libbfd.h: Rebuilt.
* elf32-i386.c (elf_howto_table): Add R_386_TLS_TPOFF, R_386_TLS_IE
and R_386_TLS_GOTIE.
(elf_i386_reloc_type_lookup): Handle it.
(struct elf_i386_link_hash_entry): Change tls_type type to unsigned
char instead of enum, change GOT_* into defines.
(GOT_TLS_IE_POS, GOT_TLS_IE_NEG, GOT_TLS_IE_BOTH): Define.
(elf_i386_tls_transition): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
(elf_i386_check_relocs): Likewise. Avoid crash if local symbol is
accessed both as normal and TLS symbol. Move R_386_TLS_LDM and
R_386_PLT32 cases so that R_386_TLS_IE can fall through.
Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
(elf_i386_gc_sweep_hook): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
(allocate_dynrelocs): Allocate 2 .got and 2 .rel.got entries if
tls_type is GOT_TLS_IE_BOTH.
(elf_i386_size_dynamic_sections): Likewise.
(elf_i386_relocate_section): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
(elf_i386_finish_dynamic_symbol): Use tls_type & GOT_TLS_IE to catch
all 4 GOT_TLS_* TLS types.
gas/
* config/tc-i386.c (tc_i386_fix_adjustable): Handle
BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
(BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
if not defined.
(lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
(md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
BFD_RELOC_386_TLS_GOTIE.
gas/testsuite/
* gas/i386/tlspic.s: Add tests.
* gas/i386/tlspic.d: Regenerated.
* gas/i386/tlsnopic.s: Add tests.
* gas/i386/tlsnopic.d: Regenerated.
include/
* elf/i386.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE):
Define.
ld/testsuite/
* ld-i386/i386.exp: New.
* ld-i386/tlsbin.dd: New test.
* ld-i386/tlsbinpic.s: New test.
* ld-i386/tlsbin.rd: New test.
* ld-i386/tlsbin.s: New test.
* ld-i386/tlsbin.sd: New test.
* ld-i386/tlsbin.td: New test.
* ld-i386/tlslib.s: New test.
* ld-i386/tlsnopic1.s: New test.
* ld-i386/tlsnopic2.s: New test.
* ld-i386/tlsnopic.dd: New test.
* ld-i386/tlsnopic.rd: New test.
* ld-i386/tlsnopic.sd: New test.
* ld-i386/tlspic1.s: New test.
* ld-i386/tlspic2.s: New test.
* ld-i386/tlspic.dd: New test.
* ld-i386/tlspic.rd: New test.
* ld-i386/tlspic.sd: New test.
* ld-i386/tlspic.td: New test.
2002-09-19 19:01:18 +00:00
Chris Demetriou
2dc83527fb
[ gas/testsuite/ChangeLog ]
...
2002-09-18 Chris Demetriou <cgd@broadcom.com>
* gas/mips/branch-misc-1.d: New file.
* gas/mips/branch-misc-1.s: New file.
* gas/mips/branch-misc-2.s: New file.
* gas/mips/branch-misc-2.d: New file.
* gas/mips/mips.exp: Run new tests.
[ ld/testsuite/ChangeLog ]
2002-09-18 Chris Demetriou <cgd@broadcom.com>
* ld-mips-elf/branch-misc-1.d: New file.
* ld-mips-elf/branch-misc-2.d: New file.
* ld-mips-elf/mips-elf.exp: Run new tests.
2002-09-18 20:50:47 +00:00
Stan Cox
dd2e090509
* emulparams/elf32bmipn32-defs.sh: New file.
...
* emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
* emulparams/elf32btsmipn32.sh: Likewise.
* emulparams/elf64bmip.sh: Likewise.
* emulparams/elf64btsmip.sh: Likewise.
2002-09-18 01:54:37 +00:00
David O'Brien
4ada7262d0
2002-09-16 Bruno Haible <bruno@clisp.org>
...
* elf32-i386.c: Don't defined ELF_ARCH etc. if this file is included
by a target variant implementation.
* elf64-alpha.c: Likewise.
* elf32-i386-fbsd.c: New file.
* elf64-alpha-fbsd.c: New file.
* targets.c: Support bfd_elf32_i386_freebsd_vec and
bfd_elf64_alpha_freebsd_vec.
* configure.in: Accept the vectors bfd_elf32_i386_freebsd_vec,
bfd_elf64_alpha_freebsd_vec.
* Makefile.am (BFD32_BACKENDS): Add elf32-i386-fbsd.lo.
(BFD32_BACKENDS_CFILES): Add elf32-i386-fbsd.c.
(BFD64_BACKENDS): Add elf64-alpha-fbsd.lo.
(BFD64_BACKENDS_CFILES): Add elf64-alpha-fbsd.c.
(elf32-i386-fbsd.lo, elf64-alpha-fbsd.lo): Add dependencies.
* config.bfd: For FreeBSD targets, set targ_defvec to a FreeBSD
specific targets. Define OLD_FREEBSD_ABI_LABEL if appropriate.
* config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
(TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
* config/tc-i386.c (i386_target_format): Likewise.
* config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
(TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
* emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
elf32-i386-freebsd.
* emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
elf64-alpha-freebsd.
Approved by: Alan Modra <amodra@bigpond.net.au>
Message-ID: <20020715021113.GJ30362@bubble.sa.bigpond.net.au>
2002-09-17 02:24:40 +00:00
Nick Clifton
004d9cafa4
New TI port supports both C4x and C3x series of DSPs.
2002-09-11 14:42:45 +00:00
Nick Clifton
e09f439535
Update translations
2002-09-11 13:52:17 +00:00
Jeff Law
0b3a6a28f9
* configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
2002-09-06 20:42:40 +00:00
Alan Modra
c23487d4ef
* ld-sh/sh64/cmpct1.xd: Adjust for lack of abs section sym.
...
* ld-sh/sh64/crange3-cmpct.rd: Likewise.
* ld-sh/sh64/crange3-media.rd: Likewise.
* ld-sh/sh64/crange3.rd: Likewise.
2002-09-05 00:07:08 +00:00
Nick Clifton
67010b4679
Add EXTERN references to __ctbpm __gp and __ep.
...
Define TEMPLATE_NAME.
Revert bogus change to ldexp.c
2002-09-02 17:03:30 +00:00
Nick Clifton
3e369e968e
Fix PROVIDE
2002-09-02 14:46:56 +00:00
Hans-Peter Nilsson
156436a5c2
* ld-mmix/bpo-10.d: Tweak for change in symbols handling.
...
* ld-mmix/bpo-11.d: Ditto.
* ld-mmix/b-nosym.d: Adjust for changed output for absence of
symbols.
* ld-mmix/sec-7m.d: Rename tested section from .debug_info to
.di.
* ld-mmix/sec-7a.s, ld-mmix/sec-7b.s, ld-mmix/sec-7c.s,
ld-mmix/sec-7d.s, ld-mmix/sec-7e.s: Ditto.
2002-08-31 17:23:58 +00:00
Nick Clifton
5435462c55
Update description to reflect D10V TS3 board.
2002-08-30 11:34:40 +00:00
Alan Modra
5c368657dc
* emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
2002-08-30 08:30:41 +00:00
Nick Clifton
026df7c5e6
Add TMS320C4x support
2002-08-28 10:38:51 +00:00
Alan Modra
c89e8944a4
* emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
...
strtoul and strtoull with bfd_scan_vma.
(gld${EMULATION_NAME}_read_file): Likewise.
2002-08-28 01:55:46 +00:00
Alan Modra
6d110b652a
* ld-discard/discard.exp: xfail m6812.
...
* ld-scripts/map-address.d: Adjust for extras emitted by pe targets.
2002-08-28 00:11:40 +00:00
Alan Modra
6459ecfa96
* configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
2002-08-28 00:10:47 +00:00
Nick Clifton
ad5211bec5
Handle .rdata_runtime_pseudo_reloc sections.
2002-08-27 11:12:53 +00:00
Nick Clifton
88f7bcd5a7
Revert ARM linker patch and apply similar patch to bfd instead
2002-08-27 11:01:55 +00:00
Alan Modra
68a4c07345
Revert last change.
2002-08-26 23:15:48 +00:00
Alan Modra
99e49e4e29
* ld-mmix/b-nosym.d: Adjust for "no symbols" on stdout.
2002-08-26 10:16:34 +00:00
Alan Modra
30c8cc6872
* ld-sh/sh64/rd-sh64.exp: New framework file.
...
* ld-sh/sh64/init-cmpct.d, ld-sh/sh64/init-media.d,
ld-sh/sh64/init64.d, ld-sh/sh64/init.s: New tests for
correct setting of ISA bit for init and fini entry-points.
2002-08-23 08:14:06 +00:00
Nick Clifton
8e523c2334
Add --with-lib-patch configure switch.
2002-08-23 08:03:32 +00:00
Nick Clifton
d9a7f7ab85
Set the last bit of DT_INIT and DT_FINI depending on the type of the function.
2002-08-22 19:11:51 +00:00
Nick Clifton
ed71e1110d
Add sh-nto support
2002-08-22 17:27:20 +00:00
Alan Modra
7abb6dea2c
* ldlang.c (offsetof): Define if not defined.
2002-08-20 23:48:18 +00:00
Stephen Clarke
0b65791f7d
* ld-sh/sh64/sh64.exp: Add dlsection.
...
* ld-sh/sh64/dlsection-1.s, ld-sh/sh64/dlsection.sd: New.
2002-08-16 18:47:31 +00:00
Alan Modra
b3de5b86c2
* ld-discard/discard.exp: xfail targets using generic linker.
...
* ld-discard/extern.d: Allow "data" to be reduced to a section sym.
2002-08-16 00:17:11 +00:00
Hans-Peter Nilsson
43b1011811
* ld-cris/libdso-4.d, ld-cris/undef1.d: New test.
2002-08-15 05:19:32 +00:00
Hans-Peter Nilsson
f831bcc9a0
* ld-sh/sh64/shdl64.xd: Adjust as type of linker-script-symbols
...
is no longer set to object.
(Forgotten commit)
2002-08-14 21:57:39 +00:00
H.J. Lu
e92290077e
Always enable 64bit targets for 32bit Linux/mips.
2002-08-14 15:05:41 +00:00
H.J. Lu
80425074bb
2002-08-13 H.J. Lu <hjl@gnu.org>
...
* ld-elfvers/vers.exp: Add vers23c and vers23d.
* ld-elfvers/vers23c.ver: New.
* ld-elfvers/vers23d.dsym: New.
2002-08-14 03:26:48 +00:00
Alan Modra
3c6706bb5f
* ld.texinfo (ALIGN): Remove power of 2 restriction.
2002-08-13 02:27:11 +00:00
Alan Modra
c553bb910d
* emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
...
(MAXPAGESIZE): Set to 1.
* ld.h (ALIGN_N): Delete.
* ldexp.h (align_n): Declare.
* ldexp.c (align_n): New function.
(fold_binary): Use align_n instead of ALIGN_N.
(exp_fold_tree): Likewise.
* ldlang.c (lang_size_sections_1): Likewise.
(lang_one_common): Likewise.
2002-08-13 02:08:26 +00:00
H.J. Lu
9c0921673d
2002-08-12 H.J. Lu <hjl@gnu.org>
...
* ld-elfvers/vers.exp: Add vers23.
* ld-elfvers/vers23.c: New.
* ld-elfvers/vers23.dsym: New.
* ld-elfvers/vers23.ver: New.
* ld-elfvers/vers23a.c: New.
* ld-elfvers/vers23a.dsym: New.
* ld-elfvers/vers23a.map: New.
* ld-elfvers/vers23a.sym: New.
* ld-elfvers/vers23a.ver: New.
* ld-elfvers/vers23b.c: New.
* ld-elfvers/vers23b.dsym: New.
* ld-elfvers/vers23b.map: New.
* ld-elfvers/vers23b.ver: New.
2002-08-12 19:21:59 +00:00