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