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