* listing.c (print_timestamp): Use localtime rather than
[binutils.git] / ld / ChangeLog
blob106161cc3c48646901943d0da23575639f906770
1 2008-04-08  Alan Modra  <amodra@bigpond.net.au>
3         * po/POTFILES.in: Regenerate.
5 2008-04-08  Alan Modra  <amodra@bigpond.net.au>
7         * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
8         auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
9         (spu_before_allocation): Warn on --auto-overlay and existing overlays.
10         (struct tflist, clean_tmp): Move.
11         (new_tmp_file): New function, extracted from..
12         (embedded_spu_file): ..here.
13         (spu_elf_open_overlay_script, spu_elf_relink): New function.
14         (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
15         Warn on --auto-overlay and zero local store.
16         (gld${EMULATION_NAME}_choose_target): New function to stash argv.
17         (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
18         OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
19         OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
20         (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
21         (PARSE_AND_LIST_OPTIONS): Likewise.
22         (PARSE_AND_LIST_ARGS_CASES): Likewise.
23         (LDEMUL_CHOOSE_TARGET): Define.
25 2008-04-03  Kai Tietz  <kai.tietz@onevision.com>
27         PR ld/6026
28         * pe-dll.c (make_head): Fix iat and thunk addend offset.
30 2008-03-31  Nick Clifton  <nickc@redhat.com>
32         * po/fr.po: Updated French translation.
34 2008-03-24  Ian Lance Taylor  <iant@google.com>
36         The sha1 code is now in libiberty.
37         * sha1.c: Remove.
38         * sha1.h: Remove.
39         * Makefile.am (CFILES): Remove sha1.c.
40         (HFILES): Remove sha1.h.
41         (OFILES): Remove sha1.o.
42         (ld_new_SOURCES): Remove sha1.c.
43         (sha1.o): Remove target.
44         * Makefile.in: Rebuild.
46 2008-03-20  Alan Modra  <amodra@bigpond.net.au>
48         * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
50 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52         * aclocal.m4: Regenerate.
53         * configure: Likewise.
54         * Makefile.in: Likewise.
56 2008-03-14  Alan Modra  <amodra@bigpond.net.au>
58         * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
59         spu_elf_build_stubs with is_spu_target.
61 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
63         * Makefile.am: Run "make dep-am".
64         * Makefile.in: Regenerate.
65         * configure: Regenerate.
67 2008-03-06  Joseph Myers  <joseph@codesourcery.com>
68             Roman Zippel  <zippel@linux-m68k.org>
70         * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
71         (COMMONPAGESIZE): Define.
73 2008-02-22  Nick Clifton  <nickc@redhat.com>
75         PR ld/5785
76         * ldlang.c (lang_size_sections_1): Honour the setting of an
77         lma_region even if there is no vma region set, or the vma region
78         is the same as the lma region.
80 2008-02-18  Nick Clifton  <nickc@redhat.com>
82         * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
83         relocatable link.
84         * scripttempl/elf32cr16.sc: Likewise.
85         * scripttempl/elf32cr16c.sc: Likewise.
86         * scripttempl/elf32crx.sc: Likewise.
87         * scripttempl/elf32sh-symbian.sc: Likewise.
88         * scripttempl/elf_chaos.sc: Likewise.
89         * scripttempl/elfd10v.sc: Likewise.
90         * scripttempl/elfi370.sc: Likewise.
91         * scripttempl/elfm68hc11.sc: Likewise.
92         * scripttempl/elfm68hc12.sc: Likewise.
93         * scripttempl/ip2k.sc: Likewise.
94         * scripttempl/iq2000.sc: Likewise.
95         * scripttempl/mep.sc: Likewise.
96         * scripttempl/v850.sc: Likewise.
97         * scripttempl/xstormy16.sc: Likewise.
99 2008-02-16  Alan Modra  <amodra@bigpond.net.au>
101         PR ld/5761
102         * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
103         load_base before calling make_abs.
105 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
107         * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
108         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
109         Likewise.
110         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
111         Likewise.
112         * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete.  Replace all
113         uses with..
114         (is_ppc_elf): ..this new macro.
116 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
118         * ldmain.h (output_bfd): Delete.
119         * ldmain.c (output_bfd): Delete.
120         Replace all occurrences of output_bfd with link_info.output_bfd.
121         * ldcref.c: Likewise.
122         * ldctor.c: Likewise.
123         * ldemul.c: Likewise.
124         * ldexp.c: Likewise.
125         * ldfile.c: Likewise.
126         * ldlang.c: Likewise.
127         * ldmisc.c: Likewise.
128         * ldwrite.c: Likewise.
129         * pe-dll.c: Likewise.
130         * emultempl/aix.em: Likewise.
131         * emultempl/alphaelf.em: Likewise.
132         * emultempl/armcoff.em: Likewise.
133         * emultempl/armelf.em: Likewise.
134         * emultempl/avrelf.em: Likewise.
135         * emultempl/beos.em: Likewise.
136         * emultempl/elf-generic.em: Likewise.
137         * emultempl/elf32.em: Likewise.
138         * emultempl/gld960.em: Likewise.
139         * emultempl/hppaelf.em: Likewise.
140         * emultempl/irix.em: Likewise.
141         * emultempl/linux.em: Likewise.
142         * emultempl/lnk960.em: Likewise.
143         * emultempl/m68hc1xelf.em: Likewise.
144         * emultempl/mmix-elfnmmo.em: Likewise.
145         * emultempl/mmo.em: Likewise.
146         * emultempl/pe.em: Likewise.
147         * emultempl/pep.em: Likewise.
148         * emultempl/ppc32elf.em: Likewise.
149         * emultempl/ppc64elf.em: Likewise.
150         * emultempl/scoreelf.em: Likewise.
151         * emultempl/sh64elf.em: Likewise.
152         * emultempl/spuelf.em: Likewise.
153         * emultempl/sunos.em: Likewise.
154         * emultempl/vanilla.em: Likewise.
155         * emultempl/vxworks.em: Likewise.
156         * emultempl/xtensaelf.em: Likewise.
157         * emultempl/z80.em: Likewise.
158         * ldlang.c (open_output): Don't return output, instead write
159         link_info_output_bfd directly.
160         * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
161         with link_info.output_bfd->xvec.
162         * emultempl/hppaelf.em: Likewise.
163         * emultempl/ppc32elf.em: Likewise.
164         * emultempl/ppc64elf.em: Likewise.
165         * emultempl/spuelf.em: Likewise.
167 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
169         * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
170         * ldfile.c (ldfile_add_library_path): Likewise.
171         * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
172         * emultempl/lnk960.em (lnk960_before_parse): Likewise.
173         * emultempl/spuelf.em (embedded_spu_file): Likewise.
175 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
177         * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
178         a "present" bit rather than low bit of .buf.  Correct indexing
179         into _ovly_buf_table.  Use relative loads and stores to access
180         overlay manager local vars.
181         * emultempl/spu_ovl.o: Regenerate.
183 2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>
185         PR 5715
186         * configure: Regenerated.
188 2008-01-31  Marc Gauthier  <marc@tensilica.com>
190         * configure.tgt (xtensa*-*-*): Recognize processor variants.
192 2008-01-28  Fabian Groffen  <grobian@gentoo.org>
194         * configure.tgt (x86_64-*-solaris2): Add support for this target.
196 2008-01-28  Vincent Riviere  <vincent.riviere@freesbee.fr>
198         PR ld/5652
199         * genscripts.sh: Check for the existence of BASH_LINENO not just
200         the BASH shell before generating line numbers in the emulation
201         file.
203 2008-01-28  Alan Modra  <amodra@bigpond.net.au>
205         * emultempl/spu_ovl.S: Rewrite.
206         * emultempl/spu_ovl.o: Regenerate.
207         * emultempl/spuelf.em (toe): Delete.
208         (spu_place_special_section): Add param to control section placement.
209         Adjust callers.
210         (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
211         changes.
212         (spu_before_allocation): Adjust spu_elf_size_stubs call.
213         (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
215 2008-01-25  H.J. Lu  <hongjiu.lu@intel.com>
217         PR ld/5670
218         * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
219         warning.
221 2008-01-25  Alan Modra  <amodra@bigpond.net.au>
223         * ld.texinfo (INSERT): Describe.
224         * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
225         (INSERT_K, AFTER, BEFORE): Add as tokens.
226         (ifile_p1): Handle INSERT statements.
227         (saved_script_handle, force_make_executable): Move to..
228         * ldmain.c: ..here.
229         (previous_script_handle): New global var.
230         * ldmain.h (saved_script_handle, force_make_executable): Declare.
231         (previous_script_handle): Likewise.
232         * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
233         * lexsup.c (parge_args <-T>): Set previous_script_handle.
234         * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
235         (map_input_to_output_sections, print_statement): Likewise.
236         (lang_size_sections_1, lang_do_assignments_1): Likewise.
237         (insert_os_after): New function, extracted from..
238         (lang_insert_orphan): ..here.
239         (process_insert_statements): New function.
240         (lang_process): Call it.
241         (lang_add_insert): New function.
242         * ldlang.h (lang_insert_statement_enum): New.
243         (lang_insert_statement_type): New.
244         (lang_statement_union_type): Add insert_statement.
245         (lang_add_insert): Declare.
247 2008-01-18  Bob Wilson  <bob.wilson@acm.org>
249         * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
250         changes from elf.sc.
251         
252 2008-01-16  Alan Modra  <amodra@bigpond.net.au>
254         * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
256 2008-01-16  Alan Modra  <amodra@bigpond.net.au>
258         * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
259         (lang_afile_asection_pair_statement_type): Delete.
260         (lang_statement_union_type): Delete afile_asection_pair_statement.
261         * ldlang.c (lang_insert_orphan): Delete case handling the above.
262         (map_input_to_output_sections, print_statement): Likewise.
264 2008-01-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
266         * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
267         with __data_start.
268         * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
270 2008-01-15  Alan Modra  <amodra@bigpond.net.au>
272         PR 5604
273         * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
274         syms to _bfd_elf_gc_keep.
275         * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
276         ppc64_elf_edit_opd if no_opd_opt.
278 2008-01-11  Tristan Gingold  <gingold@adacore.com>
279             Eric Botcazou  <ebotcazou@adacore.com>
281         * ldlang.c (lang_end): Warns if the entry point is not found when
282         --gc-sections.
283         Emit an error if no root is specified when --gc-sections -r.
284         * ld.texinfo (Options): Document that --gc-sections is compatible
285         with -r and -q.
286         * ldmain.c (main): Do not error out if -r and --gc-sections.
287         * scripttempl/elf.sc: Emit ENTRY command only if relocating.
289 2008-01-10  Daniel Jacobowitz  <drow@sources.redhat.com>
291         PR ld/5533
292         * ldlang.c (lang_end): Issue a warning for a missing start symbol
293         of a shared library if the symbol was specified on the command
294         line.
296 2008-01-10  Alan Modra  <amodra@bigpond.net.au>
298         * ld.texinfo (--gc-sections): Describe linker behaviour.
300 For older changes see ChangeLog-2007
302 Local Variables:
303 mode: change-log
304 left-margin: 8
305 fill-column: 74
306 version-control: never
307 End: