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