daily update
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
fb6cee96
NC
12008-10-25 Nick Clifton <nickc@redhat.com>
2
3 PR 6945
4 * ldlang.c (lang_size_sections_1): Do not update the VMAs of
5 output sections when performing a relocatable link on COFF
6 objects.
7
b8976b05
NC
82008-10-22 Nick Clifton <nickc@redhat.com>
9
10 * emultempl/armelf.em (arm_elf_after_open): Move check for using a
11 non-arm output target from here...
12 (arm_elf_create_output_section_statements): ... to here, so that
13 the check is made at the earliest possible opportunity.
14
f407252f
AM
152008-10-22 Alan Modra <amodra@bigpond.net.au>
16
17 * emulparams/elf32_i960.sh (TEMPLATE_NAME): "generic", not "elf32".
18 (EXTRA_EM_FILE): Define.
19
485cf679
AM
202008-10-22 Alan Modra <amodra@bigpond.net.au>
21
22 * scripttempl/elf.sc (NO_REL_RELOCS, NO_RELA_RELOCS, NON_ALLOC_DYN):
23 Handle these defines.
24 * emulparams/criself.sh, * emulparams/crislinux.sh,
25 * emulparams/elf32am33lin.sh, * emulparams/elf32fr30.sh,
26 * emulparams/elf32_i860.sh, * emulparams/elf32ip2k.sh,
27 * emulparams/elf32mcore.sh, * emulparams/elf32ppccommon.sh,
28 * emulparams/elf32ppcwindiss.sh, * emulparams/elf32_sparc.sh,
29 * emulparams/elf32_spu.sh, * emulparams/elf32vax.sh,
30 * emulparams/elf64alpha.sh, * emulparams/elf64mmix.sh,
31 * emulparams/elf64ppc.sh, * emulparams/elf64_s390.sh,
32 * emulparams/elf64_sparc.sh, * emulparams/elf_s390.sh,
33 * emulparams/elf_x86_64.sh, * emulparams/h8300elf.sh,
34 * emulparams/hppa64linux.sh, * emulparams/hppalinux.sh,
35 * emulparams/m68kelf.sh, * emulparams/mn10200.sh,
36 * emulparams/pjelf.sh, * emulparams/ppclynx.sh,
37 * emulparams/shelf32.sh, * emulparams/shelf_nto.sh,
38 * emulparams/shelf.sh, * emulparams/shelf_vxworks.sh,
39 * emulparams/shlelf32_linux.sh, * emulparams/shlelf_linux.sh,
40 * emulparams/shlelf_nto.sh (NO_REL_RELOCS): Set.
41 * emulparams/arcelf.sh, * emulparams/elf32_i960.sh,
42 * emulparams/elf32openrisc.sh, * emulparams/elf_i386_be.sh,
43 * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386.sh,
44 * emulparams/elf_i386_vxworks.sh, * emulparams/i386lynx.sh,
45 * emulparams/i386moss.sh, * emulparams/i386nto.sh,
46 * emulparams/or32elf.sh, * emulparams/scoreelf.sh (NO_RELA_RELOCS): Set.
47
07890c07
AM
482008-10-22 Alan Modra <amodra@bigpond.net.au>
49
50 * ldlang.c (lang_output_section_find_by_flags): Handle non-alloc
51 sections.
52 * emultempl/elf32.em (enum orphan_save_index): Add orphan_nonalloc.
53 (hold): Likewise.
54 (gld${EMULATION_NAME}_place_orphan): Handle non-alloc orphans.
55
4a977a31
AM
562008-10-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
57
58 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Correct typo in
59 help text of --be8.
60
c2edb4b8
AM
612008-10-20 Alan Modra <amodra@bigpond.net.au>
62
63 * ldemul.h (ldemul_place_orphan): Update prototype.
64 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
65 * ldemul.c (ldemul_place_orphan): Return pointer to output
66 section statement.
67 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Likewise.
68 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
69 * emultempl/mmo.em (mmo_place_orphan): Likewise.
70 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
71 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
72
8cc9115f
NC
732008-10-08 Nick Clifton <nickc@redhat.com>
74
75 * configure.in (ALL_LINGUAS): Add "id".
76 * configure: Regenerate.
77 * po/id.po: New Indonesian translation.
78
f265bc06
AM
792008-10-05 Alan Modra <amodra@bigpond.net.au>
80
81 PR 6943
82 * scripttempl/avr.sc (.bss): Set lma when relocating.
83 (.bss, .noinit): No need to set vma when relocating.
84 (.text, .bss, ,noinit): Set vma to zero when not relocating.
85
8a99a385
AM
862008-10-04 Alan Modra <amodra@bigpond.net.au>
87
88 PR 6931
89 * ldemul.c (ldemul_place_orphan): Add "constraint" param.
90 * ldemul.h (ldemul_place_orphan): Update prototype.
91 (struct ld_emulation_xfer_struct <place_orphan>): Likewise add param.
92 * ldlang.c (unique_section_p): Make static.
93 (lang_output_section_statement_lookup): Optimise creation of SPECIAL
94 sections.
95 (lang_insert_orphan): Add "constraint" param. Pass to
96 lang_enter_output_section_statement.
97 (init_os): Don't use an existing bfd section for SPECIAL sections.
98 (lang_place_orphans): Don't rename unique output sections, instead
99 mark their output section statements SPECIAL.
100 * ldlang.h (lang_insert_orphan): Update prototype.
101 (unique_section_p): Delete.
102 * emultempl/beos.em (place_orphan): Add "constraint" param.
103 * emultempl/elf32.em (place_orphan): Likewise. Don't match existing
104 output sections if set.
105 * emultempl/pe.em (place_orphan): Likewise.
106 * emultempl/pep.em (place_orphan): Likewise.
107 * emultempl/mmo.em (mmo_place_orphan): Update.
108 * emultempl/spuelf.em (spu_place_special_section): Update.
109
bcacc0f5
AM
1102008-10-03 Alan Modra <amodra@bigpond.net.au>
111
e932ca37 112 PR 6931
bcacc0f5
AM
113 * ldemul.c (ldemul_place_orphan): Add "name" param.
114 * ldemul.h (ldemul_place_orphan): Update prototype.
115 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
116 * ldlang.c (lang_place_orphans): Generate unique section names here..
117 * emultempl/elf32.em (place_orphan): ..rather than here. Don't
118 directly use an existing output section statement that has no
119 bfd section.
120 * emultempl/pe.em (place_orphan): Likewise.
121 * emultempl/pep.em (place_orphan): Likewise.
122 * emultempl/beos.em (place_orphan): Adjust.
123 * emultempl/spuelf.em (spu_place_special_section): Adjust
124 place_orphan call.
125 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): New function.
126 (LDEMUL_AFTER_OPEN): Define.
127
b796d39d
JM
1282008-09-30 Joseph Myers <joseph@codesourcery.com>
129
130 * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.opd
131 and .rela.branch_lt.
132
782e11fd
AM
1332008-09-30 Alan Modra <amodra@bigpond.net.au>
134
135 * Makefile.am: Run "make dep-am".
136 * Makefile.in: Regenerate.
137
b214d478
SE
1382008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
139 Steve Ellcey <sje@cup.hp.com>
140
141 * configure: Regenerate for new libtool.
142 * aclocal.m4: Ditto.
143 * Makefile.in: Ditto.
144
b8a48734
KT
1452008-09-29 Kai Tietz <kai.tietz@onevision.com>
146
147 * pe-dll.c (make_import_fixup_entry): Make sure reloc is addend.
148
afac680a
NC
1492008-09-29 Nick Clifton <nickc@redhat.com>
150
151 * po/vi.po: Updated Vietnamese translation.
152
4ac0c898
AM
1532008-09-25 Alan Modra <amodra@bigpond.net.au>
154
155 * ldexp.c (fold_binary): Evaluate rhs when lhs not valid.
156
d053aef8
JK
1572008-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
158
159 * configure.in: Call AC_SYS_LARGEFILE.
160 * config.in: Regenerate.
161 * configure: Regenerate.
162
44e36d8a
NC
1632008-09-09 Peter Rosin <peda@lysator.liu.se> (tiny change)
164
165 * emultempl/pe.em (pe_find_data_imports): Add trailing newline
166 to warning message.
167 * emultempl/pep.em (pep_find_data_imports): Likewise.
168
25d65034
L
1692008-09-08 H.J. Lu <hongjiu.lu@intel.com>
170
171 2008-09-07 Alan Modra <amodra@bigpond.net.au>
172
173 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated.
174 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Likewise.
175
6e33da12
TG
1762008-09-08 Tristan Gingold <gingold@adacore.com>
177
178 * NEWS: Add a marker for the 2.19 features.
179
66c103b7
AM
1802008-09-07 Alan Modra <amodra@bigpond.net.au>
181
182 * ldlang.h (lang_output_section_find): Define.
183 (lang_output_section_statement_lookup): Update prototype.
184 * ldlang.c (lang_output_section_find,
185 lang_output_section_statement_lookup_1): Merge into..
186 (lang_output_section_statement_lookup): ..here. Update all callers.
187 (process_insert_statements): Set constraint negative
188 for output section statements we might be inserting. Make error
189 fatal on not finding insertion section.
190 (lang_output_section_find): Rather than comparing
191 output_section_statement.constraint against -1, test whether
192 it is postive.
193 (lang_output_section_statement_lookup_1): Likewise.
194 (output_prev_sec_find, strip_excluded_output_sections): Likewise.
195 (lang_record_phdrs): Likewise.
196 * emultempl/elf32.em (output_rel_find): Likewise.
197 * NEWS: Mention INSERT.
198
8716772c
NC
1992008-08-26 Nick Clifton <nickc@redhat.com>
200
201 PR 6727
202 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all
203 input sections in all input bfds and always select the last
204 suitable one, so that interworking stubs are always processed
205 after all other input sections.
206 (arm_elf_before_allocation): Remove redundant use of
207 output_has_begun flag.
208
da594c4a
AM
2092008-08-24 Alan Modra <amodra@bigpond.net.au>
210
211 * configure.in: Update a number of obsolete autoconf macros.
212 * configure: Regenerate.
213 * aclocal.m4: Regenerate.
214
2b60860a
JK
2152008-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
216
217 PR ld/6833
218 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Do not align
219 EXPLD.DATASEG.MIN_BASE.
220 * ldlang.c (lang_size_sections): New variable OLD_BASE. Rename
221 OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'.
222 Use OLD_BASE now for the minimal base check after the base decrease by
223 the maximum alignment found.
224
5c1d2f5f
AM
2252008-08-17 Alan Modra <amodra@bigpond.net.au>
226
227 PR 6478
228 * ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols.
229 Don't free symbol pointer array.
230 (check_refs): Likewise.
231 * ldmain.c (warning_callback): Likewise.
232 * ldmisc.c (vfinfo): Likewise.
233 * pe-dll.c (process_def_file): Likewise.
234 (pe_walk_relocs_of_symbol, generate_reloc): Likewise.
235 * emultempl/pe.em (pe_find_data_imports): Likewise.
236 (gld_${EMULATION_NAME}_after_open): Likewise.
237 * emultempl/pep.em (pep_find_data_imports): Likewise.
238 (gld_${EMULATION_NAME}_after_open): Likewise.
239 * ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count,
240 passive_position, closed.
241 * ldlang.c (new_afile): Don't set asymbols and symbol_count.
242 * ldmain.c (add_archive_element): xcalloc lang_input_statement_type.
243
7357c5b6
AM
2442008-08-15 Alan Modra <amodra@bigpond.net.au>
245
246 PR 6526
247 * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
248 * Makefile.in: Regenerate.
249 * aclocal.m4: Regenerate.
250 * config.in: Regenerate.
251 * configure: Regenerate.
252
a8caa245
AM
2532008-08-09 Alan Modra <amodra@bigpond.net.au>
254
255 PR 6753
256 * ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete.
257 (main): Don't set_scripts_dir here.
258 * ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions,
259 largely based on ldmain.c versions.
260 (ldfile_find_command_file): Set up search in script dir here without
261 affecting library search.
262 * Makefile.am (ldmain.o): No need to define SCRIPTDIR.
263 (ldfile.o): New rule.
264 * Makefile.in: Regenerate.
265
7b21ac3f
EW
2662008-08-08 Anatoly Sokolov <aesok@post.ru>
267
268 * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
269 and eavr51.o.
270 Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
271 * Makefile.in: Regenerate.
272 * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
273 and avr51.
274 * emulparams/avr25.sh: New file.
275 * emulparams/avr31.sh: New file.
276 * emulparams/avr35.sh: New file.
277 * emulparams/avr51.sh: New file.
278
861fb55a
DJ
2792008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
280 Daniel Jacobowitz <dan@codesourcery.com>
281
282 * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
283 (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
284 two variables.
285 * emulparams/elf32bmipn32-defs.sh: Likewise.
286 * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
287 (is_mips_elf): New macro.
288 (stub_file, stub_bfd): New variables.
289 (hook_stub_info): New structure.
290 (hook_in_stub): New function.
291 (mips_add_stub_section): Likewise.
292 (mips_create_output_section_statements): Likewise.
293 (mips_before_allocation): Likewise.
294 (real_func): New variable.
295 (mips_for_each_input_file_wrapper): New function.
296 (mips_lang_for_each_input_file): Likewise.
297 (lang_for_each_input_file): Define.
298 (LDEMUL_BEFORE_ALLOCATION): Likewise.
299 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.
300
a26cc967
AM
3012008-08-08 Alan Modra <amodra@bigpond.net.au>
302
303 * ldfile.c (ldfile_open_file_search): Use concat.
304 (try_open): Don't use a fixed size pathname buffer.
305 (ldfile_find_command_file): Likewise.
306 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If
307 using EXTRA_SHLIB_EXTENSION, don't open twice.
308
323ee3f4
AM
3092008-08-04 Alan Modra <amodra@bigpond.net.au>
310
311 * Makefile.am (POTFILES.in): Set LC_ALL=C.
312 * Makefile.in: Regenerate.
313 * po/POTFILES.in: Regenerate.
314
cc9b841c
AM
3152008-08-03 Alan Modra <amodra@bigpond.net.au>
316
317 * Makefile.am (spu_ovl.o): Merge rule into..
318 (spu_ovl.o_c): ..this one. Only run cpp for spu target.
319 * Makefile.in: Regenerate.
320
4b64c41f
JK
3212008-08-02 Jan Kratochvil <jan.kratochvil@redhat.com>
322
323 Include the spu_ovl ASCII form in the repository files.
324 * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'.
325 * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'.
326 ($(srcdir)/emultempl/spu_ovl.o_c): New target.
327 ($(srcdir)/emultempl/spu_ovl.o): Rename to...
328 (spu_ovl.o): ...this one.
329 * Makefile.in: Regenerate.
330 * emultempl/spu_ovl.o_c: New file.
331 * emultempl/spu_ovl.o: File removed.
332
49314f87
DS
3332008-07-31 Takashi Ono <t_ono@hkfreak.net>
334
335 * pe-dll.c (generate_relocs): Don't generate relocs for
336 undefined weak symbols.
337
2f9300ef
JK
3382008-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
339
340 * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
341
0af1713e
AM
3422008-07-30 Alan Modra <amodra@bigpond.net.au>
343
344 * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
345
a9dc9481
JM
3462008-07-18 Joseph Myers <joseph@codesourcery.com>
347
348 * ld.texinfo (--no-wchar-size-warning): Document new ARM option.
349 * emultempl/armelf.em (no_wchar_size_warning): New.
350 (arm_elf_create_output_section_statements): Pass
351 no_wchar_size_warning to arm_elf_create_output_section_statements.
352 (OPTION_NO_WCHAR_SIZE_WARNING): New.
353 (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
354 (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
355 (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.
356
b0a0b978
JZ
3572008-07-15 Jie Zhang <jie.zhang@analog.com>
358
359 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
360
4474d12b
CS
3612008-07-12 Craig Silverstein <csilvers@google.com>
362
6fa08786 363 PR ld/6741
4474d12b
CS
364 * configure.in: Check for, and include, libz.a if it is present.
365 * configure: Regenerate.
366 * config.in: Regenerate.
367
1bac266e
JZ
3682008-07-12 Jie Zhang <jie.zhang@analog.com>
369
370 Revert
371 2008-07-12 Jie Zhang <jie.zhang@analog.com>
372 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
373 (eelf32bfinfd.c): Likewise.
374 * Makefile.in: Regenerate.
375 * gen-doc.texi: Set Blackfin.
376 * ld.texinfo: Document --sep-code and Blackfin specific
377 options.
378 * ldmain.c (main): Initialize link_info.sep_code.
379 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
380 (ld_options[]): Add --sep-code.
381 (parse_args): Deal with --sep-code.
382 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
383 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
384 * emultempl/bfin.em: New file.
385
8c684578
JZ
3862008-07-12 Jie Zhang <jie.zhang@analog.com>
387
388 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
389 (eelf32bfinfd.c): Likewise.
390 * Makefile.in: Regenerate.
391 * gen-doc.texi: Set Blackfin.
392 * ld.texinfo: Document --sep-code and Blackfin specific
393 options.
394 * ldmain.c (main): Initialize link_info.sep_code.
395 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
396 (ld_options[]): Add --sep-code.
397 (parse_args): Deal with --sep-code.
398 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
399 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
400 * emultempl/bfin.em: New file.
401
b92216aa
DS
4022008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
403
404 *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
405 starting with ".".
406 Exclude "_IMPORT_DESCRIPTOR_".
407 (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
408 (autofilter_symbollist_generic): Don't check for ".text".
409 Exclude "_NULL_IMPORT_DESCRIPTOR".
410 (autofilter_symbollist_i386): Likewise.
411
9795b468
AM
4122008-07-07 Alan Modra <amodra@bigpond.net.au>
413
414 * emultempl/armelf.em (elf32_arm_add_stub_section): Use
415 bfd_make_section_with_flags.
416 * emultempl/avrelf.em (avr_elf_create_output_section_statements):
417 Likewise.
418 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
419 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
420 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
421 * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
422 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
423 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
424 Likewise.
425
4006703d
NS
4262008-07-06 Nathan Sidwell <nathan@codesourcery.com>
427
428 * ld.texinfo (File Commands): Document that INCLUDE can be used in
429 several different places.
430 * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
431 (memory, memory_spec_list): Simplify BNF
432 (memory_spec_list_opt): New rule.
433 * ldlex.l (INCLUDE): Recognize in EXPRESSION.
434
9f1a3ddf
AM
4352008-06-20 Alan Modra <amodra@bigpond.net.au>
436
437 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
438 build overlay stubs" a fatal error.
439
7a283e07
RW
4402008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
441
442 * config.in: Regenerate.
443 * configure: Regenerate.
444
99302af9
AM
4452008-06-17 Alan Modra <amodra@bigpond.net.au>
446
447 * emultempl/spuelf.em (extra_stack_space): New variable.
448 (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
449 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
450 PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
451 * emultempl/spu_ovl.S: Mask interrupts during dma and update of
452 overlay manager structures.
453 * emultempl/spu_ovl.o: Regenerate.
454
7a2de473
HPN
4552008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
456
457 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
458 mention it as being special for global symbols.
459
5590fba9
NC
4602008-06-12 Nick Clifton <nickc@redhat.com>
461
462 * ldlang.c (print_output_section_statement): If the output section
463 statement has an update_dot_tree expression, apply it to
464 print_dot.
465 (print_input_section): Do not update print_dot if it would move
466 print_dot backwards.
467 (lang_do_assignments_1): If the output section statement has an
468 update_dot_tree expression apply it to dot.
469
967928e9
AM
4702008-06-07 Alan Modra <amodra@bigpond.net.au>
471
472 * NEWS: Mention archive:path patterns.
473 * ld.texinfo: Likewise.
474 * ldlang.c: Formatting throughout.
475 (archive_path): Only assume "[A-Za-z]:" is a dos drive.
476 (input_statement_is_archive_path): New function, extracted from..
477 (walk_wild): ..here.
478 (walk_wild_consider_section): Match archive:path here too.
479 (init_map_userdata, sort_def_symbol): Convert to ISO C.
480 * ldmain.c (main): Set link_info.path_separator.
481 * emultempl/spuelf.em (choose_target): Don't set it here.
482
97407faf
AM
4832008-06-06 Alan Modra <amodra@bigpond.net.au>
484
485 * ldlang.c (name_match): New function.
486 (unique_section_p, walk_wild_consider_section): Use it here.
487 (walk_wild_section_general): And here.
488 (archive_path): New function.
489 (walk_wild): Match archive:path filespecs.
490 (open_input_bfds): Don't load archive:path files.
491 * emultempl/spuelf.em (choose_target): Set path_separator.
492 * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
493
a61ca861
NC
4942008-06-04 Nick Clifton <nickc@redhat.com>
495
496 * ld.texinfo (Orphan Sections): Fix texi typo.
497
0fe58ccd
NC
4982008-06-04 Chris Metcalf <cmetcalf@tilera.com>
499
500 * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
501 (ld_options): Add entry for --no-fatal-warnings.
502 (parse_args): Handle OPTION_NO_WARN_FATAL.
503 * ld.texinfo (Options): Document new command line switch.
504
d77ec871
AM
5052008-06-04 Alan Modra <amodra@bigpond.net.au>
506
507 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
508
476d8a22
NC
5092008-06-02 Nathan Sidwell <nathan@codesourcery.com>
510
511 * ldlang.c (closest_target_match): Skip generic big and little
512 endian ELF targets.
513
de7dd2bd
NC
5142008-05-31 Evandro Menezes <evandro@yahoo.com>
515
516 PR ld/6430
517 * ld.h (enum sort_order): New.
518 * ldlang.c (lang_check: Fix comment.
519 (lang_common): Sort commons in ascending or descending order.
520 (lang_one_common): Likewise.
521 * lexsup.c (ld_options): Have --sort-common take an option
522 argument.
523 (parse_args): Handle argument to --sort-common.
524 * ld.texinfo (--sort-common): Document new optional argument.
525 * NEWS: Mention new feature.
526
1a51c1a4 5272008-05-28 Christophe Lyon <christophe.lyon@st.com>
4a977a31 528
1a51c1a4
NC
529 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
530 only.
531
6ca0987a
KT
5322008-05-27 Kai Tietz <kai.tietz@onevision.com>
533
534 * pe-dll.c (fill_edata): Make sure we calculate vma's in
535 type bfd_vma.
536 (generate_reloc): Likewise.
537 (pe_implied_import_dll): Likewise.
538
45f111cc
NC
5392008-05-21 Nick Clifton <nickc@redhat.com>
540
541 PR ld/6519
542 * ld.texinfo (Orphan Sections): Mention that the linker will
543 provide start and stop symbols for orphaned sections if their
544 names are valid C identifiers.
545 * NEWS: Add an addendum to the description of the linker feature
546 for providing orphan section start and end symbols.
547
7fb9f789
NC
5482008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
549
550 * configure.in (--enable-got): New option. Handle it.
551 * configure: Regenerate.
552 * config.in: Regenerate.
553 * emultempl/m68kelf.em: (got_handling_target_default): New shell
554 variable.
555 (GOT_HANDLING_TARGET_DEFAULT): New macro.
556 (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure
557 option if one was given.
558 (got_handling): New static variable.
559 (elf_m68k_create_output_section_statements): New static function
560 implementing hook.
561 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
562 (OPTION_GOT): New macro.
563 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
564 --got option.
565 (got): New linker option.
566 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
567 for --got option.
568 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
4a977a31 569 option.
7fb9f789
NC
570 * ld.texinfo: Document --got=<type> option.
571 * gen-doc.texi: Add M68K.
572 * NEWS: Mention the new feature.
573
41911f68
NC
5742008-05-21 Evandro Menezes <evandro@yahoo.com>
575
576 PR ld/6430
577 * ld.texinfo (--sort-common): Correct documentation to indicate
578 that sorting is performed by alignment, not size, biggest
579 alignment first.
580
726150b7
NC
5812008-05-21 Christophe Lyon <christophe.lyon@st.com>
582 Nick Clifton <nickc@redhat.com>
583
584 * ld.texinfo (ARM): Document --stub-group-size=N option.
585 Move description of --pic-veneer option into the ARM section.
586 * NEWS: Mention the support for long function calls.
587
906e58ca 5882008-05-15 Christophe Lyon <christophe.lyon@st.com>
4a977a31 589
906e58ca
NC
590 * emultempl/armelf.em (build_section_lists): New function.
591 (stub_file): Define.
592 (need_laying_out): Define.
593 (group_size): Define.
594 (hook_stub_info): Define.
595 (hook_in_stub): New function.
596 (elf32_arm_add_stub_section): New function.
597 (gldarm_layout_sections_again): New function.
598 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
599 stubs for long calls if needed.
600 (arm_elf_create_output_section_statements): create stub_file bfd.
601 (arm_for_each_input_file_wrapper): New function.
602 (arm_lang_for_each_input_file): New function.
603 (lang_for_each_input_file): Define.
604 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
605 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
606 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
607 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
608 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
609 * lang.c (print_input_statement): Skip if bfd has
610 BFD_LINKER_CREATED.
611
8944f3c2
AM
6122008-05-14 Alan Modra <amodra@bigpond.net.au>
613
614 * Makefile.in: Regenerate.
615
0ead4f8d
KT
6162008-05-09 Kai Tietz <kai.tietz@onevision.com>
617
618 ld/PR6502
8944f3c2
AM
619 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
620 of long and change return type to bfd_vma.
0ead4f8d
KT
621 (definfo): Change type of address from long to bfd_vma.
622 (set_pep_value): Replace strtoul to strtoull.
623 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
8944f3c2
AM
624 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
625 ImageBase.
0ead4f8d
KT
626 (quick_reloc): Change argument address from int to bfd_size_type.
627
e7fc76dd
TT
6282008-05-08 Tom Tromey <tromey@redhat.com>
629
630 * ld.texinfo (PowerPC64 ELF64): Fix typo.
631
8374f9d4
AM
6322008-05-08 Alan Modra <amodra@bigpond.net.au>
633
634 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
635 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
636 sections at the start of ".data" and provide a symbol to locate
637 the directory of embedded spe programs.
638
8c0848b5
AM
6392008-05-08 Alan Modra <amodra@bigpond.net.au>
640
641 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
642 MAX_K.
643 (fold_binary <SEGMENT_START>): Set expld.result.section to
644 current section. Expand comment. Formatting.
645 (fold_name <DEFINED>): Set expld.result.section to current section.
646
a2cab753
NS
6472008-04-28 Nathan Sidwell <nathan@codesourcery.com>
648
649 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
650 non-load sections.
651
bec9537e
MF
6522008-04-25 Michael Frysinger <vapier@gentoo.org>
653
654 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
655 and targ_extra_emuls to elf32bfin.
656
6194aaab
L
6572008-04-23 Paolo Bonzini <bonzini@gnu.org>
658
659 * aclocal.m4: Regenerate.
660 * configure: Regenerate.
661
da6fa31a
KT
6622008-04-03 Kai Tietz <kai.tietz@onevision.com>
663
664 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
665
9be9d352
AM
6662008-04-08 Alan Modra <amodra@bigpond.net.au>
667
668 * po/POTFILES.in: Regenerate.
669
9dcc4794
AM
6702008-04-08 Alan Modra <amodra@bigpond.net.au>
671
672 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
673 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
674 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
675 (struct tflist, clean_tmp): Move.
676 (new_tmp_file): New function, extracted from..
677 (embedded_spu_file): ..here.
678 (spu_elf_open_overlay_script, spu_elf_relink): New function.
679 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
680 Warn on --auto-overlay and zero local store.
681 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
682 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
683 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
684 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
685 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
686 (PARSE_AND_LIST_OPTIONS): Likewise.
687 (PARSE_AND_LIST_ARGS_CASES): Likewise.
688 (LDEMUL_CHOOSE_TARGET): Define.
689
5f69259e
KT
6902008-04-03 Kai Tietz <kai.tietz@onevision.com>
691
692 PR ld/6026
693 * pe-dll.c (make_head): Fix iat and thunk addend offset.
694
95f0efb9
NC
6952008-03-31 Nick Clifton <nickc@redhat.com>
696
697 * po/fr.po: Updated French translation.
698
f36d5d55
ILT
6992008-03-24 Ian Lance Taylor <iant@google.com>
700
701 The sha1 code is now in libiberty.
702 * sha1.c: Remove.
703 * sha1.h: Remove.
704 * Makefile.am (CFILES): Remove sha1.c.
705 (HFILES): Remove sha1.h.
706 (OFILES): Remove sha1.o.
707 (ld_new_SOURCES): Remove sha1.c.
708 (sha1.o): Remove target.
709 * Makefile.in: Rebuild.
710
c65be8d7
AM
7112008-03-20 Alan Modra <amodra@bigpond.net.au>
712
713 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
714
58c85be7
RW
7152008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
716
717 * aclocal.m4: Regenerate.
718 * configure: Likewise.
719 * Makefile.in: Likewise.
720
771a9c5f
AM
7212008-03-14 Alan Modra <amodra@bigpond.net.au>
722
723 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
724 spu_elf_build_stubs with is_spu_target.
725
50e7d84b
AM
7262008-03-13 Alan Modra <amodra@bigpond.net.au>
727
728 * Makefile.am: Run "make dep-am".
729 * Makefile.in: Regenerate.
730 * configure: Regenerate.
731
9e448631
NC
7322008-03-06 Joseph Myers <joseph@codesourcery.com>
733 Roman Zippel <zippel@linux-m68k.org>
734
735 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
736 (COMMONPAGESIZE): Define.
737
07dfcf38
NC
7382008-02-22 Nick Clifton <nickc@redhat.com>
739
740 PR ld/5785
741 * ldlang.c (lang_size_sections_1): Honour the setting of an
742 lma_region even if there is no vma region set, or the vma region
743 is the same as the lma region.
744
b34c1498
NC
7452008-02-18 Nick Clifton <nickc@redhat.com>
746
747 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
748 relocatable link.
749 * scripttempl/elf32cr16.sc: Likewise.
750 * scripttempl/elf32cr16c.sc: Likewise.
751 * scripttempl/elf32crx.sc: Likewise.
752 * scripttempl/elf32sh-symbian.sc: Likewise.
753 * scripttempl/elf_chaos.sc: Likewise.
754 * scripttempl/elfd10v.sc: Likewise.
755 * scripttempl/elfi370.sc: Likewise.
756 * scripttempl/elfm68hc11.sc: Likewise.
757 * scripttempl/elfm68hc12.sc: Likewise.
758 * scripttempl/ip2k.sc: Likewise.
759 * scripttempl/iq2000.sc: Likewise.
760 * scripttempl/mep.sc: Likewise.
761 * scripttempl/v850.sc: Likewise.
762 * scripttempl/xstormy16.sc: Likewise.
763
819da74e
AM
7642008-02-16 Alan Modra <amodra@bigpond.net.au>
765
766 PR ld/5761
767 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
768 load_base before calling make_abs.
769
5503fea1
AM
7702008-02-15 Alan Modra <amodra@bigpond.net.au>
771
772 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
773 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
774 Likewise.
775 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
776 Likewise.
777 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
778 uses with..
779 (is_ppc_elf): ..this new macro.
780
f13a99db
AM
7812008-02-15 Alan Modra <amodra@bigpond.net.au>
782
783 * ldmain.h (output_bfd): Delete.
784 * ldmain.c (output_bfd): Delete.
785 Replace all occurrences of output_bfd with link_info.output_bfd.
786 * ldcref.c: Likewise.
787 * ldctor.c: Likewise.
788 * ldemul.c: Likewise.
789 * ldexp.c: Likewise.
790 * ldfile.c: Likewise.
791 * ldlang.c: Likewise.
792 * ldmisc.c: Likewise.
793 * ldwrite.c: Likewise.
794 * pe-dll.c: Likewise.
795 * emultempl/aix.em: Likewise.
796 * emultempl/alphaelf.em: Likewise.
797 * emultempl/armcoff.em: Likewise.
798 * emultempl/armelf.em: Likewise.
799 * emultempl/avrelf.em: Likewise.
800 * emultempl/beos.em: Likewise.
801 * emultempl/elf-generic.em: Likewise.
802 * emultempl/elf32.em: Likewise.
803 * emultempl/gld960.em: Likewise.
804 * emultempl/hppaelf.em: Likewise.
805 * emultempl/irix.em: Likewise.
806 * emultempl/linux.em: Likewise.
807 * emultempl/lnk960.em: Likewise.
808 * emultempl/m68hc1xelf.em: Likewise.
809 * emultempl/mmix-elfnmmo.em: Likewise.
810 * emultempl/mmo.em: Likewise.
811 * emultempl/pe.em: Likewise.
812 * emultempl/pep.em: Likewise.
813 * emultempl/ppc32elf.em: Likewise.
814 * emultempl/ppc64elf.em: Likewise.
815 * emultempl/scoreelf.em: Likewise.
816 * emultempl/sh64elf.em: Likewise.
817 * emultempl/spuelf.em: Likewise.
818 * emultempl/sunos.em: Likewise.
819 * emultempl/vanilla.em: Likewise.
820 * emultempl/vxworks.em: Likewise.
821 * emultempl/xtensaelf.em: Likewise.
822 * emultempl/z80.em: Likewise.
823 * ldlang.c (open_output): Don't return output, instead write
824 link_info_output_bfd directly.
825 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
826 with link_info.output_bfd->xvec.
827 * emultempl/hppaelf.em: Likewise.
828 * emultempl/ppc32elf.em: Likewise.
829 * emultempl/ppc64elf.em: Likewise.
830 * emultempl/spuelf.em: Likewise.
831
ff7a0acf
AM
8322008-02-07 Alan Modra <amodra@bigpond.net.au>
833
834 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
835 * ldfile.c (ldfile_add_library_path): Likewise.
836 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
837 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
838 * emultempl/spuelf.em (embedded_spu_file): Likewise.
839
2e444bea
AM
8402008-02-07 Alan Modra <amodra@bigpond.net.au>
841
842 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
843 a "present" bit rather than low bit of .buf. Correct indexing
844 into _ovly_buf_table. Use relative loads and stores to access
845 overlay manager local vars.
846 * emultempl/spu_ovl.o: Regenerate.
847
bb8541b9
L
8482008-02-04 H.J. Lu <hongjiu.lu@intel.com>
849
850 PR 5715
851 * configure: Regenerated.
852
f8a52b59
BW
8532008-01-31 Marc Gauthier <marc@tensilica.com>
854
855 * configure.tgt (xtensa*-*-*): Recognize processor variants.
856
00b2bfc1
NC
8572008-01-28 Fabian Groffen <grobian@gentoo.org>
858
859 * configure.tgt (x86_64-*-solaris2): Add support for this target.
860
6e73d595
NC
8612008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
862
863 PR ld/5652
864 * genscripts.sh: Check for the existence of BASH_LINENO not just
865 the BASH shell before generating line numbers in the emulation
866 file.
867
47f6dab9
AM
8682008-01-28 Alan Modra <amodra@bigpond.net.au>
869
870 * emultempl/spu_ovl.S: Rewrite.
871 * emultempl/spu_ovl.o: Regenerate.
872 * emultempl/spuelf.em (toe): Delete.
873 (spu_place_special_section): Add param to control section placement.
874 Adjust callers.
875 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
876 changes.
877 (spu_before_allocation): Adjust spu_elf_size_stubs call.
878 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
879
29183214
L
8802008-01-25 H.J. Lu <hongjiu.lu@intel.com>
881
882 PR ld/5670
883 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
884 warning.
885
53d25da6
AM
8862008-01-25 Alan Modra <amodra@bigpond.net.au>
887
888 * ld.texinfo (INSERT): Describe.
889 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
890 (INSERT_K, AFTER, BEFORE): Add as tokens.
891 (ifile_p1): Handle INSERT statements.
892 (saved_script_handle, force_make_executable): Move to..
893 * ldmain.c: ..here.
894 (previous_script_handle): New global var.
895 * ldmain.h (saved_script_handle, force_make_executable): Declare.
896 (previous_script_handle): Likewise.
897 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
898 * lexsup.c (parge_args <-T>): Set previous_script_handle.
899 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
900 (map_input_to_output_sections, print_statement): Likewise.
901 (lang_size_sections_1, lang_do_assignments_1): Likewise.
902 (insert_os_after): New function, extracted from..
903 (lang_insert_orphan): ..here.
904 (process_insert_statements): New function.
905 (lang_process): Call it.
906 (lang_add_insert): New function.
907 * ldlang.h (lang_insert_statement_enum): New.
908 (lang_insert_statement_type): New.
909 (lang_statement_union_type): Add insert_statement.
910 (lang_add_insert): Declare.
911
c19f06f2
BW
9122008-01-18 Bob Wilson <bob.wilson@acm.org>
913
914 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
915 changes from elf.sc.
8944f3c2 916
14ac84b4
AM
9172008-01-16 Alan Modra <amodra@bigpond.net.au>
918
919 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
920
3d00b095
AM
9212008-01-16 Alan Modra <amodra@bigpond.net.au>
922
923 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
924 (lang_afile_asection_pair_statement_type): Delete.
925 (lang_statement_union_type): Delete afile_asection_pair_statement.
926 * ldlang.c (lang_insert_orphan): Delete case handling the above.
927 (map_input_to_output_sections, print_statement): Likewise.
928
58da7b1b
KK
9292008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
930
931 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
932 with __data_start.
933 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
934
74f0fb50
AM
9352008-01-15 Alan Modra <amodra@bigpond.net.au>
936
937 PR 5604
938 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
939 syms to _bfd_elf_gc_keep.
940 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
941 ppc64_elf_edit_opd if no_opd_opt.
942
ac69cbc6
TG
9432008-01-11 Tristan Gingold <gingold@adacore.com>
944 Eric Botcazou <ebotcazou@adacore.com>
945
946 * ldlang.c (lang_end): Warns if the entry point is not found when
947 --gc-sections.
948 Emit an error if no root is specified when --gc-sections -r.
949 * ld.texinfo (Options): Document that --gc-sections is compatible
950 with -r and -q.
951 * ldmain.c (main): Do not error out if -r and --gc-sections.
952 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
953
71934f94
NC
9542008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
955
956 PR ld/5533
957 * ldlang.c (lang_end): Issue a warning for a missing start symbol
958 of a shared library if the symbol was specified on the command
959 line.
960
d5465ba2
AM
9612008-01-10 Alan Modra <amodra@bigpond.net.au>
962
963 * ld.texinfo (--gc-sections): Describe linker behaviour.
964
6c7ac64e 965For older changes see ChangeLog-2007
252b5132
RH
966\f
967Local Variables:
968mode: change-log
969left-margin: 8
970fill-column: 74
971version-control: never
972End:
This page took 0.491861 seconds and 4 git commands to generate.