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