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