Alan Modra
b1ab97771e
ld/
...
* emultempl/ppc64elf.em (ppc_finish): Rename from
gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
(LDEMUL_FINISH): Update.
* emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
* emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
ld/testsuite/
* ld-powerpc/tlsexe.r: Update.
* ld-powerpc/tlsexetoc.r: Update.
* ld-powerpc/tlsso.r: Update.
* ld-powerpc/tlstocso.r: Update.
2005-03-21 09:39:54 +00:00
Julian Brown
2a2a7c9466
* ld/scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
...
.rel.fini_array.
(.rela.dyn): Add .rela.init_array, .rela.fini_array.
(SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
2005-03-18 16:55:44 +00:00
H.J. Lu
98720c64bc
2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
...
* emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
bfd_section when removing unused empty output sections for
non-relocatable link.
2005-03-18 15:56:27 +00:00
Alan Modra
41c7ba7cc2
* ldlang.c (lang_insert_orphan): Use old section_tail rather than
...
traversing the bfd section list to find pointer to new section.
2005-03-18 13:56:26 +00:00
Alan Modra
0fb531188f
* scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
...
input sections into .sdata and .sbss output respectively.
2005-03-17 22:51:09 +00:00
Bob Wilson
de7f8cc8e0
ld/ChangeLog:
...
* ldlang.c (IGNORE_SECTION): Remove check for zero size.
(lang_check_section_addresses): Ignore zero size sections here.
ld/testsuite/ChangeLog:
* ld-scripts/empty-orphan.d, ld-scripts/empty-orphan.exp,
ld-scripts/empty-orphan.s, ld-scripts/emtpy-orphan.t: New test.
2005-03-17 16:20:39 +00:00
H.J. Lu
57316bff0a
bfd/
...
2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (elf_mark_used_section): New.
(bfd_elf_gc_sections): Call elf_gc_mark_section for
non-relocatable link if we don't do GC.
include/
2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
* bfdlink.h (bfd_link_info): Add gc_sections.
ld/
2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
* emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
unused empty output sections for non-relocatable link.
* ld.h (args_type): Remove gc_sections.
* ldlang.c (lang_mark_used_section): New.
(lang_gc_sections): Use link_info.gc_sections instead of
command_line.gc_sections.
* ldmain.c (main): Likewise.
* lexsup.c (parse_args): Likewise.
* ldlang.c (lang_process): Call lang_mark_used_section.
* ldmain.c (main): Initialize link_info.gc_sections to FALSE.
ld/testsuite/
2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
* ld-alpha/tlsbin.rd: Updated for empty section removal.
* ld-alpha/tlsbinr.rd: Likewise.
* ld-alpha/tlspic.rd: Likewise.
* ld-arm/mixed-lib.sym: Likewise.
* ld-i386/tlsbin.rd: Likewise.
* ld-i386/tlsnopic.rd: Likewise.
* ld-i386/tlspic.rd: Likewise.
* ld-ia64/tlsbin.rd: Likewise.
* ld-ia64/tlspic.rd: Likewise.
* ld-powerpc/apuinfo.rd: Likewise.
* ld-powerpc/powerpc.exp: Likewise.
* ld-powerpc/tlsexe32.r: Likewise.
* ld-s390/tlsbin.rd: Likewise.
* ld-s390/tlsbin_64.rd: Likewise.
* ld-s390/tlspic.rd: Likewise.
* ld-s390/tlspic_64.rd: Likewise.
* ld-sh/tlsbin-2.d: Likewise.
* ld-sh/tlspic-2.d: Likewise.
* ld-sparc/tlssunbin32.rd: Likewise.
* ld-sparc/tlssunnopic32.rd: Likewise.
* ld-sparc/tlssunpic32.rd: Likewise.
* ld-x86-64/tlsbin.rd: Likewise.
* ld-x86-64/tlspic.rd: Likewise.
2005-03-16 21:52:48 +00:00
Nick Clifton
569acd2ce2
Rename switch to enable/disable -Werror to --enable-werror/--disable-werror
...
for compatibility with gcc.
2005-03-16 17:18:17 +00:00
Nick Clifton
1ad12f975f
Enable -Werror by default
2005-03-16 16:17:14 +00:00
Alan Modra
cb2d1ef2ae
bfd/
...
* elf32-ppc.c (ppc_elf_create_linker_section): Set SEC_LINKER_CREATED
on section. Correct comment, and add FIXME.
(ppc_elf_additional_program_headers): Don't bump header count for
interp. Test SEC_ALLOC, not SEC_LOAD, and don't test size.
(ppc_elf_size_dynamic_sections): Don't strip sdata and sdata2, but
do allocate memory if they need it.
ld/
* emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
(OTHER_RELRO_SECTIONS): Set this instead.
ld/testsuite/
* ld-powerpc/tlsexe32.d: Update.
* ld-powerpc/tlsexe32.g: Update.
* ld-powerpc/tlsexe32.r: Update.
* ld-powerpc/tlsexe32.t: Update.
* ld-powerpc/tlsso32.d: Update.
* ld-powerpc/tlsso32.g: Update.
* ld-powerpc/tlsso32.r: Update.
* ld-powerpc/tlsso32.t: Update.
2005-03-16 02:41:28 +00:00
Nick Clifton
957d91c178
Add cutoff for changes in 2.16 release
2005-03-15 17:49:15 +00:00
Nick Clifton
34723071b5
Add support for an x86_64-elf target
2005-03-15 14:14:08 +00:00
Alan Modra
729ae8d20e
Commit new Spanish translation.
2005-03-15 05:25:37 +00:00
Alan Modra
8b3d8fa8ac
* ldexp.c (exp_fold_tree): Ensure return value is initialized.
...
Tidy etree_assert case.
2005-03-14 12:29:13 +00:00
Alan Modra
882cb63e5c
Commit new Turkish translation.
2005-03-14 03:40:46 +00:00
Daniel Jacobowitz
61c84b48d3
* Makefile.am: Remove references to em68klynx.o and esparclynx.o.
...
* Makefile.in: Regenerated.
* emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
2005-03-11 19:55:36 +00:00
Nick Clifton
41c9e29df5
Updated French translation
2005-03-07 13:56:29 +00:00
Alan Modra
06647dfdde
Regenerate .pot files
2005-03-05 12:14:34 +00:00
Jan Beulich
bb14f52400
bfd/
...
2005-03-02 Jan Beulich <jbeulich@novell.com>
* Makefile.am: Add dependency of cache.o on libiberty.h.
* cache.c: Include libiberty.h.
(bfd_open_file): Use unlink_if_ordinary instead of unlink.
binutils/
2005-03-02 Jan Beulich <jbeulich@novell.com>
* ar.c (remove_output): Use unlink_if_ordinary instead of unlink.
* objcopy.c (copy_file): Likewise.
(strip_main): Likewise.
gas/
2005-03-02 Jan Beulich <jbeulich@novell.com>
* as.c (main): Use unlink_if_ordinary instead of unlink.
* messages.c (as_fatal): Likewise.
ld/
2005-03-02 Jan Beulich <jbeulich@novell.com>
* ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
* pe-dll.c (pe_dll_generate_implib): Likewise.
2005-03-02 09:03:58 +00:00
Ben Elliston
0ef622cbcf
* ldfile.c: Remove GNU960 conditional code.
...
* emultempl/gld960.em: Likewise.
* emultempl/gld960c.em: Likewise.
* emultempl/lnk960.em: Likewise.
2005-02-24 20:11:05 +00:00
Nick Clifton
f3f4bccaf6
(lnk960_before_parse): Remove redundant empty string from calls to concat.
2005-02-24 13:16:07 +00:00
Alan Modra
476391821e
* pe-dll.c: Warning fixes.
...
* emultempl/sunos.em: Likewise.
2005-02-23 12:30:48 +00:00
Daniel Jacobowitz
ace66bb2fb
* ldlang.c (section_already_linked): Don't call
...
bfd_section_already_linked for dynamic objects.
2005-02-22 18:35:32 +00:00
Alan Modra
5718918d7a
* ldexp.c: Warning fixes.
...
* ldwrite.c: Likewise.
* emultempl/elf32.em: Likewise.
2005-02-22 13:00:26 +00:00
H.J. Lu
ebe372c1dd
bfd/
...
2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
* coffcode.h (sec_to_styp_flags): Replaced SEC_CLINK with
SEC_TIC54X_CLINK. Replace SEC_BLOCK with SEC_TIC54X_BLOCK.
Replace SEC_SHARED with SEC_COFF_SHARED.
(styp_to_sec_flags): Likewise.
* elfxx-target.h (TARGET_BIG_SYM): Remove SEC_ARCH_BIT_0.
(TARGET_LITTLE_SYM): Likewise.
* section.c (SEC_ARCH_BIT_0): Removed.
(SEC_LINK_DUPLICATES_SAME_CONTENTS): Defined with
SEC_LINK_DUPLICATES_ONE_ONLY and SEC_LINK_DUPLICATES_SAME_SIZE.
(SEC_SHARED): Renamed to ...
(SEC_COFF_SHARED): This.
(SEC_BLOCK): Renamed to ...
(SEC_TIC54X_BLOCK): This.
(SEC_CLINK): Renamed to ...
(SEC_TIC54X_CLINK): This.
(SEC_XXX): Rearranged. Move SEC_COFF_SHARED_LIBRARY,
SEC_COFF_SHARED, SEC_TIC54X_BLOCK and SEC_TIC54X_CLINK to the
end.
* bfd-in2.h: Regenerated.
binutils/
2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
* objcopy.c (parse_flags): Replace SEC_SHARED with
SEC_COFF_SHARED.
* objdump.c (dump_section_header): Dump SEC_TIC54X_BLOCK and
SEC_TIC54X_CLINK for TI c54x only. Remove SEC_ARCH_BIT_0. Dump
SEC_COFF_SHARED for COFF only.
gas/
2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
* config/obj-coff.c (obj_coff_section): Replace SEC_SHARED with
SEC_COFF_SHARED.
* config/tc-tic54x.c (tic54x_bss): Replace SEC_BLOCK with
SEC_TIC54X_BLOCK.
(demand_empty_rest_of_line): Likewise.
(tic54x_sblock): Likewise.
(tic54x_clink): Replace with SEC_CLINK with SEC_TIC54X_CLINK.
ld/
2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
* ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
tic54x input only.
(lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
and ECOFF output only.
2005-02-22 00:50:07 +00:00
Alan Modra
0ca2f5d5d3
* config.in: Regenerate.
...
* configure: Regenerate.
2005-02-21 11:49:47 +00:00
Zack Weinberg
fbbb9ac52f
* ldexp.c (assigning_to_dot): New global flag.
...
(fold_name): If assigning_to_dot is true, object immediately to
an undefined symbol.
(exp_fold_tree): Set and clear assigning_to_dot around the
recursive call to exp_fold_tree to process the right-hand side
of an assignment to the location counter.
testsuite:
* ld-scripts/align.exp: Rename existing "ALIGN" test to "align1".
Add dump tests "align2a", "align2b", "align2c".
* ld-scripts/align2.t, ld-scripts/align2a.s, ld-scripts/align2a.d
* ld-scripts/align2b.s, ld-scripts/align2b.d
* ld-scripts/align2c.s, ld-scripts/align2c.d: New files.
2005-02-17 20:57:01 +00:00
Paul Brook
c68dac40b0
2005-02-17 Paul Brook <paul@codesourcery.com>
...
* scripttempl/armbpabi.sc: Add dummy name to version block.
2005-02-17 13:24:59 +00:00
Alan Modra
20c2cbe38d
* ldexp.c (new_abs): Init new.str.
2005-02-17 13:06:14 +00:00
Mark Mitchell
0b48acfe66
* configure.in (AC_CHECK_FUNCS): Add glob.
...
* configure: Regenerated.
* emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
not defined.
(gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
if HAVE_GLOB is not defined.
2005-02-16 07:49:26 +00:00
Kaz Kojima
ff925e69c5
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
...
lib_path if NATIVE is yes.
2005-02-16 05:10:02 +00:00
Alan Modra
92b7a70fca
bfd/
...
* elf64-ppc.c (ppc64_elf_edit_toc): Skip toc if size is zero.
Skip toc reloc adjust if reloc_count is zero.
ld/
* emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
an error creating fake bfd fatal.
(ppc_before_allocation): Continue on after errors.
(gld${EMULATION_NAME}_finish): Likewise.
2005-02-16 02:20:13 +00:00
Nick Clifton
297ba36772
(YY_NO_UNPUT): Define so that the yy_unput function is not declared. It is not
...
used and its presence causes a compile time warning.
2005-02-15 14:36:19 +00:00
Zack Weinberg
9eabd47532
* emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
...
If st.st_ino is zero, do not treat the library as a duplicate.
2005-02-11 23:52:03 +00:00
Jakub Jelinek
d457dcf698
* bfd-in.h (BFD_LINKER_CREATED): Define.
...
* bfd-in2.h: Rebuilt.
* elflink.c (bfd_elf_size_dynamic_sections): Disregard
BFD_LINKER_CREATED bfds when determining input bfds without
.note.GNU-stack section.
* emultempl/hppaelf.em (hppaelf_create_output_section_statements):
Set BFD_LINKER_CREATED on the stubs bfd.
* emultempl/ppc64elf.em (ppc_create_output_section_statements):
Likewise.
2005-02-10 09:15:08 +00:00
Mark Mitchell
4e5db43bfa
* scripttempl/armbpabi.sc (VERSION): Make special section symbols
...
local.
(Image$$ER_RO$$Base): Define whenever RELOCATING.
(Image$$ER_RO$$Limit): Likewise.
(SHT$$INIT_ARRAY$$Base): Likewise.
(SHT$$INIT_ARRAY$$Limit): Likeise.
2005-02-10 05:49:21 +00:00
Ben Elliston
4297f9f1cc
* emultempl/beos.em: Remove #if 0 and #if 1 blocks.
2005-02-10 01:03:49 +00:00
Richard Sandiford
1c7c5e5b09
* configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
...
to include o32 and n64 emulations.
(mips64*-*-linux-gnu*): Likewise.
2005-02-08 19:54:27 +00:00
Hans-Peter Nilsson
300475fe9d
* ldmain.c (warning_callback, warning_find_reloc): Prepend
...
"warning: " to warning messages.
2005-02-08 03:51:32 +00:00
Alan Modra
4ea42fb74f
bfd/
...
* elflink.c (bfd_elf_record_link_assignment): Do "provide" symbol
lookup here. Set to new before calling bfd_link_repair_undef_list.
(elf_smash_syms): Check that u.undef.weak isn't the not_needed bfd.
ld/
emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
look up symbol for etree_provide here.
2005-02-03 14:12:54 +00:00
Daniel Jacobowitz
161f49a316
* emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
2005-02-02 20:19:52 +00:00
Nick Clifton
73ae61838f
Add a description of how to access linker script defined variables from source
...
code.
2005-02-01 17:31:01 +00:00
Alan Modra
77cfaee698
include/
...
* bfdlink.h (bfd_link_repair_undef_list): Declare.
bfd/
* elf64-ppc.c (ppc64_elf_check_directives): Move undefs list fixup..
* linker.c (bfd_link_repair_undef_list): ..to new function, but don't
remove anything but new and undefweak.
* elflink.c (_bfd_elf_link_create_dynamic_sections): Override any
existing _DYNAMIC.
(_bfd_elf_create_dynamic_sections): Formatting.
(bfd_elf_record_link_assignment): Call bfd_link_repair_undef_list.
(_bfd_elf_merge_symbol): Don't handle as-needed syms here.
(struct elf_smash_data): New.
(elf_smash_syms): New function.
(elf_link_add_object_symbols): Call elf_smash_syms. Don't add
unneeded dynamic objects to loaded list.
(elf_link_output_extsym): Don't handle as-needed here. Strip
bfd_link_hash_new symbols.
* elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
delref when dynindx is already -1.
* elf64-alpha.c (elf64_alpha_output_extsym): Strip bfd_link_hash_new
symbols.
* elfxx-mips.c (mips_elf_output_extsym): Likewise.
ld/
* ld.texinfo: Clarify --as-needed operation.
2005-02-01 01:11:27 +00:00
Andrew Cagney
c46f8c5116
2005-01-31 Andrew Cagney <cagney@gnu.org>
...
* gettext.m4: Only set ENABLE_NLS when gettext is present.
2005-01-31 20:32:45 +00:00
Nick Clifton
d342277e67
Update reported copyright dates.
2005-01-31 17:36:24 +00:00
Nick Clifton
d648679633
Remove obsolete targets
2005-01-31 17:18:51 +00:00
Julian Brown
319850b451
* bfd/bin-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
...
* bfd/bin-in2.h (bfd_elf32_arm_set_target_relocs): Update prototype.
* bfd/elf32-arm.c (elf32_arm_link_hash_table): Add fix_v4bx flag.
(bfd_elf32_arm_set_target_relocs): Add formal parameter fix_v4bx for
passing flag value from ld. Set flag value in global hash table entry.
(elf32_arm_final_link_relocate): Add code to implement R_ARM_V4BX
relocation.
* ld/emultempl/armelf.em (fix_v4bx): New variable.
(arm_elf_create_output_section_statements): Communicate fix_v4bx flag
value to bfd.
(PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
(PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
(PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
(PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
* ld/NEWS: Mention --fix-v4bx.
* ld/ld.texinfo: Document --fix-v4bx.
2005-01-28 17:24:41 +00:00
Mark Mitchell
dc4c9c199b
* elf32-arm.c (elf_backend_default_use_rela_p): Define to zero for
...
SymbianOS.
* emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
as to include .ARM.exidx$${Base,Limit}.
* ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
Put .init_array, .fini_array, etc. into the read-only data
segment.
2005-01-26 06:10:45 +00:00
Alan Modra
7e9f086769
bfd/
...
* elflink.c (elf_link_add_object_symbols): Don't create link dynamic
sections immediately when linking shared libs. Instead, wait until
we know a lib is needed.
(_bfd_elf_link_create_dynstrtab): Extract from..
(_bfd_elf_link_create_dynamic_sections_): ..here.
(elf_add_dt_needed_tag): Call _bfd_elf_link_create_dynstrtab and
_bfd_elf_link_create_dynamic_sections. Add abfd param. Allow
for non-existent .dynamic.
(elf_link_output_extsym): Don't complain about undefined symbols
in as-needed dynamic libs that aren't actually linked.
ld/
* emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
(gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
only needed by an as-needed lib that didn't get linked.
2005-01-25 01:40:04 +00:00
Alan Modra
7e69709c9e
* ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
...
__DTOR_LIST__ description.
2005-01-23 07:43:52 +00:00