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