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