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