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