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