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