OSDN Git Service

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