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