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