daily update
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
8a2a2dbb
NC
12008-11-06 Joel Sherrill <joel.sherrill@oarcorp.com>
2
3 * configure.tgt: Add m32c-*-rtems* and m32r-*-rtems*.
4
1aa89011 52008-11-03 Bob Wilson <bob.wilson@acm.org>
e78c4c7e
BW
6
7 * emulparams/elf32xtensa.sh (NO_REL_RELOCS): Set.
8 * scripttempl/elfxtensa.sc (NO_REL_RELOCS, NO_RELA_RELOCS)
9 (NON_ALLOC_DYN): Import changes from elf.sc.
10
fb6cee96
NC
112008-10-25 Nick Clifton <nickc@redhat.com>
12
13 PR 6945
14 * ldlang.c (lang_size_sections_1): Do not update the VMAs of
15 output sections when performing a relocatable link on COFF
16 objects.
17
b8976b05
NC
182008-10-22 Nick Clifton <nickc@redhat.com>
19
20 * emultempl/armelf.em (arm_elf_after_open): Move check for using a
21 non-arm output target from here...
22 (arm_elf_create_output_section_statements): ... to here, so that
23 the check is made at the earliest possible opportunity.
24
f407252f
AM
252008-10-22 Alan Modra <amodra@bigpond.net.au>
26
27 * emulparams/elf32_i960.sh (TEMPLATE_NAME): "generic", not "elf32".
28 (EXTRA_EM_FILE): Define.
29
485cf679
AM
302008-10-22 Alan Modra <amodra@bigpond.net.au>
31
32 * scripttempl/elf.sc (NO_REL_RELOCS, NO_RELA_RELOCS, NON_ALLOC_DYN):
33 Handle these defines.
34 * emulparams/criself.sh, * emulparams/crislinux.sh,
35 * emulparams/elf32am33lin.sh, * emulparams/elf32fr30.sh,
36 * emulparams/elf32_i860.sh, * emulparams/elf32ip2k.sh,
37 * emulparams/elf32mcore.sh, * emulparams/elf32ppccommon.sh,
38 * emulparams/elf32ppcwindiss.sh, * emulparams/elf32_sparc.sh,
39 * emulparams/elf32_spu.sh, * emulparams/elf32vax.sh,
40 * emulparams/elf64alpha.sh, * emulparams/elf64mmix.sh,
41 * emulparams/elf64ppc.sh, * emulparams/elf64_s390.sh,
42 * emulparams/elf64_sparc.sh, * emulparams/elf_s390.sh,
43 * emulparams/elf_x86_64.sh, * emulparams/h8300elf.sh,
44 * emulparams/hppa64linux.sh, * emulparams/hppalinux.sh,
45 * emulparams/m68kelf.sh, * emulparams/mn10200.sh,
46 * emulparams/pjelf.sh, * emulparams/ppclynx.sh,
47 * emulparams/shelf32.sh, * emulparams/shelf_nto.sh,
48 * emulparams/shelf.sh, * emulparams/shelf_vxworks.sh,
49 * emulparams/shlelf32_linux.sh, * emulparams/shlelf_linux.sh,
50 * emulparams/shlelf_nto.sh (NO_REL_RELOCS): Set.
51 * emulparams/arcelf.sh, * emulparams/elf32_i960.sh,
52 * emulparams/elf32openrisc.sh, * emulparams/elf_i386_be.sh,
53 * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386.sh,
54 * emulparams/elf_i386_vxworks.sh, * emulparams/i386lynx.sh,
55 * emulparams/i386moss.sh, * emulparams/i386nto.sh,
56 * emulparams/or32elf.sh, * emulparams/scoreelf.sh (NO_RELA_RELOCS): Set.
57
07890c07
AM
582008-10-22 Alan Modra <amodra@bigpond.net.au>
59
60 * ldlang.c (lang_output_section_find_by_flags): Handle non-alloc
61 sections.
62 * emultempl/elf32.em (enum orphan_save_index): Add orphan_nonalloc.
63 (hold): Likewise.
64 (gld${EMULATION_NAME}_place_orphan): Handle non-alloc orphans.
65
4a977a31
AM
662008-10-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
67
68 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Correct typo in
69 help text of --be8.
70
c2edb4b8
AM
712008-10-20 Alan Modra <amodra@bigpond.net.au>
72
73 * ldemul.h (ldemul_place_orphan): Update prototype.
74 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
75 * ldemul.c (ldemul_place_orphan): Return pointer to output
76 section statement.
77 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Likewise.
78 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
79 * emultempl/mmo.em (mmo_place_orphan): Likewise.
80 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
81 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
82
8cc9115f
NC
832008-10-08 Nick Clifton <nickc@redhat.com>
84
85 * configure.in (ALL_LINGUAS): Add "id".
86 * configure: Regenerate.
87 * po/id.po: New Indonesian translation.
88
f265bc06
AM
892008-10-05 Alan Modra <amodra@bigpond.net.au>
90
91 PR 6943
92 * scripttempl/avr.sc (.bss): Set lma when relocating.
93 (.bss, .noinit): No need to set vma when relocating.
94 (.text, .bss, ,noinit): Set vma to zero when not relocating.
95
8a99a385
AM
962008-10-04 Alan Modra <amodra@bigpond.net.au>
97
98 PR 6931
99 * ldemul.c (ldemul_place_orphan): Add "constraint" param.
100 * ldemul.h (ldemul_place_orphan): Update prototype.
101 (struct ld_emulation_xfer_struct <place_orphan>): Likewise add param.
102 * ldlang.c (unique_section_p): Make static.
103 (lang_output_section_statement_lookup): Optimise creation of SPECIAL
104 sections.
105 (lang_insert_orphan): Add "constraint" param. Pass to
106 lang_enter_output_section_statement.
107 (init_os): Don't use an existing bfd section for SPECIAL sections.
108 (lang_place_orphans): Don't rename unique output sections, instead
109 mark their output section statements SPECIAL.
110 * ldlang.h (lang_insert_orphan): Update prototype.
111 (unique_section_p): Delete.
112 * emultempl/beos.em (place_orphan): Add "constraint" param.
113 * emultempl/elf32.em (place_orphan): Likewise. Don't match existing
114 output sections if set.
115 * emultempl/pe.em (place_orphan): Likewise.
116 * emultempl/pep.em (place_orphan): Likewise.
117 * emultempl/mmo.em (mmo_place_orphan): Update.
118 * emultempl/spuelf.em (spu_place_special_section): Update.
119
bcacc0f5
AM
1202008-10-03 Alan Modra <amodra@bigpond.net.au>
121
e932ca37 122 PR 6931
bcacc0f5
AM
123 * ldemul.c (ldemul_place_orphan): Add "name" param.
124 * ldemul.h (ldemul_place_orphan): Update prototype.
125 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
126 * ldlang.c (lang_place_orphans): Generate unique section names here..
127 * emultempl/elf32.em (place_orphan): ..rather than here. Don't
128 directly use an existing output section statement that has no
129 bfd section.
130 * emultempl/pe.em (place_orphan): Likewise.
131 * emultempl/pep.em (place_orphan): Likewise.
132 * emultempl/beos.em (place_orphan): Adjust.
133 * emultempl/spuelf.em (spu_place_special_section): Adjust
134 place_orphan call.
135 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): New function.
136 (LDEMUL_AFTER_OPEN): Define.
137
b796d39d
JM
1382008-09-30 Joseph Myers <joseph@codesourcery.com>
139
140 * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.opd
141 and .rela.branch_lt.
142
782e11fd
AM
1432008-09-30 Alan Modra <amodra@bigpond.net.au>
144
145 * Makefile.am: Run "make dep-am".
146 * Makefile.in: Regenerate.
147
b214d478
SE
1482008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
149 Steve Ellcey <sje@cup.hp.com>
150
151 * configure: Regenerate for new libtool.
152 * aclocal.m4: Ditto.
153 * Makefile.in: Ditto.
154
b8a48734
KT
1552008-09-29 Kai Tietz <kai.tietz@onevision.com>
156
157 * pe-dll.c (make_import_fixup_entry): Make sure reloc is addend.
158
afac680a
NC
1592008-09-29 Nick Clifton <nickc@redhat.com>
160
161 * po/vi.po: Updated Vietnamese translation.
162
4ac0c898
AM
1632008-09-25 Alan Modra <amodra@bigpond.net.au>
164
165 * ldexp.c (fold_binary): Evaluate rhs when lhs not valid.
166
d053aef8
JK
1672008-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
168
169 * configure.in: Call AC_SYS_LARGEFILE.
170 * config.in: Regenerate.
171 * configure: Regenerate.
172
44e36d8a
NC
1732008-09-09 Peter Rosin <peda@lysator.liu.se> (tiny change)
174
175 * emultempl/pe.em (pe_find_data_imports): Add trailing newline
176 to warning message.
177 * emultempl/pep.em (pep_find_data_imports): Likewise.
178
25d65034
L
1792008-09-08 H.J. Lu <hongjiu.lu@intel.com>
180
181 2008-09-07 Alan Modra <amodra@bigpond.net.au>
182
183 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated.
184 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Likewise.
185
6e33da12
TG
1862008-09-08 Tristan Gingold <gingold@adacore.com>
187
188 * NEWS: Add a marker for the 2.19 features.
189
66c103b7
AM
1902008-09-07 Alan Modra <amodra@bigpond.net.au>
191
192 * ldlang.h (lang_output_section_find): Define.
193 (lang_output_section_statement_lookup): Update prototype.
194 * ldlang.c (lang_output_section_find,
195 lang_output_section_statement_lookup_1): Merge into..
196 (lang_output_section_statement_lookup): ..here. Update all callers.
197 (process_insert_statements): Set constraint negative
198 for output section statements we might be inserting. Make error
199 fatal on not finding insertion section.
200 (lang_output_section_find): Rather than comparing
201 output_section_statement.constraint against -1, test whether
202 it is postive.
203 (lang_output_section_statement_lookup_1): Likewise.
204 (output_prev_sec_find, strip_excluded_output_sections): Likewise.
205 (lang_record_phdrs): Likewise.
206 * emultempl/elf32.em (output_rel_find): Likewise.
207 * NEWS: Mention INSERT.
208
8716772c
NC
2092008-08-26 Nick Clifton <nickc@redhat.com>
210
211 PR 6727
212 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all
213 input sections in all input bfds and always select the last
214 suitable one, so that interworking stubs are always processed
215 after all other input sections.
216 (arm_elf_before_allocation): Remove redundant use of
217 output_has_begun flag.
218
da594c4a
AM
2192008-08-24 Alan Modra <amodra@bigpond.net.au>
220
221 * configure.in: Update a number of obsolete autoconf macros.
222 * configure: Regenerate.
223 * aclocal.m4: Regenerate.
224
2b60860a
JK
2252008-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
226
227 PR ld/6833
228 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Do not align
229 EXPLD.DATASEG.MIN_BASE.
230 * ldlang.c (lang_size_sections): New variable OLD_BASE. Rename
231 OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'.
232 Use OLD_BASE now for the minimal base check after the base decrease by
233 the maximum alignment found.
234
5c1d2f5f
AM
2352008-08-17 Alan Modra <amodra@bigpond.net.au>
236
237 PR 6478
238 * ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols.
239 Don't free symbol pointer array.
240 (check_refs): Likewise.
241 * ldmain.c (warning_callback): Likewise.
242 * ldmisc.c (vfinfo): Likewise.
243 * pe-dll.c (process_def_file): Likewise.
244 (pe_walk_relocs_of_symbol, generate_reloc): Likewise.
245 * emultempl/pe.em (pe_find_data_imports): Likewise.
246 (gld_${EMULATION_NAME}_after_open): Likewise.
247 * emultempl/pep.em (pep_find_data_imports): Likewise.
248 (gld_${EMULATION_NAME}_after_open): Likewise.
249 * ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count,
250 passive_position, closed.
251 * ldlang.c (new_afile): Don't set asymbols and symbol_count.
252 * ldmain.c (add_archive_element): xcalloc lang_input_statement_type.
253
7357c5b6
AM
2542008-08-15 Alan Modra <amodra@bigpond.net.au>
255
256 PR 6526
257 * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
258 * Makefile.in: Regenerate.
259 * aclocal.m4: Regenerate.
260 * config.in: Regenerate.
261 * configure: Regenerate.
262
a8caa245
AM
2632008-08-09 Alan Modra <amodra@bigpond.net.au>
264
265 PR 6753
266 * ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete.
267 (main): Don't set_scripts_dir here.
268 * ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions,
269 largely based on ldmain.c versions.
270 (ldfile_find_command_file): Set up search in script dir here without
271 affecting library search.
272 * Makefile.am (ldmain.o): No need to define SCRIPTDIR.
273 (ldfile.o): New rule.
274 * Makefile.in: Regenerate.
275
7b21ac3f
EW
2762008-08-08 Anatoly Sokolov <aesok@post.ru>
277
278 * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
279 and eavr51.o.
280 Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
281 * Makefile.in: Regenerate.
282 * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
283 and avr51.
284 * emulparams/avr25.sh: New file.
285 * emulparams/avr31.sh: New file.
286 * emulparams/avr35.sh: New file.
287 * emulparams/avr51.sh: New file.
288
861fb55a
DJ
2892008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
290 Daniel Jacobowitz <dan@codesourcery.com>
291
292 * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
293 (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
294 two variables.
295 * emulparams/elf32bmipn32-defs.sh: Likewise.
296 * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
297 (is_mips_elf): New macro.
298 (stub_file, stub_bfd): New variables.
299 (hook_stub_info): New structure.
300 (hook_in_stub): New function.
301 (mips_add_stub_section): Likewise.
302 (mips_create_output_section_statements): Likewise.
303 (mips_before_allocation): Likewise.
304 (real_func): New variable.
305 (mips_for_each_input_file_wrapper): New function.
306 (mips_lang_for_each_input_file): Likewise.
307 (lang_for_each_input_file): Define.
308 (LDEMUL_BEFORE_ALLOCATION): Likewise.
309 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.
310
a26cc967
AM
3112008-08-08 Alan Modra <amodra@bigpond.net.au>
312
313 * ldfile.c (ldfile_open_file_search): Use concat.
314 (try_open): Don't use a fixed size pathname buffer.
315 (ldfile_find_command_file): Likewise.
316 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If
317 using EXTRA_SHLIB_EXTENSION, don't open twice.
318
323ee3f4
AM
3192008-08-04 Alan Modra <amodra@bigpond.net.au>
320
321 * Makefile.am (POTFILES.in): Set LC_ALL=C.
322 * Makefile.in: Regenerate.
323 * po/POTFILES.in: Regenerate.
324
cc9b841c
AM
3252008-08-03 Alan Modra <amodra@bigpond.net.au>
326
327 * Makefile.am (spu_ovl.o): Merge rule into..
328 (spu_ovl.o_c): ..this one. Only run cpp for spu target.
329 * Makefile.in: Regenerate.
330
4b64c41f
JK
3312008-08-02 Jan Kratochvil <jan.kratochvil@redhat.com>
332
333 Include the spu_ovl ASCII form in the repository files.
334 * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'.
335 * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'.
336 ($(srcdir)/emultempl/spu_ovl.o_c): New target.
337 ($(srcdir)/emultempl/spu_ovl.o): Rename to...
338 (spu_ovl.o): ...this one.
339 * Makefile.in: Regenerate.
340 * emultempl/spu_ovl.o_c: New file.
341 * emultempl/spu_ovl.o: File removed.
342
49314f87
DS
3432008-07-31 Takashi Ono <t_ono@hkfreak.net>
344
345 * pe-dll.c (generate_relocs): Don't generate relocs for
346 undefined weak symbols.
347
2f9300ef
JK
3482008-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
349
350 * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
351
0af1713e
AM
3522008-07-30 Alan Modra <amodra@bigpond.net.au>
353
354 * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
355
a9dc9481
JM
3562008-07-18 Joseph Myers <joseph@codesourcery.com>
357
358 * ld.texinfo (--no-wchar-size-warning): Document new ARM option.
359 * emultempl/armelf.em (no_wchar_size_warning): New.
360 (arm_elf_create_output_section_statements): Pass
361 no_wchar_size_warning to arm_elf_create_output_section_statements.
362 (OPTION_NO_WCHAR_SIZE_WARNING): New.
363 (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
364 (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
365 (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.
366
b0a0b978
JZ
3672008-07-15 Jie Zhang <jie.zhang@analog.com>
368
369 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
370
4474d12b
CS
3712008-07-12 Craig Silverstein <csilvers@google.com>
372
6fa08786 373 PR ld/6741
4474d12b
CS
374 * configure.in: Check for, and include, libz.a if it is present.
375 * configure: Regenerate.
376 * config.in: Regenerate.
377
1bac266e
JZ
3782008-07-12 Jie Zhang <jie.zhang@analog.com>
379
380 Revert
381 2008-07-12 Jie Zhang <jie.zhang@analog.com>
382 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
383 (eelf32bfinfd.c): Likewise.
384 * Makefile.in: Regenerate.
385 * gen-doc.texi: Set Blackfin.
386 * ld.texinfo: Document --sep-code and Blackfin specific
387 options.
388 * ldmain.c (main): Initialize link_info.sep_code.
389 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
390 (ld_options[]): Add --sep-code.
391 (parse_args): Deal with --sep-code.
392 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
393 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
394 * emultempl/bfin.em: New file.
395
8c684578
JZ
3962008-07-12 Jie Zhang <jie.zhang@analog.com>
397
398 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
399 (eelf32bfinfd.c): Likewise.
400 * Makefile.in: Regenerate.
401 * gen-doc.texi: Set Blackfin.
402 * ld.texinfo: Document --sep-code and Blackfin specific
403 options.
404 * ldmain.c (main): Initialize link_info.sep_code.
405 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
406 (ld_options[]): Add --sep-code.
407 (parse_args): Deal with --sep-code.
408 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
409 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
410 * emultempl/bfin.em: New file.
411
b92216aa
DS
4122008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
413
414 *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
415 starting with ".".
416 Exclude "_IMPORT_DESCRIPTOR_".
417 (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
418 (autofilter_symbollist_generic): Don't check for ".text".
419 Exclude "_NULL_IMPORT_DESCRIPTOR".
420 (autofilter_symbollist_i386): Likewise.
421
9795b468
AM
4222008-07-07 Alan Modra <amodra@bigpond.net.au>
423
424 * emultempl/armelf.em (elf32_arm_add_stub_section): Use
425 bfd_make_section_with_flags.
426 * emultempl/avrelf.em (avr_elf_create_output_section_statements):
427 Likewise.
428 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
429 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
430 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
431 * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
432 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
433 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
434 Likewise.
435
4006703d
NS
4362008-07-06 Nathan Sidwell <nathan@codesourcery.com>
437
438 * ld.texinfo (File Commands): Document that INCLUDE can be used in
439 several different places.
440 * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
441 (memory, memory_spec_list): Simplify BNF
442 (memory_spec_list_opt): New rule.
443 * ldlex.l (INCLUDE): Recognize in EXPRESSION.
444
9f1a3ddf
AM
4452008-06-20 Alan Modra <amodra@bigpond.net.au>
446
447 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
448 build overlay stubs" a fatal error.
449
7a283e07
RW
4502008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
451
452 * config.in: Regenerate.
453 * configure: Regenerate.
454
99302af9
AM
4552008-06-17 Alan Modra <amodra@bigpond.net.au>
456
457 * emultempl/spuelf.em (extra_stack_space): New variable.
458 (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
459 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
460 PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
461 * emultempl/spu_ovl.S: Mask interrupts during dma and update of
462 overlay manager structures.
463 * emultempl/spu_ovl.o: Regenerate.
464
7a2de473
HPN
4652008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
466
467 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
468 mention it as being special for global symbols.
469
5590fba9
NC
4702008-06-12 Nick Clifton <nickc@redhat.com>
471
472 * ldlang.c (print_output_section_statement): If the output section
473 statement has an update_dot_tree expression, apply it to
474 print_dot.
475 (print_input_section): Do not update print_dot if it would move
476 print_dot backwards.
477 (lang_do_assignments_1): If the output section statement has an
478 update_dot_tree expression apply it to dot.
479
967928e9
AM
4802008-06-07 Alan Modra <amodra@bigpond.net.au>
481
482 * NEWS: Mention archive:path patterns.
483 * ld.texinfo: Likewise.
484 * ldlang.c: Formatting throughout.
485 (archive_path): Only assume "[A-Za-z]:" is a dos drive.
486 (input_statement_is_archive_path): New function, extracted from..
487 (walk_wild): ..here.
488 (walk_wild_consider_section): Match archive:path here too.
489 (init_map_userdata, sort_def_symbol): Convert to ISO C.
490 * ldmain.c (main): Set link_info.path_separator.
491 * emultempl/spuelf.em (choose_target): Don't set it here.
492
97407faf
AM
4932008-06-06 Alan Modra <amodra@bigpond.net.au>
494
495 * ldlang.c (name_match): New function.
496 (unique_section_p, walk_wild_consider_section): Use it here.
497 (walk_wild_section_general): And here.
498 (archive_path): New function.
499 (walk_wild): Match archive:path filespecs.
500 (open_input_bfds): Don't load archive:path files.
501 * emultempl/spuelf.em (choose_target): Set path_separator.
502 * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
503
a61ca861
NC
5042008-06-04 Nick Clifton <nickc@redhat.com>
505
506 * ld.texinfo (Orphan Sections): Fix texi typo.
507
0fe58ccd
NC
5082008-06-04 Chris Metcalf <cmetcalf@tilera.com>
509
510 * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
511 (ld_options): Add entry for --no-fatal-warnings.
512 (parse_args): Handle OPTION_NO_WARN_FATAL.
513 * ld.texinfo (Options): Document new command line switch.
514
d77ec871
AM
5152008-06-04 Alan Modra <amodra@bigpond.net.au>
516
517 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
518
476d8a22
NC
5192008-06-02 Nathan Sidwell <nathan@codesourcery.com>
520
521 * ldlang.c (closest_target_match): Skip generic big and little
522 endian ELF targets.
523
de7dd2bd
NC
5242008-05-31 Evandro Menezes <evandro@yahoo.com>
525
526 PR ld/6430
527 * ld.h (enum sort_order): New.
528 * ldlang.c (lang_check: Fix comment.
529 (lang_common): Sort commons in ascending or descending order.
530 (lang_one_common): Likewise.
531 * lexsup.c (ld_options): Have --sort-common take an option
532 argument.
533 (parse_args): Handle argument to --sort-common.
534 * ld.texinfo (--sort-common): Document new optional argument.
535 * NEWS: Mention new feature.
536
1a51c1a4 5372008-05-28 Christophe Lyon <christophe.lyon@st.com>
4a977a31 538
1a51c1a4
NC
539 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
540 only.
541
6ca0987a
KT
5422008-05-27 Kai Tietz <kai.tietz@onevision.com>
543
544 * pe-dll.c (fill_edata): Make sure we calculate vma's in
545 type bfd_vma.
546 (generate_reloc): Likewise.
547 (pe_implied_import_dll): Likewise.
548
45f111cc
NC
5492008-05-21 Nick Clifton <nickc@redhat.com>
550
551 PR ld/6519
552 * ld.texinfo (Orphan Sections): Mention that the linker will
553 provide start and stop symbols for orphaned sections if their
554 names are valid C identifiers.
555 * NEWS: Add an addendum to the description of the linker feature
556 for providing orphan section start and end symbols.
557
7fb9f789
NC
5582008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
559
560 * configure.in (--enable-got): New option. Handle it.
561 * configure: Regenerate.
562 * config.in: Regenerate.
563 * emultempl/m68kelf.em: (got_handling_target_default): New shell
564 variable.
565 (GOT_HANDLING_TARGET_DEFAULT): New macro.
566 (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure
567 option if one was given.
568 (got_handling): New static variable.
569 (elf_m68k_create_output_section_statements): New static function
570 implementing hook.
571 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
572 (OPTION_GOT): New macro.
573 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
574 --got option.
575 (got): New linker option.
576 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
577 for --got option.
578 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
4a977a31 579 option.
7fb9f789
NC
580 * ld.texinfo: Document --got=<type> option.
581 * gen-doc.texi: Add M68K.
582 * NEWS: Mention the new feature.
583
41911f68
NC
5842008-05-21 Evandro Menezes <evandro@yahoo.com>
585
586 PR ld/6430
587 * ld.texinfo (--sort-common): Correct documentation to indicate
588 that sorting is performed by alignment, not size, biggest
589 alignment first.
590
726150b7
NC
5912008-05-21 Christophe Lyon <christophe.lyon@st.com>
592 Nick Clifton <nickc@redhat.com>
593
594 * ld.texinfo (ARM): Document --stub-group-size=N option.
595 Move description of --pic-veneer option into the ARM section.
596 * NEWS: Mention the support for long function calls.
597
906e58ca 5982008-05-15 Christophe Lyon <christophe.lyon@st.com>
4a977a31 599
906e58ca
NC
600 * emultempl/armelf.em (build_section_lists): New function.
601 (stub_file): Define.
602 (need_laying_out): Define.
603 (group_size): Define.
604 (hook_stub_info): Define.
605 (hook_in_stub): New function.
606 (elf32_arm_add_stub_section): New function.
607 (gldarm_layout_sections_again): New function.
608 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
609 stubs for long calls if needed.
610 (arm_elf_create_output_section_statements): create stub_file bfd.
611 (arm_for_each_input_file_wrapper): New function.
612 (arm_lang_for_each_input_file): New function.
613 (lang_for_each_input_file): Define.
614 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
615 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
616 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
617 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
618 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
619 * lang.c (print_input_statement): Skip if bfd has
620 BFD_LINKER_CREATED.
621
8944f3c2
AM
6222008-05-14 Alan Modra <amodra@bigpond.net.au>
623
624 * Makefile.in: Regenerate.
625
0ead4f8d
KT
6262008-05-09 Kai Tietz <kai.tietz@onevision.com>
627
628 ld/PR6502
8944f3c2
AM
629 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
630 of long and change return type to bfd_vma.
0ead4f8d
KT
631 (definfo): Change type of address from long to bfd_vma.
632 (set_pep_value): Replace strtoul to strtoull.
633 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
8944f3c2
AM
634 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
635 ImageBase.
0ead4f8d
KT
636 (quick_reloc): Change argument address from int to bfd_size_type.
637
e7fc76dd
TT
6382008-05-08 Tom Tromey <tromey@redhat.com>
639
640 * ld.texinfo (PowerPC64 ELF64): Fix typo.
641
8374f9d4
AM
6422008-05-08 Alan Modra <amodra@bigpond.net.au>
643
644 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
645 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
646 sections at the start of ".data" and provide a symbol to locate
647 the directory of embedded spe programs.
648
8c0848b5
AM
6492008-05-08 Alan Modra <amodra@bigpond.net.au>
650
651 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
652 MAX_K.
653 (fold_binary <SEGMENT_START>): Set expld.result.section to
654 current section. Expand comment. Formatting.
655 (fold_name <DEFINED>): Set expld.result.section to current section.
656
a2cab753
NS
6572008-04-28 Nathan Sidwell <nathan@codesourcery.com>
658
659 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
660 non-load sections.
661
bec9537e
MF
6622008-04-25 Michael Frysinger <vapier@gentoo.org>
663
664 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
665 and targ_extra_emuls to elf32bfin.
666
6194aaab
L
6672008-04-23 Paolo Bonzini <bonzini@gnu.org>
668
669 * aclocal.m4: Regenerate.
670 * configure: Regenerate.
671
da6fa31a
KT
6722008-04-03 Kai Tietz <kai.tietz@onevision.com>
673
674 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
675
9be9d352
AM
6762008-04-08 Alan Modra <amodra@bigpond.net.au>
677
678 * po/POTFILES.in: Regenerate.
679
9dcc4794
AM
6802008-04-08 Alan Modra <amodra@bigpond.net.au>
681
682 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
683 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
684 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
685 (struct tflist, clean_tmp): Move.
686 (new_tmp_file): New function, extracted from..
687 (embedded_spu_file): ..here.
688 (spu_elf_open_overlay_script, spu_elf_relink): New function.
689 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
690 Warn on --auto-overlay and zero local store.
691 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
692 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
693 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
694 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
695 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
696 (PARSE_AND_LIST_OPTIONS): Likewise.
697 (PARSE_AND_LIST_ARGS_CASES): Likewise.
698 (LDEMUL_CHOOSE_TARGET): Define.
699
5f69259e
KT
7002008-04-03 Kai Tietz <kai.tietz@onevision.com>
701
702 PR ld/6026
703 * pe-dll.c (make_head): Fix iat and thunk addend offset.
704
95f0efb9
NC
7052008-03-31 Nick Clifton <nickc@redhat.com>
706
707 * po/fr.po: Updated French translation.
708
f36d5d55
ILT
7092008-03-24 Ian Lance Taylor <iant@google.com>
710
711 The sha1 code is now in libiberty.
712 * sha1.c: Remove.
713 * sha1.h: Remove.
714 * Makefile.am (CFILES): Remove sha1.c.
715 (HFILES): Remove sha1.h.
716 (OFILES): Remove sha1.o.
717 (ld_new_SOURCES): Remove sha1.c.
718 (sha1.o): Remove target.
719 * Makefile.in: Rebuild.
720
c65be8d7
AM
7212008-03-20 Alan Modra <amodra@bigpond.net.au>
722
723 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
724
58c85be7
RW
7252008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
726
727 * aclocal.m4: Regenerate.
728 * configure: Likewise.
729 * Makefile.in: Likewise.
730
771a9c5f
AM
7312008-03-14 Alan Modra <amodra@bigpond.net.au>
732
733 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
734 spu_elf_build_stubs with is_spu_target.
735
50e7d84b
AM
7362008-03-13 Alan Modra <amodra@bigpond.net.au>
737
738 * Makefile.am: Run "make dep-am".
739 * Makefile.in: Regenerate.
740 * configure: Regenerate.
741
9e448631
NC
7422008-03-06 Joseph Myers <joseph@codesourcery.com>
743 Roman Zippel <zippel@linux-m68k.org>
744
745 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
746 (COMMONPAGESIZE): Define.
747
07dfcf38
NC
7482008-02-22 Nick Clifton <nickc@redhat.com>
749
750 PR ld/5785
751 * ldlang.c (lang_size_sections_1): Honour the setting of an
752 lma_region even if there is no vma region set, or the vma region
753 is the same as the lma region.
754
b34c1498
NC
7552008-02-18 Nick Clifton <nickc@redhat.com>
756
757 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
758 relocatable link.
759 * scripttempl/elf32cr16.sc: Likewise.
760 * scripttempl/elf32cr16c.sc: Likewise.
761 * scripttempl/elf32crx.sc: Likewise.
762 * scripttempl/elf32sh-symbian.sc: Likewise.
763 * scripttempl/elf_chaos.sc: Likewise.
764 * scripttempl/elfd10v.sc: Likewise.
765 * scripttempl/elfi370.sc: Likewise.
766 * scripttempl/elfm68hc11.sc: Likewise.
767 * scripttempl/elfm68hc12.sc: Likewise.
768 * scripttempl/ip2k.sc: Likewise.
769 * scripttempl/iq2000.sc: Likewise.
770 * scripttempl/mep.sc: Likewise.
771 * scripttempl/v850.sc: Likewise.
772 * scripttempl/xstormy16.sc: Likewise.
773
819da74e
AM
7742008-02-16 Alan Modra <amodra@bigpond.net.au>
775
776 PR ld/5761
777 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
778 load_base before calling make_abs.
779
5503fea1
AM
7802008-02-15 Alan Modra <amodra@bigpond.net.au>
781
782 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
783 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
784 Likewise.
785 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
786 Likewise.
787 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
788 uses with..
789 (is_ppc_elf): ..this new macro.
790
f13a99db
AM
7912008-02-15 Alan Modra <amodra@bigpond.net.au>
792
793 * ldmain.h (output_bfd): Delete.
794 * ldmain.c (output_bfd): Delete.
795 Replace all occurrences of output_bfd with link_info.output_bfd.
796 * ldcref.c: Likewise.
797 * ldctor.c: Likewise.
798 * ldemul.c: Likewise.
799 * ldexp.c: Likewise.
800 * ldfile.c: Likewise.
801 * ldlang.c: Likewise.
802 * ldmisc.c: Likewise.
803 * ldwrite.c: Likewise.
804 * pe-dll.c: Likewise.
805 * emultempl/aix.em: Likewise.
806 * emultempl/alphaelf.em: Likewise.
807 * emultempl/armcoff.em: Likewise.
808 * emultempl/armelf.em: Likewise.
809 * emultempl/avrelf.em: Likewise.
810 * emultempl/beos.em: Likewise.
811 * emultempl/elf-generic.em: Likewise.
812 * emultempl/elf32.em: Likewise.
813 * emultempl/gld960.em: Likewise.
814 * emultempl/hppaelf.em: Likewise.
815 * emultempl/irix.em: Likewise.
816 * emultempl/linux.em: Likewise.
817 * emultempl/lnk960.em: Likewise.
818 * emultempl/m68hc1xelf.em: Likewise.
819 * emultempl/mmix-elfnmmo.em: Likewise.
820 * emultempl/mmo.em: Likewise.
821 * emultempl/pe.em: Likewise.
822 * emultempl/pep.em: Likewise.
823 * emultempl/ppc32elf.em: Likewise.
824 * emultempl/ppc64elf.em: Likewise.
825 * emultempl/scoreelf.em: Likewise.
826 * emultempl/sh64elf.em: Likewise.
827 * emultempl/spuelf.em: Likewise.
828 * emultempl/sunos.em: Likewise.
829 * emultempl/vanilla.em: Likewise.
830 * emultempl/vxworks.em: Likewise.
831 * emultempl/xtensaelf.em: Likewise.
832 * emultempl/z80.em: Likewise.
833 * ldlang.c (open_output): Don't return output, instead write
834 link_info_output_bfd directly.
835 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
836 with link_info.output_bfd->xvec.
837 * emultempl/hppaelf.em: Likewise.
838 * emultempl/ppc32elf.em: Likewise.
839 * emultempl/ppc64elf.em: Likewise.
840 * emultempl/spuelf.em: Likewise.
841
ff7a0acf
AM
8422008-02-07 Alan Modra <amodra@bigpond.net.au>
843
844 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
845 * ldfile.c (ldfile_add_library_path): Likewise.
846 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
847 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
848 * emultempl/spuelf.em (embedded_spu_file): Likewise.
849
2e444bea
AM
8502008-02-07 Alan Modra <amodra@bigpond.net.au>
851
852 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
853 a "present" bit rather than low bit of .buf. Correct indexing
854 into _ovly_buf_table. Use relative loads and stores to access
855 overlay manager local vars.
856 * emultempl/spu_ovl.o: Regenerate.
857
bb8541b9
L
8582008-02-04 H.J. Lu <hongjiu.lu@intel.com>
859
860 PR 5715
861 * configure: Regenerated.
862
f8a52b59
BW
8632008-01-31 Marc Gauthier <marc@tensilica.com>
864
865 * configure.tgt (xtensa*-*-*): Recognize processor variants.
866
00b2bfc1
NC
8672008-01-28 Fabian Groffen <grobian@gentoo.org>
868
869 * configure.tgt (x86_64-*-solaris2): Add support for this target.
870
6e73d595
NC
8712008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
872
873 PR ld/5652
874 * genscripts.sh: Check for the existence of BASH_LINENO not just
875 the BASH shell before generating line numbers in the emulation
876 file.
877
47f6dab9
AM
8782008-01-28 Alan Modra <amodra@bigpond.net.au>
879
880 * emultempl/spu_ovl.S: Rewrite.
881 * emultempl/spu_ovl.o: Regenerate.
882 * emultempl/spuelf.em (toe): Delete.
883 (spu_place_special_section): Add param to control section placement.
884 Adjust callers.
885 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
886 changes.
887 (spu_before_allocation): Adjust spu_elf_size_stubs call.
888 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
889
29183214
L
8902008-01-25 H.J. Lu <hongjiu.lu@intel.com>
891
892 PR ld/5670
893 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
894 warning.
895
53d25da6
AM
8962008-01-25 Alan Modra <amodra@bigpond.net.au>
897
898 * ld.texinfo (INSERT): Describe.
899 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
900 (INSERT_K, AFTER, BEFORE): Add as tokens.
901 (ifile_p1): Handle INSERT statements.
902 (saved_script_handle, force_make_executable): Move to..
903 * ldmain.c: ..here.
904 (previous_script_handle): New global var.
905 * ldmain.h (saved_script_handle, force_make_executable): Declare.
906 (previous_script_handle): Likewise.
907 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
908 * lexsup.c (parge_args <-T>): Set previous_script_handle.
909 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
910 (map_input_to_output_sections, print_statement): Likewise.
911 (lang_size_sections_1, lang_do_assignments_1): Likewise.
912 (insert_os_after): New function, extracted from..
913 (lang_insert_orphan): ..here.
914 (process_insert_statements): New function.
915 (lang_process): Call it.
916 (lang_add_insert): New function.
917 * ldlang.h (lang_insert_statement_enum): New.
918 (lang_insert_statement_type): New.
919 (lang_statement_union_type): Add insert_statement.
920 (lang_add_insert): Declare.
921
c19f06f2
BW
9222008-01-18 Bob Wilson <bob.wilson@acm.org>
923
924 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
925 changes from elf.sc.
8944f3c2 926
14ac84b4
AM
9272008-01-16 Alan Modra <amodra@bigpond.net.au>
928
929 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
930
3d00b095
AM
9312008-01-16 Alan Modra <amodra@bigpond.net.au>
932
933 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
934 (lang_afile_asection_pair_statement_type): Delete.
935 (lang_statement_union_type): Delete afile_asection_pair_statement.
936 * ldlang.c (lang_insert_orphan): Delete case handling the above.
937 (map_input_to_output_sections, print_statement): Likewise.
938
58da7b1b
KK
9392008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
940
941 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
942 with __data_start.
943 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
944
74f0fb50
AM
9452008-01-15 Alan Modra <amodra@bigpond.net.au>
946
947 PR 5604
948 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
949 syms to _bfd_elf_gc_keep.
950 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
951 ppc64_elf_edit_opd if no_opd_opt.
952
ac69cbc6
TG
9532008-01-11 Tristan Gingold <gingold@adacore.com>
954 Eric Botcazou <ebotcazou@adacore.com>
955
956 * ldlang.c (lang_end): Warns if the entry point is not found when
957 --gc-sections.
958 Emit an error if no root is specified when --gc-sections -r.
959 * ld.texinfo (Options): Document that --gc-sections is compatible
960 with -r and -q.
961 * ldmain.c (main): Do not error out if -r and --gc-sections.
962 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
963
71934f94
NC
9642008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
965
966 PR ld/5533
967 * ldlang.c (lang_end): Issue a warning for a missing start symbol
968 of a shared library if the symbol was specified on the command
969 line.
970
d5465ba2
AM
9712008-01-10 Alan Modra <amodra@bigpond.net.au>
972
973 * ld.texinfo (--gc-sections): Describe linker behaviour.
974
6c7ac64e 975For older changes see ChangeLog-2007
252b5132
RH
976\f
977Local Variables:
978mode: change-log
979left-margin: 8
980fill-column: 74
981version-control: never
982End:
This page took 0.525995 seconds and 4 git commands to generate.