* elflink.c (bfd_elf_final_link): Use d_ptr rather than d_val
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
8cc9115f
NC
12008-10-08 Nick Clifton <nickc@redhat.com>
2
3 * configure.in (ALL_LINGUAS): Add "id".
4 * configure: Regenerate.
5 * po/id.po: New Indonesian translation.
6
f265bc06
AM
72008-10-05 Alan Modra <amodra@bigpond.net.au>
8
9 PR 6943
10 * scripttempl/avr.sc (.bss): Set lma when relocating.
11 (.bss, .noinit): No need to set vma when relocating.
12 (.text, .bss, ,noinit): Set vma to zero when not relocating.
13
8a99a385
AM
142008-10-04 Alan Modra <amodra@bigpond.net.au>
15
16 PR 6931
17 * ldemul.c (ldemul_place_orphan): Add "constraint" param.
18 * ldemul.h (ldemul_place_orphan): Update prototype.
19 (struct ld_emulation_xfer_struct <place_orphan>): Likewise add param.
20 * ldlang.c (unique_section_p): Make static.
21 (lang_output_section_statement_lookup): Optimise creation of SPECIAL
22 sections.
23 (lang_insert_orphan): Add "constraint" param. Pass to
24 lang_enter_output_section_statement.
25 (init_os): Don't use an existing bfd section for SPECIAL sections.
26 (lang_place_orphans): Don't rename unique output sections, instead
27 mark their output section statements SPECIAL.
28 * ldlang.h (lang_insert_orphan): Update prototype.
29 (unique_section_p): Delete.
30 * emultempl/beos.em (place_orphan): Add "constraint" param.
31 * emultempl/elf32.em (place_orphan): Likewise. Don't match existing
32 output sections if set.
33 * emultempl/pe.em (place_orphan): Likewise.
34 * emultempl/pep.em (place_orphan): Likewise.
35 * emultempl/mmo.em (mmo_place_orphan): Update.
36 * emultempl/spuelf.em (spu_place_special_section): Update.
37
bcacc0f5
AM
382008-10-03 Alan Modra <amodra@bigpond.net.au>
39
e932ca37 40 PR 6931
bcacc0f5
AM
41 * ldemul.c (ldemul_place_orphan): Add "name" param.
42 * ldemul.h (ldemul_place_orphan): Update prototype.
43 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
44 * ldlang.c (lang_place_orphans): Generate unique section names here..
45 * emultempl/elf32.em (place_orphan): ..rather than here. Don't
46 directly use an existing output section statement that has no
47 bfd section.
48 * emultempl/pe.em (place_orphan): Likewise.
49 * emultempl/pep.em (place_orphan): Likewise.
50 * emultempl/beos.em (place_orphan): Adjust.
51 * emultempl/spuelf.em (spu_place_special_section): Adjust
52 place_orphan call.
53 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): New function.
54 (LDEMUL_AFTER_OPEN): Define.
55
b796d39d
JM
562008-09-30 Joseph Myers <joseph@codesourcery.com>
57
58 * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.opd
59 and .rela.branch_lt.
60
782e11fd
AM
612008-09-30 Alan Modra <amodra@bigpond.net.au>
62
63 * Makefile.am: Run "make dep-am".
64 * Makefile.in: Regenerate.
65
b214d478
SE
662008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
67 Steve Ellcey <sje@cup.hp.com>
68
69 * configure: Regenerate for new libtool.
70 * aclocal.m4: Ditto.
71 * Makefile.in: Ditto.
72
b8a48734
KT
732008-09-29 Kai Tietz <kai.tietz@onevision.com>
74
75 * pe-dll.c (make_import_fixup_entry): Make sure reloc is addend.
76
afac680a
NC
772008-09-29 Nick Clifton <nickc@redhat.com>
78
79 * po/vi.po: Updated Vietnamese translation.
80
4ac0c898
AM
812008-09-25 Alan Modra <amodra@bigpond.net.au>
82
83 * ldexp.c (fold_binary): Evaluate rhs when lhs not valid.
84
d053aef8
JK
852008-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
86
87 * configure.in: Call AC_SYS_LARGEFILE.
88 * config.in: Regenerate.
89 * configure: Regenerate.
90
44e36d8a
NC
912008-09-09 Peter Rosin <peda@lysator.liu.se> (tiny change)
92
93 * emultempl/pe.em (pe_find_data_imports): Add trailing newline
94 to warning message.
95 * emultempl/pep.em (pep_find_data_imports): Likewise.
96
25d65034
L
972008-09-08 H.J. Lu <hongjiu.lu@intel.com>
98
99 2008-09-07 Alan Modra <amodra@bigpond.net.au>
100
101 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated.
102 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Likewise.
103
6e33da12
TG
1042008-09-08 Tristan Gingold <gingold@adacore.com>
105
106 * NEWS: Add a marker for the 2.19 features.
107
66c103b7
AM
1082008-09-07 Alan Modra <amodra@bigpond.net.au>
109
110 * ldlang.h (lang_output_section_find): Define.
111 (lang_output_section_statement_lookup): Update prototype.
112 * ldlang.c (lang_output_section_find,
113 lang_output_section_statement_lookup_1): Merge into..
114 (lang_output_section_statement_lookup): ..here. Update all callers.
115 (process_insert_statements): Set constraint negative
116 for output section statements we might be inserting. Make error
117 fatal on not finding insertion section.
118 (lang_output_section_find): Rather than comparing
119 output_section_statement.constraint against -1, test whether
120 it is postive.
121 (lang_output_section_statement_lookup_1): Likewise.
122 (output_prev_sec_find, strip_excluded_output_sections): Likewise.
123 (lang_record_phdrs): Likewise.
124 * emultempl/elf32.em (output_rel_find): Likewise.
125 * NEWS: Mention INSERT.
126
8716772c
NC
1272008-08-26 Nick Clifton <nickc@redhat.com>
128
129 PR 6727
130 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all
131 input sections in all input bfds and always select the last
132 suitable one, so that interworking stubs are always processed
133 after all other input sections.
134 (arm_elf_before_allocation): Remove redundant use of
135 output_has_begun flag.
136
da594c4a
AM
1372008-08-24 Alan Modra <amodra@bigpond.net.au>
138
139 * configure.in: Update a number of obsolete autoconf macros.
140 * configure: Regenerate.
141 * aclocal.m4: Regenerate.
142
2b60860a
JK
1432008-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
144
145 PR ld/6833
146 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Do not align
147 EXPLD.DATASEG.MIN_BASE.
148 * ldlang.c (lang_size_sections): New variable OLD_BASE. Rename
149 OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'.
150 Use OLD_BASE now for the minimal base check after the base decrease by
151 the maximum alignment found.
152
5c1d2f5f
AM
1532008-08-17 Alan Modra <amodra@bigpond.net.au>
154
155 PR 6478
156 * ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols.
157 Don't free symbol pointer array.
158 (check_refs): Likewise.
159 * ldmain.c (warning_callback): Likewise.
160 * ldmisc.c (vfinfo): Likewise.
161 * pe-dll.c (process_def_file): Likewise.
162 (pe_walk_relocs_of_symbol, generate_reloc): Likewise.
163 * emultempl/pe.em (pe_find_data_imports): Likewise.
164 (gld_${EMULATION_NAME}_after_open): Likewise.
165 * emultempl/pep.em (pep_find_data_imports): Likewise.
166 (gld_${EMULATION_NAME}_after_open): Likewise.
167 * ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count,
168 passive_position, closed.
169 * ldlang.c (new_afile): Don't set asymbols and symbol_count.
170 * ldmain.c (add_archive_element): xcalloc lang_input_statement_type.
171
7357c5b6
AM
1722008-08-15 Alan Modra <amodra@bigpond.net.au>
173
174 PR 6526
175 * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
176 * Makefile.in: Regenerate.
177 * aclocal.m4: Regenerate.
178 * config.in: Regenerate.
179 * configure: Regenerate.
180
a8caa245
AM
1812008-08-09 Alan Modra <amodra@bigpond.net.au>
182
183 PR 6753
184 * ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete.
185 (main): Don't set_scripts_dir here.
186 * ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions,
187 largely based on ldmain.c versions.
188 (ldfile_find_command_file): Set up search in script dir here without
189 affecting library search.
190 * Makefile.am (ldmain.o): No need to define SCRIPTDIR.
191 (ldfile.o): New rule.
192 * Makefile.in: Regenerate.
193
7b21ac3f
EW
1942008-08-08 Anatoly Sokolov <aesok@post.ru>
195
196 * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
197 and eavr51.o.
198 Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
199 * Makefile.in: Regenerate.
200 * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
201 and avr51.
202 * emulparams/avr25.sh: New file.
203 * emulparams/avr31.sh: New file.
204 * emulparams/avr35.sh: New file.
205 * emulparams/avr51.sh: New file.
206
861fb55a
DJ
2072008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
208 Daniel Jacobowitz <dan@codesourcery.com>
209
210 * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
211 (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
212 two variables.
213 * emulparams/elf32bmipn32-defs.sh: Likewise.
214 * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
215 (is_mips_elf): New macro.
216 (stub_file, stub_bfd): New variables.
217 (hook_stub_info): New structure.
218 (hook_in_stub): New function.
219 (mips_add_stub_section): Likewise.
220 (mips_create_output_section_statements): Likewise.
221 (mips_before_allocation): Likewise.
222 (real_func): New variable.
223 (mips_for_each_input_file_wrapper): New function.
224 (mips_lang_for_each_input_file): Likewise.
225 (lang_for_each_input_file): Define.
226 (LDEMUL_BEFORE_ALLOCATION): Likewise.
227 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.
228
a26cc967
AM
2292008-08-08 Alan Modra <amodra@bigpond.net.au>
230
231 * ldfile.c (ldfile_open_file_search): Use concat.
232 (try_open): Don't use a fixed size pathname buffer.
233 (ldfile_find_command_file): Likewise.
234 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If
235 using EXTRA_SHLIB_EXTENSION, don't open twice.
236
323ee3f4
AM
2372008-08-04 Alan Modra <amodra@bigpond.net.au>
238
239 * Makefile.am (POTFILES.in): Set LC_ALL=C.
240 * Makefile.in: Regenerate.
241 * po/POTFILES.in: Regenerate.
242
cc9b841c
AM
2432008-08-03 Alan Modra <amodra@bigpond.net.au>
244
245 * Makefile.am (spu_ovl.o): Merge rule into..
246 (spu_ovl.o_c): ..this one. Only run cpp for spu target.
247 * Makefile.in: Regenerate.
248
4b64c41f
JK
2492008-08-02 Jan Kratochvil <jan.kratochvil@redhat.com>
250
251 Include the spu_ovl ASCII form in the repository files.
252 * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'.
253 * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'.
254 ($(srcdir)/emultempl/spu_ovl.o_c): New target.
255 ($(srcdir)/emultempl/spu_ovl.o): Rename to...
256 (spu_ovl.o): ...this one.
257 * Makefile.in: Regenerate.
258 * emultempl/spu_ovl.o_c: New file.
259 * emultempl/spu_ovl.o: File removed.
260
49314f87
DS
2612008-07-31 Takashi Ono <t_ono@hkfreak.net>
262
263 * pe-dll.c (generate_relocs): Don't generate relocs for
264 undefined weak symbols.
265
2f9300ef
JK
2662008-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
267
268 * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
269
0af1713e
AM
2702008-07-30 Alan Modra <amodra@bigpond.net.au>
271
272 * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
273
a9dc9481
JM
2742008-07-18 Joseph Myers <joseph@codesourcery.com>
275
276 * ld.texinfo (--no-wchar-size-warning): Document new ARM option.
277 * emultempl/armelf.em (no_wchar_size_warning): New.
278 (arm_elf_create_output_section_statements): Pass
279 no_wchar_size_warning to arm_elf_create_output_section_statements.
280 (OPTION_NO_WCHAR_SIZE_WARNING): New.
281 (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
282 (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
283 (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.
284
b0a0b978
JZ
2852008-07-15 Jie Zhang <jie.zhang@analog.com>
286
287 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
288
4474d12b
CS
2892008-07-12 Craig Silverstein <csilvers@google.com>
290
6fa08786 291 PR ld/6741
4474d12b
CS
292 * configure.in: Check for, and include, libz.a if it is present.
293 * configure: Regenerate.
294 * config.in: Regenerate.
295
1bac266e
JZ
2962008-07-12 Jie Zhang <jie.zhang@analog.com>
297
298 Revert
299 2008-07-12 Jie Zhang <jie.zhang@analog.com>
300 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
301 (eelf32bfinfd.c): Likewise.
302 * Makefile.in: Regenerate.
303 * gen-doc.texi: Set Blackfin.
304 * ld.texinfo: Document --sep-code and Blackfin specific
305 options.
306 * ldmain.c (main): Initialize link_info.sep_code.
307 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
308 (ld_options[]): Add --sep-code.
309 (parse_args): Deal with --sep-code.
310 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
311 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
312 * emultempl/bfin.em: New file.
313
8c684578
JZ
3142008-07-12 Jie Zhang <jie.zhang@analog.com>
315
316 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
317 (eelf32bfinfd.c): Likewise.
318 * Makefile.in: Regenerate.
319 * gen-doc.texi: Set Blackfin.
320 * ld.texinfo: Document --sep-code and Blackfin specific
321 options.
322 * ldmain.c (main): Initialize link_info.sep_code.
323 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
324 (ld_options[]): Add --sep-code.
325 (parse_args): Deal with --sep-code.
326 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
327 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
328 * emultempl/bfin.em: New file.
329
b92216aa
DS
3302008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
331
332 *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
333 starting with ".".
334 Exclude "_IMPORT_DESCRIPTOR_".
335 (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
336 (autofilter_symbollist_generic): Don't check for ".text".
337 Exclude "_NULL_IMPORT_DESCRIPTOR".
338 (autofilter_symbollist_i386): Likewise.
339
9795b468
AM
3402008-07-07 Alan Modra <amodra@bigpond.net.au>
341
342 * emultempl/armelf.em (elf32_arm_add_stub_section): Use
343 bfd_make_section_with_flags.
344 * emultempl/avrelf.em (avr_elf_create_output_section_statements):
345 Likewise.
346 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
347 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
348 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
349 * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
350 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
351 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
352 Likewise.
353
4006703d
NS
3542008-07-06 Nathan Sidwell <nathan@codesourcery.com>
355
356 * ld.texinfo (File Commands): Document that INCLUDE can be used in
357 several different places.
358 * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
359 (memory, memory_spec_list): Simplify BNF
360 (memory_spec_list_opt): New rule.
361 * ldlex.l (INCLUDE): Recognize in EXPRESSION.
362
9f1a3ddf
AM
3632008-06-20 Alan Modra <amodra@bigpond.net.au>
364
365 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
366 build overlay stubs" a fatal error.
367
7a283e07
RW
3682008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
369
370 * config.in: Regenerate.
371 * configure: Regenerate.
372
99302af9
AM
3732008-06-17 Alan Modra <amodra@bigpond.net.au>
374
375 * emultempl/spuelf.em (extra_stack_space): New variable.
376 (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
377 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
378 PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
379 * emultempl/spu_ovl.S: Mask interrupts during dma and update of
380 overlay manager structures.
381 * emultempl/spu_ovl.o: Regenerate.
382
7a2de473
HPN
3832008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
384
385 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
386 mention it as being special for global symbols.
387
5590fba9
NC
3882008-06-12 Nick Clifton <nickc@redhat.com>
389
390 * ldlang.c (print_output_section_statement): If the output section
391 statement has an update_dot_tree expression, apply it to
392 print_dot.
393 (print_input_section): Do not update print_dot if it would move
394 print_dot backwards.
395 (lang_do_assignments_1): If the output section statement has an
396 update_dot_tree expression apply it to dot.
397
967928e9
AM
3982008-06-07 Alan Modra <amodra@bigpond.net.au>
399
400 * NEWS: Mention archive:path patterns.
401 * ld.texinfo: Likewise.
402 * ldlang.c: Formatting throughout.
403 (archive_path): Only assume "[A-Za-z]:" is a dos drive.
404 (input_statement_is_archive_path): New function, extracted from..
405 (walk_wild): ..here.
406 (walk_wild_consider_section): Match archive:path here too.
407 (init_map_userdata, sort_def_symbol): Convert to ISO C.
408 * ldmain.c (main): Set link_info.path_separator.
409 * emultempl/spuelf.em (choose_target): Don't set it here.
410
97407faf
AM
4112008-06-06 Alan Modra <amodra@bigpond.net.au>
412
413 * ldlang.c (name_match): New function.
414 (unique_section_p, walk_wild_consider_section): Use it here.
415 (walk_wild_section_general): And here.
416 (archive_path): New function.
417 (walk_wild): Match archive:path filespecs.
418 (open_input_bfds): Don't load archive:path files.
419 * emultempl/spuelf.em (choose_target): Set path_separator.
420 * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
421
a61ca861
NC
4222008-06-04 Nick Clifton <nickc@redhat.com>
423
424 * ld.texinfo (Orphan Sections): Fix texi typo.
425
0fe58ccd
NC
4262008-06-04 Chris Metcalf <cmetcalf@tilera.com>
427
428 * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
429 (ld_options): Add entry for --no-fatal-warnings.
430 (parse_args): Handle OPTION_NO_WARN_FATAL.
431 * ld.texinfo (Options): Document new command line switch.
432
d77ec871
AM
4332008-06-04 Alan Modra <amodra@bigpond.net.au>
434
435 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
436
476d8a22
NC
4372008-06-02 Nathan Sidwell <nathan@codesourcery.com>
438
439 * ldlang.c (closest_target_match): Skip generic big and little
440 endian ELF targets.
441
de7dd2bd
NC
4422008-05-31 Evandro Menezes <evandro@yahoo.com>
443
444 PR ld/6430
445 * ld.h (enum sort_order): New.
446 * ldlang.c (lang_check: Fix comment.
447 (lang_common): Sort commons in ascending or descending order.
448 (lang_one_common): Likewise.
449 * lexsup.c (ld_options): Have --sort-common take an option
450 argument.
451 (parse_args): Handle argument to --sort-common.
452 * ld.texinfo (--sort-common): Document new optional argument.
453 * NEWS: Mention new feature.
454
1a51c1a4
NC
4552008-05-28 Christophe Lyon <christophe.lyon@st.com>
456
457 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
458 only.
459
6ca0987a
KT
4602008-05-27 Kai Tietz <kai.tietz@onevision.com>
461
462 * pe-dll.c (fill_edata): Make sure we calculate vma's in
463 type bfd_vma.
464 (generate_reloc): Likewise.
465 (pe_implied_import_dll): Likewise.
466
45f111cc
NC
4672008-05-21 Nick Clifton <nickc@redhat.com>
468
469 PR ld/6519
470 * ld.texinfo (Orphan Sections): Mention that the linker will
471 provide start and stop symbols for orphaned sections if their
472 names are valid C identifiers.
473 * NEWS: Add an addendum to the description of the linker feature
474 for providing orphan section start and end symbols.
475
7fb9f789
NC
4762008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
477
478 * configure.in (--enable-got): New option. Handle it.
479 * configure: Regenerate.
480 * config.in: Regenerate.
481 * emultempl/m68kelf.em: (got_handling_target_default): New shell
482 variable.
483 (GOT_HANDLING_TARGET_DEFAULT): New macro.
484 (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure
485 option if one was given.
486 (got_handling): New static variable.
487 (elf_m68k_create_output_section_statements): New static function
488 implementing hook.
489 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
490 (OPTION_GOT): New macro.
491 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
492 --got option.
493 (got): New linker option.
494 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
495 for --got option.
496 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
497 option.
498 * ld.texinfo: Document --got=<type> option.
499 * gen-doc.texi: Add M68K.
500 * NEWS: Mention the new feature.
501
41911f68
NC
5022008-05-21 Evandro Menezes <evandro@yahoo.com>
503
504 PR ld/6430
505 * ld.texinfo (--sort-common): Correct documentation to indicate
506 that sorting is performed by alignment, not size, biggest
507 alignment first.
508
726150b7
NC
5092008-05-21 Christophe Lyon <christophe.lyon@st.com>
510 Nick Clifton <nickc@redhat.com>
511
512 * ld.texinfo (ARM): Document --stub-group-size=N option.
513 Move description of --pic-veneer option into the ARM section.
514 * NEWS: Mention the support for long function calls.
515
906e58ca
NC
5162008-05-15 Christophe Lyon <christophe.lyon@st.com>
517
518 * emultempl/armelf.em (build_section_lists): New function.
519 (stub_file): Define.
520 (need_laying_out): Define.
521 (group_size): Define.
522 (hook_stub_info): Define.
523 (hook_in_stub): New function.
524 (elf32_arm_add_stub_section): New function.
525 (gldarm_layout_sections_again): New function.
526 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
527 stubs for long calls if needed.
528 (arm_elf_create_output_section_statements): create stub_file bfd.
529 (arm_for_each_input_file_wrapper): New function.
530 (arm_lang_for_each_input_file): New function.
531 (lang_for_each_input_file): Define.
532 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
533 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
534 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
535 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
536 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
537 * lang.c (print_input_statement): Skip if bfd has
538 BFD_LINKER_CREATED.
539
8944f3c2
AM
5402008-05-14 Alan Modra <amodra@bigpond.net.au>
541
542 * Makefile.in: Regenerate.
543
0ead4f8d
KT
5442008-05-09 Kai Tietz <kai.tietz@onevision.com>
545
546 ld/PR6502
8944f3c2
AM
547 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
548 of long and change return type to bfd_vma.
0ead4f8d
KT
549 (definfo): Change type of address from long to bfd_vma.
550 (set_pep_value): Replace strtoul to strtoull.
551 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
8944f3c2
AM
552 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
553 ImageBase.
0ead4f8d
KT
554 (quick_reloc): Change argument address from int to bfd_size_type.
555
e7fc76dd
TT
5562008-05-08 Tom Tromey <tromey@redhat.com>
557
558 * ld.texinfo (PowerPC64 ELF64): Fix typo.
559
8374f9d4
AM
5602008-05-08 Alan Modra <amodra@bigpond.net.au>
561
562 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
563 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
564 sections at the start of ".data" and provide a symbol to locate
565 the directory of embedded spe programs.
566
8c0848b5
AM
5672008-05-08 Alan Modra <amodra@bigpond.net.au>
568
569 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
570 MAX_K.
571 (fold_binary <SEGMENT_START>): Set expld.result.section to
572 current section. Expand comment. Formatting.
573 (fold_name <DEFINED>): Set expld.result.section to current section.
574
a2cab753
NS
5752008-04-28 Nathan Sidwell <nathan@codesourcery.com>
576
577 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
578 non-load sections.
579
bec9537e
MF
5802008-04-25 Michael Frysinger <vapier@gentoo.org>
581
582 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
583 and targ_extra_emuls to elf32bfin.
584
6194aaab
L
5852008-04-23 Paolo Bonzini <bonzini@gnu.org>
586
587 * aclocal.m4: Regenerate.
588 * configure: Regenerate.
589
da6fa31a
KT
5902008-04-03 Kai Tietz <kai.tietz@onevision.com>
591
592 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
593
9be9d352
AM
5942008-04-08 Alan Modra <amodra@bigpond.net.au>
595
596 * po/POTFILES.in: Regenerate.
597
9dcc4794
AM
5982008-04-08 Alan Modra <amodra@bigpond.net.au>
599
600 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
601 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
602 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
603 (struct tflist, clean_tmp): Move.
604 (new_tmp_file): New function, extracted from..
605 (embedded_spu_file): ..here.
606 (spu_elf_open_overlay_script, spu_elf_relink): New function.
607 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
608 Warn on --auto-overlay and zero local store.
609 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
610 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
611 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
612 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
613 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
614 (PARSE_AND_LIST_OPTIONS): Likewise.
615 (PARSE_AND_LIST_ARGS_CASES): Likewise.
616 (LDEMUL_CHOOSE_TARGET): Define.
617
5f69259e
KT
6182008-04-03 Kai Tietz <kai.tietz@onevision.com>
619
620 PR ld/6026
621 * pe-dll.c (make_head): Fix iat and thunk addend offset.
622
95f0efb9
NC
6232008-03-31 Nick Clifton <nickc@redhat.com>
624
625 * po/fr.po: Updated French translation.
626
f36d5d55
ILT
6272008-03-24 Ian Lance Taylor <iant@google.com>
628
629 The sha1 code is now in libiberty.
630 * sha1.c: Remove.
631 * sha1.h: Remove.
632 * Makefile.am (CFILES): Remove sha1.c.
633 (HFILES): Remove sha1.h.
634 (OFILES): Remove sha1.o.
635 (ld_new_SOURCES): Remove sha1.c.
636 (sha1.o): Remove target.
637 * Makefile.in: Rebuild.
638
c65be8d7
AM
6392008-03-20 Alan Modra <amodra@bigpond.net.au>
640
641 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
642
58c85be7
RW
6432008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
644
645 * aclocal.m4: Regenerate.
646 * configure: Likewise.
647 * Makefile.in: Likewise.
648
771a9c5f
AM
6492008-03-14 Alan Modra <amodra@bigpond.net.au>
650
651 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
652 spu_elf_build_stubs with is_spu_target.
653
50e7d84b
AM
6542008-03-13 Alan Modra <amodra@bigpond.net.au>
655
656 * Makefile.am: Run "make dep-am".
657 * Makefile.in: Regenerate.
658 * configure: Regenerate.
659
9e448631
NC
6602008-03-06 Joseph Myers <joseph@codesourcery.com>
661 Roman Zippel <zippel@linux-m68k.org>
662
663 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
664 (COMMONPAGESIZE): Define.
665
07dfcf38
NC
6662008-02-22 Nick Clifton <nickc@redhat.com>
667
668 PR ld/5785
669 * ldlang.c (lang_size_sections_1): Honour the setting of an
670 lma_region even if there is no vma region set, or the vma region
671 is the same as the lma region.
672
b34c1498
NC
6732008-02-18 Nick Clifton <nickc@redhat.com>
674
675 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
676 relocatable link.
677 * scripttempl/elf32cr16.sc: Likewise.
678 * scripttempl/elf32cr16c.sc: Likewise.
679 * scripttempl/elf32crx.sc: Likewise.
680 * scripttempl/elf32sh-symbian.sc: Likewise.
681 * scripttempl/elf_chaos.sc: Likewise.
682 * scripttempl/elfd10v.sc: Likewise.
683 * scripttempl/elfi370.sc: Likewise.
684 * scripttempl/elfm68hc11.sc: Likewise.
685 * scripttempl/elfm68hc12.sc: Likewise.
686 * scripttempl/ip2k.sc: Likewise.
687 * scripttempl/iq2000.sc: Likewise.
688 * scripttempl/mep.sc: Likewise.
689 * scripttempl/v850.sc: Likewise.
690 * scripttempl/xstormy16.sc: Likewise.
691
819da74e
AM
6922008-02-16 Alan Modra <amodra@bigpond.net.au>
693
694 PR ld/5761
695 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
696 load_base before calling make_abs.
697
5503fea1
AM
6982008-02-15 Alan Modra <amodra@bigpond.net.au>
699
700 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
701 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
702 Likewise.
703 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
704 Likewise.
705 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
706 uses with..
707 (is_ppc_elf): ..this new macro.
708
f13a99db
AM
7092008-02-15 Alan Modra <amodra@bigpond.net.au>
710
711 * ldmain.h (output_bfd): Delete.
712 * ldmain.c (output_bfd): Delete.
713 Replace all occurrences of output_bfd with link_info.output_bfd.
714 * ldcref.c: Likewise.
715 * ldctor.c: Likewise.
716 * ldemul.c: Likewise.
717 * ldexp.c: Likewise.
718 * ldfile.c: Likewise.
719 * ldlang.c: Likewise.
720 * ldmisc.c: Likewise.
721 * ldwrite.c: Likewise.
722 * pe-dll.c: Likewise.
723 * emultempl/aix.em: Likewise.
724 * emultempl/alphaelf.em: Likewise.
725 * emultempl/armcoff.em: Likewise.
726 * emultempl/armelf.em: Likewise.
727 * emultempl/avrelf.em: Likewise.
728 * emultempl/beos.em: Likewise.
729 * emultempl/elf-generic.em: Likewise.
730 * emultempl/elf32.em: Likewise.
731 * emultempl/gld960.em: Likewise.
732 * emultempl/hppaelf.em: Likewise.
733 * emultempl/irix.em: Likewise.
734 * emultempl/linux.em: Likewise.
735 * emultempl/lnk960.em: Likewise.
736 * emultempl/m68hc1xelf.em: Likewise.
737 * emultempl/mmix-elfnmmo.em: Likewise.
738 * emultempl/mmo.em: Likewise.
739 * emultempl/pe.em: Likewise.
740 * emultempl/pep.em: Likewise.
741 * emultempl/ppc32elf.em: Likewise.
742 * emultempl/ppc64elf.em: Likewise.
743 * emultempl/scoreelf.em: Likewise.
744 * emultempl/sh64elf.em: Likewise.
745 * emultempl/spuelf.em: Likewise.
746 * emultempl/sunos.em: Likewise.
747 * emultempl/vanilla.em: Likewise.
748 * emultempl/vxworks.em: Likewise.
749 * emultempl/xtensaelf.em: Likewise.
750 * emultempl/z80.em: Likewise.
751 * ldlang.c (open_output): Don't return output, instead write
752 link_info_output_bfd directly.
753 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
754 with link_info.output_bfd->xvec.
755 * emultempl/hppaelf.em: Likewise.
756 * emultempl/ppc32elf.em: Likewise.
757 * emultempl/ppc64elf.em: Likewise.
758 * emultempl/spuelf.em: Likewise.
759
ff7a0acf
AM
7602008-02-07 Alan Modra <amodra@bigpond.net.au>
761
762 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
763 * ldfile.c (ldfile_add_library_path): Likewise.
764 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
765 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
766 * emultempl/spuelf.em (embedded_spu_file): Likewise.
767
2e444bea
AM
7682008-02-07 Alan Modra <amodra@bigpond.net.au>
769
770 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
771 a "present" bit rather than low bit of .buf. Correct indexing
772 into _ovly_buf_table. Use relative loads and stores to access
773 overlay manager local vars.
774 * emultempl/spu_ovl.o: Regenerate.
775
bb8541b9
L
7762008-02-04 H.J. Lu <hongjiu.lu@intel.com>
777
778 PR 5715
779 * configure: Regenerated.
780
f8a52b59
BW
7812008-01-31 Marc Gauthier <marc@tensilica.com>
782
783 * configure.tgt (xtensa*-*-*): Recognize processor variants.
784
00b2bfc1
NC
7852008-01-28 Fabian Groffen <grobian@gentoo.org>
786
787 * configure.tgt (x86_64-*-solaris2): Add support for this target.
788
6e73d595
NC
7892008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
790
791 PR ld/5652
792 * genscripts.sh: Check for the existence of BASH_LINENO not just
793 the BASH shell before generating line numbers in the emulation
794 file.
795
47f6dab9
AM
7962008-01-28 Alan Modra <amodra@bigpond.net.au>
797
798 * emultempl/spu_ovl.S: Rewrite.
799 * emultempl/spu_ovl.o: Regenerate.
800 * emultempl/spuelf.em (toe): Delete.
801 (spu_place_special_section): Add param to control section placement.
802 Adjust callers.
803 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
804 changes.
805 (spu_before_allocation): Adjust spu_elf_size_stubs call.
806 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
807
29183214
L
8082008-01-25 H.J. Lu <hongjiu.lu@intel.com>
809
810 PR ld/5670
811 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
812 warning.
813
53d25da6
AM
8142008-01-25 Alan Modra <amodra@bigpond.net.au>
815
816 * ld.texinfo (INSERT): Describe.
817 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
818 (INSERT_K, AFTER, BEFORE): Add as tokens.
819 (ifile_p1): Handle INSERT statements.
820 (saved_script_handle, force_make_executable): Move to..
821 * ldmain.c: ..here.
822 (previous_script_handle): New global var.
823 * ldmain.h (saved_script_handle, force_make_executable): Declare.
824 (previous_script_handle): Likewise.
825 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
826 * lexsup.c (parge_args <-T>): Set previous_script_handle.
827 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
828 (map_input_to_output_sections, print_statement): Likewise.
829 (lang_size_sections_1, lang_do_assignments_1): Likewise.
830 (insert_os_after): New function, extracted from..
831 (lang_insert_orphan): ..here.
832 (process_insert_statements): New function.
833 (lang_process): Call it.
834 (lang_add_insert): New function.
835 * ldlang.h (lang_insert_statement_enum): New.
836 (lang_insert_statement_type): New.
837 (lang_statement_union_type): Add insert_statement.
838 (lang_add_insert): Declare.
839
c19f06f2
BW
8402008-01-18 Bob Wilson <bob.wilson@acm.org>
841
842 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
843 changes from elf.sc.
8944f3c2 844
14ac84b4
AM
8452008-01-16 Alan Modra <amodra@bigpond.net.au>
846
847 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
848
3d00b095
AM
8492008-01-16 Alan Modra <amodra@bigpond.net.au>
850
851 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
852 (lang_afile_asection_pair_statement_type): Delete.
853 (lang_statement_union_type): Delete afile_asection_pair_statement.
854 * ldlang.c (lang_insert_orphan): Delete case handling the above.
855 (map_input_to_output_sections, print_statement): Likewise.
856
58da7b1b
KK
8572008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
858
859 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
860 with __data_start.
861 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
862
74f0fb50
AM
8632008-01-15 Alan Modra <amodra@bigpond.net.au>
864
865 PR 5604
866 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
867 syms to _bfd_elf_gc_keep.
868 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
869 ppc64_elf_edit_opd if no_opd_opt.
870
ac69cbc6
TG
8712008-01-11 Tristan Gingold <gingold@adacore.com>
872 Eric Botcazou <ebotcazou@adacore.com>
873
874 * ldlang.c (lang_end): Warns if the entry point is not found when
875 --gc-sections.
876 Emit an error if no root is specified when --gc-sections -r.
877 * ld.texinfo (Options): Document that --gc-sections is compatible
878 with -r and -q.
879 * ldmain.c (main): Do not error out if -r and --gc-sections.
880 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
881
71934f94
NC
8822008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
883
884 PR ld/5533
885 * ldlang.c (lang_end): Issue a warning for a missing start symbol
886 of a shared library if the symbol was specified on the command
887 line.
888
d5465ba2
AM
8892008-01-10 Alan Modra <amodra@bigpond.net.au>
890
891 * ld.texinfo (--gc-sections): Describe linker behaviour.
892
6c7ac64e 893For older changes see ChangeLog-2007
252b5132
RH
894\f
895Local Variables:
896mode: change-log
897left-margin: 8
898fill-column: 74
899version-control: never
900End:
This page took 0.465766 seconds and 4 git commands to generate.