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