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