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