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