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