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