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