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