1 2008-05-21 Christophe Lyon <christophe.lyon@st.com>
2 Nick Clifton <nickc@redhat.com>
4 * ld.texinfo (ARM): Document --stub-group-size=N option.
5 Move description of --pic-veneer option into the ARM section.
6 * NEWS: Mention the support for long function calls.
8 2008-05-15 Christophe Lyon <christophe.lyon@st.com>
10 * emultempl/armelf.em (build_section_lists): New function.
12 (need_laying_out): Define.
14 (hook_stub_info): Define.
15 (hook_in_stub): New function.
16 (elf32_arm_add_stub_section): New function.
17 (gldarm_layout_sections_again): New function.
18 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
19 stubs for long calls if needed.
20 (arm_elf_create_output_section_statements): create stub_file bfd.
21 (arm_for_each_input_file_wrapper): New function.
22 (arm_lang_for_each_input_file): New function.
23 (lang_for_each_input_file): Define.
24 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
25 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
26 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
27 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
28 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
29 * lang.c (print_input_statement): Skip if bfd has
32 2008-05-14 Alan Modra <amodra@bigpond.net.au>
34 * Makefile.in: Regenerate.
36 2008-05-09 Kai Tietz <kai.tietz@onevision.com>
39 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
40 of long and change return type to bfd_vma.
41 (definfo): Change type of address from long to bfd_vma.
42 (set_pep_value): Replace strtoul to strtoull.
43 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
44 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
46 (quick_reloc): Change argument address from int to bfd_size_type.
48 2008-05-08 Tom Tromey <tromey@redhat.com>
50 * ld.texinfo (PowerPC64 ELF64): Fix typo.
52 2008-05-08 Alan Modra <amodra@bigpond.net.au>
54 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
55 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
56 sections at the start of ".data" and provide a symbol to locate
57 the directory of embedded spe programs.
59 2008-05-08 Alan Modra <amodra@bigpond.net.au>
61 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
63 (fold_binary <SEGMENT_START>): Set expld.result.section to
64 current section. Expand comment. Formatting.
65 (fold_name <DEFINED>): Set expld.result.section to current section.
67 2008-04-28 Nathan Sidwell <nathan@codesourcery.com>
69 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
72 2008-04-25 Michael Frysinger <vapier@gentoo.org>
74 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
75 and targ_extra_emuls to elf32bfin.
77 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
79 * aclocal.m4: Regenerate.
80 * configure: Regenerate.
82 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
84 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
86 2008-04-08 Alan Modra <amodra@bigpond.net.au>
88 * po/POTFILES.in: Regenerate.
90 2008-04-08 Alan Modra <amodra@bigpond.net.au>
92 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
93 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
94 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
95 (struct tflist, clean_tmp): Move.
96 (new_tmp_file): New function, extracted from..
97 (embedded_spu_file): ..here.
98 (spu_elf_open_overlay_script, spu_elf_relink): New function.
99 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
100 Warn on --auto-overlay and zero local store.
101 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
102 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
103 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
104 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
105 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
106 (PARSE_AND_LIST_OPTIONS): Likewise.
107 (PARSE_AND_LIST_ARGS_CASES): Likewise.
108 (LDEMUL_CHOOSE_TARGET): Define.
110 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
113 * pe-dll.c (make_head): Fix iat and thunk addend offset.
115 2008-03-31 Nick Clifton <nickc@redhat.com>
117 * po/fr.po: Updated French translation.
119 2008-03-24 Ian Lance Taylor <iant@google.com>
121 The sha1 code is now in libiberty.
124 * Makefile.am (CFILES): Remove sha1.c.
125 (HFILES): Remove sha1.h.
126 (OFILES): Remove sha1.o.
127 (ld_new_SOURCES): Remove sha1.c.
128 (sha1.o): Remove target.
129 * Makefile.in: Rebuild.
131 2008-03-20 Alan Modra <amodra@bigpond.net.au>
133 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
135 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
137 * aclocal.m4: Regenerate.
138 * configure: Likewise.
139 * Makefile.in: Likewise.
141 2008-03-14 Alan Modra <amodra@bigpond.net.au>
143 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
144 spu_elf_build_stubs with is_spu_target.
146 2008-03-13 Alan Modra <amodra@bigpond.net.au>
148 * Makefile.am: Run "make dep-am".
149 * Makefile.in: Regenerate.
150 * configure: Regenerate.
152 2008-03-06 Joseph Myers <joseph@codesourcery.com>
153 Roman Zippel <zippel@linux-m68k.org>
155 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
156 (COMMONPAGESIZE): Define.
158 2008-02-22 Nick Clifton <nickc@redhat.com>
161 * ldlang.c (lang_size_sections_1): Honour the setting of an
162 lma_region even if there is no vma region set, or the vma region
163 is the same as the lma region.
165 2008-02-18 Nick Clifton <nickc@redhat.com>
167 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
169 * scripttempl/elf32cr16.sc: Likewise.
170 * scripttempl/elf32cr16c.sc: Likewise.
171 * scripttempl/elf32crx.sc: Likewise.
172 * scripttempl/elf32sh-symbian.sc: Likewise.
173 * scripttempl/elf_chaos.sc: Likewise.
174 * scripttempl/elfd10v.sc: Likewise.
175 * scripttempl/elfi370.sc: Likewise.
176 * scripttempl/elfm68hc11.sc: Likewise.
177 * scripttempl/elfm68hc12.sc: Likewise.
178 * scripttempl/ip2k.sc: Likewise.
179 * scripttempl/iq2000.sc: Likewise.
180 * scripttempl/mep.sc: Likewise.
181 * scripttempl/v850.sc: Likewise.
182 * scripttempl/xstormy16.sc: Likewise.
184 2008-02-16 Alan Modra <amodra@bigpond.net.au>
187 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
188 load_base before calling make_abs.
190 2008-02-15 Alan Modra <amodra@bigpond.net.au>
192 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
193 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
195 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
197 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
199 (is_ppc_elf): ..this new macro.
201 2008-02-15 Alan Modra <amodra@bigpond.net.au>
203 * ldmain.h (output_bfd): Delete.
204 * ldmain.c (output_bfd): Delete.
205 Replace all occurrences of output_bfd with link_info.output_bfd.
206 * ldcref.c: Likewise.
207 * ldctor.c: Likewise.
208 * ldemul.c: Likewise.
210 * ldfile.c: Likewise.
211 * ldlang.c: Likewise.
212 * ldmisc.c: Likewise.
213 * ldwrite.c: Likewise.
214 * pe-dll.c: Likewise.
215 * emultempl/aix.em: Likewise.
216 * emultempl/alphaelf.em: Likewise.
217 * emultempl/armcoff.em: Likewise.
218 * emultempl/armelf.em: Likewise.
219 * emultempl/avrelf.em: Likewise.
220 * emultempl/beos.em: Likewise.
221 * emultempl/elf-generic.em: Likewise.
222 * emultempl/elf32.em: Likewise.
223 * emultempl/gld960.em: Likewise.
224 * emultempl/hppaelf.em: Likewise.
225 * emultempl/irix.em: Likewise.
226 * emultempl/linux.em: Likewise.
227 * emultempl/lnk960.em: Likewise.
228 * emultempl/m68hc1xelf.em: Likewise.
229 * emultempl/mmix-elfnmmo.em: Likewise.
230 * emultempl/mmo.em: Likewise.
231 * emultempl/pe.em: Likewise.
232 * emultempl/pep.em: Likewise.
233 * emultempl/ppc32elf.em: Likewise.
234 * emultempl/ppc64elf.em: Likewise.
235 * emultempl/scoreelf.em: Likewise.
236 * emultempl/sh64elf.em: Likewise.
237 * emultempl/spuelf.em: Likewise.
238 * emultempl/sunos.em: Likewise.
239 * emultempl/vanilla.em: Likewise.
240 * emultempl/vxworks.em: Likewise.
241 * emultempl/xtensaelf.em: Likewise.
242 * emultempl/z80.em: Likewise.
243 * ldlang.c (open_output): Don't return output, instead write
244 link_info_output_bfd directly.
245 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
246 with link_info.output_bfd->xvec.
247 * emultempl/hppaelf.em: Likewise.
248 * emultempl/ppc32elf.em: Likewise.
249 * emultempl/ppc64elf.em: Likewise.
250 * emultempl/spuelf.em: Likewise.
252 2008-02-07 Alan Modra <amodra@bigpond.net.au>
254 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
255 * ldfile.c (ldfile_add_library_path): Likewise.
256 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
257 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
258 * emultempl/spuelf.em (embedded_spu_file): Likewise.
260 2008-02-07 Alan Modra <amodra@bigpond.net.au>
262 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
263 a "present" bit rather than low bit of .buf. Correct indexing
264 into _ovly_buf_table. Use relative loads and stores to access
265 overlay manager local vars.
266 * emultempl/spu_ovl.o: Regenerate.
268 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
271 * configure: Regenerated.
273 2008-01-31 Marc Gauthier <marc@tensilica.com>
275 * configure.tgt (xtensa*-*-*): Recognize processor variants.
277 2008-01-28 Fabian Groffen <grobian@gentoo.org>
279 * configure.tgt (x86_64-*-solaris2): Add support for this target.
281 2008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
284 * genscripts.sh: Check for the existence of BASH_LINENO not just
285 the BASH shell before generating line numbers in the emulation
288 2008-01-28 Alan Modra <amodra@bigpond.net.au>
290 * emultempl/spu_ovl.S: Rewrite.
291 * emultempl/spu_ovl.o: Regenerate.
292 * emultempl/spuelf.em (toe): Delete.
293 (spu_place_special_section): Add param to control section placement.
295 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
297 (spu_before_allocation): Adjust spu_elf_size_stubs call.
298 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
300 2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
303 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
306 2008-01-25 Alan Modra <amodra@bigpond.net.au>
308 * ld.texinfo (INSERT): Describe.
309 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
310 (INSERT_K, AFTER, BEFORE): Add as tokens.
311 (ifile_p1): Handle INSERT statements.
312 (saved_script_handle, force_make_executable): Move to..
314 (previous_script_handle): New global var.
315 * ldmain.h (saved_script_handle, force_make_executable): Declare.
316 (previous_script_handle): Likewise.
317 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
318 * lexsup.c (parge_args <-T>): Set previous_script_handle.
319 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
320 (map_input_to_output_sections, print_statement): Likewise.
321 (lang_size_sections_1, lang_do_assignments_1): Likewise.
322 (insert_os_after): New function, extracted from..
323 (lang_insert_orphan): ..here.
324 (process_insert_statements): New function.
325 (lang_process): Call it.
326 (lang_add_insert): New function.
327 * ldlang.h (lang_insert_statement_enum): New.
328 (lang_insert_statement_type): New.
329 (lang_statement_union_type): Add insert_statement.
330 (lang_add_insert): Declare.
332 2008-01-18 Bob Wilson <bob.wilson@acm.org>
334 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
337 2008-01-16 Alan Modra <amodra@bigpond.net.au>
339 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
341 2008-01-16 Alan Modra <amodra@bigpond.net.au>
343 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
344 (lang_afile_asection_pair_statement_type): Delete.
345 (lang_statement_union_type): Delete afile_asection_pair_statement.
346 * ldlang.c (lang_insert_orphan): Delete case handling the above.
347 (map_input_to_output_sections, print_statement): Likewise.
349 2008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
351 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
353 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
355 2008-01-15 Alan Modra <amodra@bigpond.net.au>
358 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
359 syms to _bfd_elf_gc_keep.
360 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
361 ppc64_elf_edit_opd if no_opd_opt.
363 2008-01-11 Tristan Gingold <gingold@adacore.com>
364 Eric Botcazou <ebotcazou@adacore.com>
366 * ldlang.c (lang_end): Warns if the entry point is not found when
368 Emit an error if no root is specified when --gc-sections -r.
369 * ld.texinfo (Options): Document that --gc-sections is compatible
371 * ldmain.c (main): Do not error out if -r and --gc-sections.
372 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
374 2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
377 * ldlang.c (lang_end): Issue a warning for a missing start symbol
378 of a shared library if the symbol was specified on the command
381 2008-01-10 Alan Modra <amodra@bigpond.net.au>
383 * ld.texinfo (--gc-sections): Describe linker behaviour.
385 For older changes see ChangeLog-2007
391 version-control: never