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