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