* ld.texinfo (PowerPC64 ELF64): Fix typo.
[binutils.git] / ld / ChangeLog
blobb0ab26e749aa2e2ae29ab27e33c641035275a42f
1 2008-05-08  Tom Tromey  <tromey@redhat.com>
3         * ld.texinfo (PowerPC64 ELF64): Fix typo.
5 2008-05-08  Alan Modra  <amodra@bigpond.net.au>
7         * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
8         * elf32ppc.sh: If building with spu support, put ".data.spehandle"
9         sections at the start of ".data" and provide a symbol to locate
10         the directory of embedded spe programs.
12 2008-05-08  Alan Modra  <amodra@bigpond.net.au>
14         * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K.  Correct
15         MAX_K.
16         (fold_binary <SEGMENT_START>): Set expld.result.section to
17         current section.  Expand comment.  Formatting.
18         (fold_name <DEFINED>): Set expld.result.section to current section.
20 2008-04-28  Nathan Sidwell  <nathan@codesourcery.com>
22         * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
23         non-load sections.
25 2008-04-25  Michael Frysinger  <vapier@gentoo.org>
27         * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
28         and targ_extra_emuls to elf32bfin.
30 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
32         * aclocal.m4: Regenerate.
33         * configure: Regenerate.
35 2008-04-03  Kai Tietz  <kai.tietz@onevision.com>
37         * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
39 2008-04-08  Alan Modra  <amodra@bigpond.net.au>
41         * po/POTFILES.in: Regenerate.
43 2008-04-08  Alan Modra  <amodra@bigpond.net.au>
45         * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
46         auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
47         (spu_before_allocation): Warn on --auto-overlay and existing overlays.
48         (struct tflist, clean_tmp): Move.
49         (new_tmp_file): New function, extracted from..
50         (embedded_spu_file): ..here.
51         (spu_elf_open_overlay_script, spu_elf_relink): New function.
52         (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
53         Warn on --auto-overlay and zero local store.
54         (gld${EMULATION_NAME}_choose_target): New function to stash argv.
55         (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
56         OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
57         OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
58         (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
59         (PARSE_AND_LIST_OPTIONS): Likewise.
60         (PARSE_AND_LIST_ARGS_CASES): Likewise.
61         (LDEMUL_CHOOSE_TARGET): Define.
63 2008-04-03  Kai Tietz  <kai.tietz@onevision.com>
65         PR ld/6026
66         * pe-dll.c (make_head): Fix iat and thunk addend offset.
68 2008-03-31  Nick Clifton  <nickc@redhat.com>
70         * po/fr.po: Updated French translation.
72 2008-03-24  Ian Lance Taylor  <iant@google.com>
74         The sha1 code is now in libiberty.
75         * sha1.c: Remove.
76         * sha1.h: Remove.
77         * Makefile.am (CFILES): Remove sha1.c.
78         (HFILES): Remove sha1.h.
79         (OFILES): Remove sha1.o.
80         (ld_new_SOURCES): Remove sha1.c.
81         (sha1.o): Remove target.
82         * Makefile.in: Rebuild.
84 2008-03-20  Alan Modra  <amodra@bigpond.net.au>
86         * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
88 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90         * aclocal.m4: Regenerate.
91         * configure: Likewise.
92         * Makefile.in: Likewise.
94 2008-03-14  Alan Modra  <amodra@bigpond.net.au>
96         * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
97         spu_elf_build_stubs with is_spu_target.
99 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
101         * Makefile.am: Run "make dep-am".
102         * Makefile.in: Regenerate.
103         * configure: Regenerate.
105 2008-03-06  Joseph Myers  <joseph@codesourcery.com>
106             Roman Zippel  <zippel@linux-m68k.org>
108         * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
109         (COMMONPAGESIZE): Define.
111 2008-02-22  Nick Clifton  <nickc@redhat.com>
113         PR ld/5785
114         * ldlang.c (lang_size_sections_1): Honour the setting of an
115         lma_region even if there is no vma region set, or the vma region
116         is the same as the lma region.
118 2008-02-18  Nick Clifton  <nickc@redhat.com>
120         * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
121         relocatable link.
122         * scripttempl/elf32cr16.sc: Likewise.
123         * scripttempl/elf32cr16c.sc: Likewise.
124         * scripttempl/elf32crx.sc: Likewise.
125         * scripttempl/elf32sh-symbian.sc: Likewise.
126         * scripttempl/elf_chaos.sc: Likewise.
127         * scripttempl/elfd10v.sc: Likewise.
128         * scripttempl/elfi370.sc: Likewise.
129         * scripttempl/elfm68hc11.sc: Likewise.
130         * scripttempl/elfm68hc12.sc: Likewise.
131         * scripttempl/ip2k.sc: Likewise.
132         * scripttempl/iq2000.sc: Likewise.
133         * scripttempl/mep.sc: Likewise.
134         * scripttempl/v850.sc: Likewise.
135         * scripttempl/xstormy16.sc: Likewise.
137 2008-02-16  Alan Modra  <amodra@bigpond.net.au>
139         PR ld/5761
140         * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
141         load_base before calling make_abs.
143 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
145         * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
146         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
147         Likewise.
148         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
149         Likewise.
150         * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete.  Replace all
151         uses with..
152         (is_ppc_elf): ..this new macro.
154 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
156         * ldmain.h (output_bfd): Delete.
157         * ldmain.c (output_bfd): Delete.
158         Replace all occurrences of output_bfd with link_info.output_bfd.
159         * ldcref.c: Likewise.
160         * ldctor.c: Likewise.
161         * ldemul.c: Likewise.
162         * ldexp.c: Likewise.
163         * ldfile.c: Likewise.
164         * ldlang.c: Likewise.
165         * ldmisc.c: Likewise.
166         * ldwrite.c: Likewise.
167         * pe-dll.c: Likewise.
168         * emultempl/aix.em: Likewise.
169         * emultempl/alphaelf.em: Likewise.
170         * emultempl/armcoff.em: Likewise.
171         * emultempl/armelf.em: Likewise.
172         * emultempl/avrelf.em: Likewise.
173         * emultempl/beos.em: Likewise.
174         * emultempl/elf-generic.em: Likewise.
175         * emultempl/elf32.em: Likewise.
176         * emultempl/gld960.em: Likewise.
177         * emultempl/hppaelf.em: Likewise.
178         * emultempl/irix.em: Likewise.
179         * emultempl/linux.em: Likewise.
180         * emultempl/lnk960.em: Likewise.
181         * emultempl/m68hc1xelf.em: Likewise.
182         * emultempl/mmix-elfnmmo.em: Likewise.
183         * emultempl/mmo.em: Likewise.
184         * emultempl/pe.em: Likewise.
185         * emultempl/pep.em: Likewise.
186         * emultempl/ppc32elf.em: Likewise.
187         * emultempl/ppc64elf.em: Likewise.
188         * emultempl/scoreelf.em: Likewise.
189         * emultempl/sh64elf.em: Likewise.
190         * emultempl/spuelf.em: Likewise.
191         * emultempl/sunos.em: Likewise.
192         * emultempl/vanilla.em: Likewise.
193         * emultempl/vxworks.em: Likewise.
194         * emultempl/xtensaelf.em: Likewise.
195         * emultempl/z80.em: Likewise.
196         * ldlang.c (open_output): Don't return output, instead write
197         link_info_output_bfd directly.
198         * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
199         with link_info.output_bfd->xvec.
200         * emultempl/hppaelf.em: Likewise.
201         * emultempl/ppc32elf.em: Likewise.
202         * emultempl/ppc64elf.em: Likewise.
203         * emultempl/spuelf.em: Likewise.
205 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
207         * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
208         * ldfile.c (ldfile_add_library_path): Likewise.
209         * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
210         * emultempl/lnk960.em (lnk960_before_parse): Likewise.
211         * emultempl/spuelf.em (embedded_spu_file): Likewise.
213 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
215         * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
216         a "present" bit rather than low bit of .buf.  Correct indexing
217         into _ovly_buf_table.  Use relative loads and stores to access
218         overlay manager local vars.
219         * emultempl/spu_ovl.o: Regenerate.
221 2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>
223         PR 5715
224         * configure: Regenerated.
226 2008-01-31  Marc Gauthier  <marc@tensilica.com>
228         * configure.tgt (xtensa*-*-*): Recognize processor variants.
230 2008-01-28  Fabian Groffen  <grobian@gentoo.org>
232         * configure.tgt (x86_64-*-solaris2): Add support for this target.
234 2008-01-28  Vincent Riviere  <vincent.riviere@freesbee.fr>
236         PR ld/5652
237         * genscripts.sh: Check for the existence of BASH_LINENO not just
238         the BASH shell before generating line numbers in the emulation
239         file.
241 2008-01-28  Alan Modra  <amodra@bigpond.net.au>
243         * emultempl/spu_ovl.S: Rewrite.
244         * emultempl/spu_ovl.o: Regenerate.
245         * emultempl/spuelf.em (toe): Delete.
246         (spu_place_special_section): Add param to control section placement.
247         Adjust callers.
248         (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
249         changes.
250         (spu_before_allocation): Adjust spu_elf_size_stubs call.
251         (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
253 2008-01-25  H.J. Lu  <hongjiu.lu@intel.com>
255         PR ld/5670
256         * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
257         warning.
259 2008-01-25  Alan Modra  <amodra@bigpond.net.au>
261         * ld.texinfo (INSERT): Describe.
262         * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
263         (INSERT_K, AFTER, BEFORE): Add as tokens.
264         (ifile_p1): Handle INSERT statements.
265         (saved_script_handle, force_make_executable): Move to..
266         * ldmain.c: ..here.
267         (previous_script_handle): New global var.
268         * ldmain.h (saved_script_handle, force_make_executable): Declare.
269         (previous_script_handle): Likewise.
270         * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
271         * lexsup.c (parge_args <-T>): Set previous_script_handle.
272         * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
273         (map_input_to_output_sections, print_statement): Likewise.
274         (lang_size_sections_1, lang_do_assignments_1): Likewise.
275         (insert_os_after): New function, extracted from..
276         (lang_insert_orphan): ..here.
277         (process_insert_statements): New function.
278         (lang_process): Call it.
279         (lang_add_insert): New function.
280         * ldlang.h (lang_insert_statement_enum): New.
281         (lang_insert_statement_type): New.
282         (lang_statement_union_type): Add insert_statement.
283         (lang_add_insert): Declare.
285 2008-01-18  Bob Wilson  <bob.wilson@acm.org>
287         * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
288         changes from elf.sc.
289         
290 2008-01-16  Alan Modra  <amodra@bigpond.net.au>
292         * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
294 2008-01-16  Alan Modra  <amodra@bigpond.net.au>
296         * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
297         (lang_afile_asection_pair_statement_type): Delete.
298         (lang_statement_union_type): Delete afile_asection_pair_statement.
299         * ldlang.c (lang_insert_orphan): Delete case handling the above.
300         (map_input_to_output_sections, print_statement): Likewise.
302 2008-01-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
304         * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
305         with __data_start.
306         * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
308 2008-01-15  Alan Modra  <amodra@bigpond.net.au>
310         PR 5604
311         * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
312         syms to _bfd_elf_gc_keep.
313         * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
314         ppc64_elf_edit_opd if no_opd_opt.
316 2008-01-11  Tristan Gingold  <gingold@adacore.com>
317             Eric Botcazou  <ebotcazou@adacore.com>
319         * ldlang.c (lang_end): Warns if the entry point is not found when
320         --gc-sections.
321         Emit an error if no root is specified when --gc-sections -r.
322         * ld.texinfo (Options): Document that --gc-sections is compatible
323         with -r and -q.
324         * ldmain.c (main): Do not error out if -r and --gc-sections.
325         * scripttempl/elf.sc: Emit ENTRY command only if relocating.
327 2008-01-10  Daniel Jacobowitz  <drow@sources.redhat.com>
329         PR ld/5533
330         * ldlang.c (lang_end): Issue a warning for a missing start symbol
331         of a shared library if the symbol was specified on the command
332         line.
334 2008-01-10  Alan Modra  <amodra@bigpond.net.au>
336         * ld.texinfo (--gc-sections): Describe linker behaviour.
338 For older changes see ChangeLog-2007
340 Local Variables:
341 mode: change-log
342 left-margin: 8
343 fill-column: 74
344 version-control: never
345 End: