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