]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/ChangeLog
Add AVR architectures avr25, avr31, avr35, and avr51 to match GCC.
[thirdparty/binutils-gdb.git] / ld / ChangeLog
1 2008-08-08 Anatoly Sokolov <aesok@post.ru>
2
3 * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
4 and eavr51.o.
5 Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
6 * Makefile.in: Regenerate.
7 * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
8 and avr51.
9 * emulparams/avr25.sh: New file.
10 * emulparams/avr31.sh: New file.
11 * emulparams/avr35.sh: New file.
12 * emulparams/avr51.sh: New file.
13
14 2008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
15 Daniel Jacobowitz <dan@codesourcery.com>
16
17 * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
18 (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
19 two variables.
20 * emulparams/elf32bmipn32-defs.sh: Likewise.
21 * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
22 (is_mips_elf): New macro.
23 (stub_file, stub_bfd): New variables.
24 (hook_stub_info): New structure.
25 (hook_in_stub): New function.
26 (mips_add_stub_section): Likewise.
27 (mips_create_output_section_statements): Likewise.
28 (mips_before_allocation): Likewise.
29 (real_func): New variable.
30 (mips_for_each_input_file_wrapper): New function.
31 (mips_lang_for_each_input_file): Likewise.
32 (lang_for_each_input_file): Define.
33 (LDEMUL_BEFORE_ALLOCATION): Likewise.
34 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.
35
36 2008-08-08 Alan Modra <amodra@bigpond.net.au>
37
38 * ldfile.c (ldfile_open_file_search): Use concat.
39 (try_open): Don't use a fixed size pathname buffer.
40 (ldfile_find_command_file): Likewise.
41 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If
42 using EXTRA_SHLIB_EXTENSION, don't open twice.
43
44 2008-08-04 Alan Modra <amodra@bigpond.net.au>
45
46 * Makefile.am (POTFILES.in): Set LC_ALL=C.
47 * Makefile.in: Regenerate.
48 * po/POTFILES.in: Regenerate.
49
50 2008-08-03 Alan Modra <amodra@bigpond.net.au>
51
52 * Makefile.am (spu_ovl.o): Merge rule into..
53 (spu_ovl.o_c): ..this one. Only run cpp for spu target.
54 * Makefile.in: Regenerate.
55
56 2008-08-02 Jan Kratochvil <jan.kratochvil@redhat.com>
57
58 Include the spu_ovl ASCII form in the repository files.
59 * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'.
60 * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'.
61 ($(srcdir)/emultempl/spu_ovl.o_c): New target.
62 ($(srcdir)/emultempl/spu_ovl.o): Rename to...
63 (spu_ovl.o): ...this one.
64 * Makefile.in: Regenerate.
65 * emultempl/spu_ovl.o_c: New file.
66 * emultempl/spu_ovl.o: File removed.
67
68 2008-07-31 Takashi Ono <t_ono@hkfreak.net>
69
70 * pe-dll.c (generate_relocs): Don't generate relocs for
71 undefined weak symbols.
72
73 2008-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
74
75 * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
76
77 2008-07-30 Alan Modra <amodra@bigpond.net.au>
78
79 * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
80
81 2008-07-18 Joseph Myers <joseph@codesourcery.com>
82
83 * ld.texinfo (--no-wchar-size-warning): Document new ARM option.
84 * emultempl/armelf.em (no_wchar_size_warning): New.
85 (arm_elf_create_output_section_statements): Pass
86 no_wchar_size_warning to arm_elf_create_output_section_statements.
87 (OPTION_NO_WCHAR_SIZE_WARNING): New.
88 (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
89 (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
90 (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.
91
92 2008-07-15 Jie Zhang <jie.zhang@analog.com>
93
94 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
95
96 2008-07-12 Craig Silverstein <csilvers@google.com>
97
98 PR ld/6741
99 * configure.in: Check for, and include, libz.a if it is present.
100 * configure: Regenerate.
101 * config.in: Regenerate.
102
103 2008-07-12 Jie Zhang <jie.zhang@analog.com>
104
105 Revert
106 2008-07-12 Jie Zhang <jie.zhang@analog.com>
107 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
108 (eelf32bfinfd.c): Likewise.
109 * Makefile.in: Regenerate.
110 * gen-doc.texi: Set Blackfin.
111 * ld.texinfo: Document --sep-code and Blackfin specific
112 options.
113 * ldmain.c (main): Initialize link_info.sep_code.
114 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
115 (ld_options[]): Add --sep-code.
116 (parse_args): Deal with --sep-code.
117 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
118 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
119 * emultempl/bfin.em: New file.
120
121 2008-07-12 Jie Zhang <jie.zhang@analog.com>
122
123 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
124 (eelf32bfinfd.c): Likewise.
125 * Makefile.in: Regenerate.
126 * gen-doc.texi: Set Blackfin.
127 * ld.texinfo: Document --sep-code and Blackfin specific
128 options.
129 * ldmain.c (main): Initialize link_info.sep_code.
130 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
131 (ld_options[]): Add --sep-code.
132 (parse_args): Deal with --sep-code.
133 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
134 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
135 * emultempl/bfin.em: New file.
136
137 2008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
138
139 *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
140 starting with ".".
141 Exclude "_IMPORT_DESCRIPTOR_".
142 (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
143 (autofilter_symbollist_generic): Don't check for ".text".
144 Exclude "_NULL_IMPORT_DESCRIPTOR".
145 (autofilter_symbollist_i386): Likewise.
146
147 2008-07-07 Alan Modra <amodra@bigpond.net.au>
148
149 * emultempl/armelf.em (elf32_arm_add_stub_section): Use
150 bfd_make_section_with_flags.
151 * emultempl/avrelf.em (avr_elf_create_output_section_statements):
152 Likewise.
153 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
154 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
155 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
156 * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
157 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
158 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
159 Likewise.
160
161 2008-07-06 Nathan Sidwell <nathan@codesourcery.com>
162
163 * ld.texinfo (File Commands): Document that INCLUDE can be used in
164 several different places.
165 * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
166 (memory, memory_spec_list): Simplify BNF
167 (memory_spec_list_opt): New rule.
168 * ldlex.l (INCLUDE): Recognize in EXPRESSION.
169
170 2008-06-20 Alan Modra <amodra@bigpond.net.au>
171
172 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
173 build overlay stubs" a fatal error.
174
175 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
176
177 * config.in: Regenerate.
178 * configure: Regenerate.
179
180 2008-06-17 Alan Modra <amodra@bigpond.net.au>
181
182 * emultempl/spuelf.em (extra_stack_space): New variable.
183 (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
184 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
185 PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
186 * emultempl/spu_ovl.S: Mask interrupts during dma and update of
187 overlay manager structures.
188 * emultempl/spu_ovl.o: Regenerate.
189
190 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
191
192 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
193 mention it as being special for global symbols.
194
195 2008-06-12 Nick Clifton <nickc@redhat.com>
196
197 * ldlang.c (print_output_section_statement): If the output section
198 statement has an update_dot_tree expression, apply it to
199 print_dot.
200 (print_input_section): Do not update print_dot if it would move
201 print_dot backwards.
202 (lang_do_assignments_1): If the output section statement has an
203 update_dot_tree expression apply it to dot.
204
205 2008-06-07 Alan Modra <amodra@bigpond.net.au>
206
207 * NEWS: Mention archive:path patterns.
208 * ld.texinfo: Likewise.
209 * ldlang.c: Formatting throughout.
210 (archive_path): Only assume "[A-Za-z]:" is a dos drive.
211 (input_statement_is_archive_path): New function, extracted from..
212 (walk_wild): ..here.
213 (walk_wild_consider_section): Match archive:path here too.
214 (init_map_userdata, sort_def_symbol): Convert to ISO C.
215 * ldmain.c (main): Set link_info.path_separator.
216 * emultempl/spuelf.em (choose_target): Don't set it here.
217
218 2008-06-06 Alan Modra <amodra@bigpond.net.au>
219
220 * ldlang.c (name_match): New function.
221 (unique_section_p, walk_wild_consider_section): Use it here.
222 (walk_wild_section_general): And here.
223 (archive_path): New function.
224 (walk_wild): Match archive:path filespecs.
225 (open_input_bfds): Don't load archive:path files.
226 * emultempl/spuelf.em (choose_target): Set path_separator.
227 * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
228
229 2008-06-04 Nick Clifton <nickc@redhat.com>
230
231 * ld.texinfo (Orphan Sections): Fix texi typo.
232
233 2008-06-04 Chris Metcalf <cmetcalf@tilera.com>
234
235 * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
236 (ld_options): Add entry for --no-fatal-warnings.
237 (parse_args): Handle OPTION_NO_WARN_FATAL.
238 * ld.texinfo (Options): Document new command line switch.
239
240 2008-06-04 Alan Modra <amodra@bigpond.net.au>
241
242 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
243
244 2008-06-02 Nathan Sidwell <nathan@codesourcery.com>
245
246 * ldlang.c (closest_target_match): Skip generic big and little
247 endian ELF targets.
248
249 2008-05-31 Evandro Menezes <evandro@yahoo.com>
250
251 PR ld/6430
252 * ld.h (enum sort_order): New.
253 * ldlang.c (lang_check: Fix comment.
254 (lang_common): Sort commons in ascending or descending order.
255 (lang_one_common): Likewise.
256 * lexsup.c (ld_options): Have --sort-common take an option
257 argument.
258 (parse_args): Handle argument to --sort-common.
259 * ld.texinfo (--sort-common): Document new optional argument.
260 * NEWS: Mention new feature.
261
262 2008-05-28 Christophe Lyon <christophe.lyon@st.com>
263
264 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
265 only.
266
267 2008-05-27 Kai Tietz <kai.tietz@onevision.com>
268
269 * pe-dll.c (fill_edata): Make sure we calculate vma's in
270 type bfd_vma.
271 (generate_reloc): Likewise.
272 (pe_implied_import_dll): Likewise.
273
274 2008-05-21 Nick Clifton <nickc@redhat.com>
275
276 PR ld/6519
277 * ld.texinfo (Orphan Sections): Mention that the linker will
278 provide start and stop symbols for orphaned sections if their
279 names are valid C identifiers.
280 * NEWS: Add an addendum to the description of the linker feature
281 for providing orphan section start and end symbols.
282
283 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
284
285 * configure.in (--enable-got): New option. Handle it.
286 * configure: Regenerate.
287 * config.in: Regenerate.
288 * emultempl/m68kelf.em: (got_handling_target_default): New shell
289 variable.
290 (GOT_HANDLING_TARGET_DEFAULT): New macro.
291 (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure
292 option if one was given.
293 (got_handling): New static variable.
294 (elf_m68k_create_output_section_statements): New static function
295 implementing hook.
296 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
297 (OPTION_GOT): New macro.
298 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
299 --got option.
300 (got): New linker option.
301 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
302 for --got option.
303 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
304 option.
305 * ld.texinfo: Document --got=<type> option.
306 * gen-doc.texi: Add M68K.
307 * NEWS: Mention the new feature.
308
309 2008-05-21 Evandro Menezes <evandro@yahoo.com>
310
311 PR ld/6430
312 * ld.texinfo (--sort-common): Correct documentation to indicate
313 that sorting is performed by alignment, not size, biggest
314 alignment first.
315
316 2008-05-21 Christophe Lyon <christophe.lyon@st.com>
317 Nick Clifton <nickc@redhat.com>
318
319 * ld.texinfo (ARM): Document --stub-group-size=N option.
320 Move description of --pic-veneer option into the ARM section.
321 * NEWS: Mention the support for long function calls.
322
323 2008-05-15 Christophe Lyon <christophe.lyon@st.com>
324
325 * emultempl/armelf.em (build_section_lists): New function.
326 (stub_file): Define.
327 (need_laying_out): Define.
328 (group_size): Define.
329 (hook_stub_info): Define.
330 (hook_in_stub): New function.
331 (elf32_arm_add_stub_section): New function.
332 (gldarm_layout_sections_again): New function.
333 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
334 stubs for long calls if needed.
335 (arm_elf_create_output_section_statements): create stub_file bfd.
336 (arm_for_each_input_file_wrapper): New function.
337 (arm_lang_for_each_input_file): New function.
338 (lang_for_each_input_file): Define.
339 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
340 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
341 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
342 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
343 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
344 * lang.c (print_input_statement): Skip if bfd has
345 BFD_LINKER_CREATED.
346
347 2008-05-14 Alan Modra <amodra@bigpond.net.au>
348
349 * Makefile.in: Regenerate.
350
351 2008-05-09 Kai Tietz <kai.tietz@onevision.com>
352
353 ld/PR6502
354 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
355 of long and change return type to bfd_vma.
356 (definfo): Change type of address from long to bfd_vma.
357 (set_pep_value): Replace strtoul to strtoull.
358 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
359 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
360 ImageBase.
361 (quick_reloc): Change argument address from int to bfd_size_type.
362
363 2008-05-08 Tom Tromey <tromey@redhat.com>
364
365 * ld.texinfo (PowerPC64 ELF64): Fix typo.
366
367 2008-05-08 Alan Modra <amodra@bigpond.net.au>
368
369 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
370 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
371 sections at the start of ".data" and provide a symbol to locate
372 the directory of embedded spe programs.
373
374 2008-05-08 Alan Modra <amodra@bigpond.net.au>
375
376 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
377 MAX_K.
378 (fold_binary <SEGMENT_START>): Set expld.result.section to
379 current section. Expand comment. Formatting.
380 (fold_name <DEFINED>): Set expld.result.section to current section.
381
382 2008-04-28 Nathan Sidwell <nathan@codesourcery.com>
383
384 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
385 non-load sections.
386
387 2008-04-25 Michael Frysinger <vapier@gentoo.org>
388
389 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
390 and targ_extra_emuls to elf32bfin.
391
392 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
393
394 * aclocal.m4: Regenerate.
395 * configure: Regenerate.
396
397 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
398
399 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
400
401 2008-04-08 Alan Modra <amodra@bigpond.net.au>
402
403 * po/POTFILES.in: Regenerate.
404
405 2008-04-08 Alan Modra <amodra@bigpond.net.au>
406
407 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
408 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
409 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
410 (struct tflist, clean_tmp): Move.
411 (new_tmp_file): New function, extracted from..
412 (embedded_spu_file): ..here.
413 (spu_elf_open_overlay_script, spu_elf_relink): New function.
414 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
415 Warn on --auto-overlay and zero local store.
416 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
417 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
418 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
419 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
420 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
421 (PARSE_AND_LIST_OPTIONS): Likewise.
422 (PARSE_AND_LIST_ARGS_CASES): Likewise.
423 (LDEMUL_CHOOSE_TARGET): Define.
424
425 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
426
427 PR ld/6026
428 * pe-dll.c (make_head): Fix iat and thunk addend offset.
429
430 2008-03-31 Nick Clifton <nickc@redhat.com>
431
432 * po/fr.po: Updated French translation.
433
434 2008-03-24 Ian Lance Taylor <iant@google.com>
435
436 The sha1 code is now in libiberty.
437 * sha1.c: Remove.
438 * sha1.h: Remove.
439 * Makefile.am (CFILES): Remove sha1.c.
440 (HFILES): Remove sha1.h.
441 (OFILES): Remove sha1.o.
442 (ld_new_SOURCES): Remove sha1.c.
443 (sha1.o): Remove target.
444 * Makefile.in: Rebuild.
445
446 2008-03-20 Alan Modra <amodra@bigpond.net.au>
447
448 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
449
450 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
451
452 * aclocal.m4: Regenerate.
453 * configure: Likewise.
454 * Makefile.in: Likewise.
455
456 2008-03-14 Alan Modra <amodra@bigpond.net.au>
457
458 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
459 spu_elf_build_stubs with is_spu_target.
460
461 2008-03-13 Alan Modra <amodra@bigpond.net.au>
462
463 * Makefile.am: Run "make dep-am".
464 * Makefile.in: Regenerate.
465 * configure: Regenerate.
466
467 2008-03-06 Joseph Myers <joseph@codesourcery.com>
468 Roman Zippel <zippel@linux-m68k.org>
469
470 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
471 (COMMONPAGESIZE): Define.
472
473 2008-02-22 Nick Clifton <nickc@redhat.com>
474
475 PR ld/5785
476 * ldlang.c (lang_size_sections_1): Honour the setting of an
477 lma_region even if there is no vma region set, or the vma region
478 is the same as the lma region.
479
480 2008-02-18 Nick Clifton <nickc@redhat.com>
481
482 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
483 relocatable link.
484 * scripttempl/elf32cr16.sc: Likewise.
485 * scripttempl/elf32cr16c.sc: Likewise.
486 * scripttempl/elf32crx.sc: Likewise.
487 * scripttempl/elf32sh-symbian.sc: Likewise.
488 * scripttempl/elf_chaos.sc: Likewise.
489 * scripttempl/elfd10v.sc: Likewise.
490 * scripttempl/elfi370.sc: Likewise.
491 * scripttempl/elfm68hc11.sc: Likewise.
492 * scripttempl/elfm68hc12.sc: Likewise.
493 * scripttempl/ip2k.sc: Likewise.
494 * scripttempl/iq2000.sc: Likewise.
495 * scripttempl/mep.sc: Likewise.
496 * scripttempl/v850.sc: Likewise.
497 * scripttempl/xstormy16.sc: Likewise.
498
499 2008-02-16 Alan Modra <amodra@bigpond.net.au>
500
501 PR ld/5761
502 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
503 load_base before calling make_abs.
504
505 2008-02-15 Alan Modra <amodra@bigpond.net.au>
506
507 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
508 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
509 Likewise.
510 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
511 Likewise.
512 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
513 uses with..
514 (is_ppc_elf): ..this new macro.
515
516 2008-02-15 Alan Modra <amodra@bigpond.net.au>
517
518 * ldmain.h (output_bfd): Delete.
519 * ldmain.c (output_bfd): Delete.
520 Replace all occurrences of output_bfd with link_info.output_bfd.
521 * ldcref.c: Likewise.
522 * ldctor.c: Likewise.
523 * ldemul.c: Likewise.
524 * ldexp.c: Likewise.
525 * ldfile.c: Likewise.
526 * ldlang.c: Likewise.
527 * ldmisc.c: Likewise.
528 * ldwrite.c: Likewise.
529 * pe-dll.c: Likewise.
530 * emultempl/aix.em: Likewise.
531 * emultempl/alphaelf.em: Likewise.
532 * emultempl/armcoff.em: Likewise.
533 * emultempl/armelf.em: Likewise.
534 * emultempl/avrelf.em: Likewise.
535 * emultempl/beos.em: Likewise.
536 * emultempl/elf-generic.em: Likewise.
537 * emultempl/elf32.em: Likewise.
538 * emultempl/gld960.em: Likewise.
539 * emultempl/hppaelf.em: Likewise.
540 * emultempl/irix.em: Likewise.
541 * emultempl/linux.em: Likewise.
542 * emultempl/lnk960.em: Likewise.
543 * emultempl/m68hc1xelf.em: Likewise.
544 * emultempl/mmix-elfnmmo.em: Likewise.
545 * emultempl/mmo.em: Likewise.
546 * emultempl/pe.em: Likewise.
547 * emultempl/pep.em: Likewise.
548 * emultempl/ppc32elf.em: Likewise.
549 * emultempl/ppc64elf.em: Likewise.
550 * emultempl/scoreelf.em: Likewise.
551 * emultempl/sh64elf.em: Likewise.
552 * emultempl/spuelf.em: Likewise.
553 * emultempl/sunos.em: Likewise.
554 * emultempl/vanilla.em: Likewise.
555 * emultempl/vxworks.em: Likewise.
556 * emultempl/xtensaelf.em: Likewise.
557 * emultempl/z80.em: Likewise.
558 * ldlang.c (open_output): Don't return output, instead write
559 link_info_output_bfd directly.
560 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
561 with link_info.output_bfd->xvec.
562 * emultempl/hppaelf.em: Likewise.
563 * emultempl/ppc32elf.em: Likewise.
564 * emultempl/ppc64elf.em: Likewise.
565 * emultempl/spuelf.em: Likewise.
566
567 2008-02-07 Alan Modra <amodra@bigpond.net.au>
568
569 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
570 * ldfile.c (ldfile_add_library_path): Likewise.
571 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
572 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
573 * emultempl/spuelf.em (embedded_spu_file): Likewise.
574
575 2008-02-07 Alan Modra <amodra@bigpond.net.au>
576
577 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
578 a "present" bit rather than low bit of .buf. Correct indexing
579 into _ovly_buf_table. Use relative loads and stores to access
580 overlay manager local vars.
581 * emultempl/spu_ovl.o: Regenerate.
582
583 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
584
585 PR 5715
586 * configure: Regenerated.
587
588 2008-01-31 Marc Gauthier <marc@tensilica.com>
589
590 * configure.tgt (xtensa*-*-*): Recognize processor variants.
591
592 2008-01-28 Fabian Groffen <grobian@gentoo.org>
593
594 * configure.tgt (x86_64-*-solaris2): Add support for this target.
595
596 2008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
597
598 PR ld/5652
599 * genscripts.sh: Check for the existence of BASH_LINENO not just
600 the BASH shell before generating line numbers in the emulation
601 file.
602
603 2008-01-28 Alan Modra <amodra@bigpond.net.au>
604
605 * emultempl/spu_ovl.S: Rewrite.
606 * emultempl/spu_ovl.o: Regenerate.
607 * emultempl/spuelf.em (toe): Delete.
608 (spu_place_special_section): Add param to control section placement.
609 Adjust callers.
610 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
611 changes.
612 (spu_before_allocation): Adjust spu_elf_size_stubs call.
613 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
614
615 2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
616
617 PR ld/5670
618 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
619 warning.
620
621 2008-01-25 Alan Modra <amodra@bigpond.net.au>
622
623 * ld.texinfo (INSERT): Describe.
624 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
625 (INSERT_K, AFTER, BEFORE): Add as tokens.
626 (ifile_p1): Handle INSERT statements.
627 (saved_script_handle, force_make_executable): Move to..
628 * ldmain.c: ..here.
629 (previous_script_handle): New global var.
630 * ldmain.h (saved_script_handle, force_make_executable): Declare.
631 (previous_script_handle): Likewise.
632 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
633 * lexsup.c (parge_args <-T>): Set previous_script_handle.
634 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
635 (map_input_to_output_sections, print_statement): Likewise.
636 (lang_size_sections_1, lang_do_assignments_1): Likewise.
637 (insert_os_after): New function, extracted from..
638 (lang_insert_orphan): ..here.
639 (process_insert_statements): New function.
640 (lang_process): Call it.
641 (lang_add_insert): New function.
642 * ldlang.h (lang_insert_statement_enum): New.
643 (lang_insert_statement_type): New.
644 (lang_statement_union_type): Add insert_statement.
645 (lang_add_insert): Declare.
646
647 2008-01-18 Bob Wilson <bob.wilson@acm.org>
648
649 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
650 changes from elf.sc.
651
652 2008-01-16 Alan Modra <amodra@bigpond.net.au>
653
654 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
655
656 2008-01-16 Alan Modra <amodra@bigpond.net.au>
657
658 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
659 (lang_afile_asection_pair_statement_type): Delete.
660 (lang_statement_union_type): Delete afile_asection_pair_statement.
661 * ldlang.c (lang_insert_orphan): Delete case handling the above.
662 (map_input_to_output_sections, print_statement): Likewise.
663
664 2008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
665
666 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
667 with __data_start.
668 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
669
670 2008-01-15 Alan Modra <amodra@bigpond.net.au>
671
672 PR 5604
673 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
674 syms to _bfd_elf_gc_keep.
675 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
676 ppc64_elf_edit_opd if no_opd_opt.
677
678 2008-01-11 Tristan Gingold <gingold@adacore.com>
679 Eric Botcazou <ebotcazou@adacore.com>
680
681 * ldlang.c (lang_end): Warns if the entry point is not found when
682 --gc-sections.
683 Emit an error if no root is specified when --gc-sections -r.
684 * ld.texinfo (Options): Document that --gc-sections is compatible
685 with -r and -q.
686 * ldmain.c (main): Do not error out if -r and --gc-sections.
687 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
688
689 2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
690
691 PR ld/5533
692 * ldlang.c (lang_end): Issue a warning for a missing start symbol
693 of a shared library if the symbol was specified on the command
694 line.
695
696 2008-01-10 Alan Modra <amodra@bigpond.net.au>
697
698 * ld.texinfo (--gc-sections): Describe linker behaviour.
699
700 For older changes see ChangeLog-2007
701 \f
702 Local Variables:
703 mode: change-log
704 left-margin: 8
705 fill-column: 74
706 version-control: never
707 End: