bfd/, binutils/, gas/, gprof/, ld/, opcodes/
[external/binutils.git] / ld / ChangeLog
1 2006-06-05  Daniel Jacobowitz  <dan@codesourcery.com>
2
3         * po/Make-in (top_builddir): Define.
4
5 2006-06-05  Alan Modra  <amodra@bigpond.net.au>
6
7         * ldexp.c (exp_get_abs_int): Make error message the same as
8         others emitted in this file.
9
10 2006-06-05  Alan Modra  <amodra@bigpond.net.au>
11
12         * config.in: Regenerate.
13
14 2006-06-05  Alan Modra  <amodra@bigpond.net.au>
15
16         * ldlang.c (lookup_name): Delete dead code.  Remove FIXMEs.
17
18 2006-06-03  Alan Modra  <amodra@bigpond.net.au>
19
20         * emultempl/elf32.em (global_found): Make it a pointer.
21         (stat_needed, try_needed): Adjust.
22         (check_needed): Don't skip non-loaded as-needed entries.  Only
23         consider entries with both filename and the_bfd non-null.
24         (after_open): Try loading non-loaded as-needed libs to satisfy
25         DT_NEEDED libs.
26
27 2006-06-02  Joseph S. Myers  <joseph@codesourcery.com>
28
29         * Makefile.am (TEXI2DVI): Add -I $(top_srcdir)/../libiberty.
30         * Makefile.in: Regenerate.
31
32 2006-05-31  Daniel Jacobowitz  <dan@codesourcery.com>
33
34         * Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
35         and LIBINTL_DEP everywhere.
36         (INTLLIBS): Remove.
37         (INCLUDES): Use @INCINTL@.
38         * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS.
39         Remove local code for po/Makefile.
40         * Makefile.in, configure: Regenerated.
41
42 2006-05-30  H.J. Lu  <hongjiu.lu@intel.com>
43
44         * emulparams/arcelf.sh (MAXPAGESIZE): Changed to
45         "CONSTANT (MAXPAGESIZE)".
46         * emulparams/armelf_nbsd.sh: Likewise.
47         * emulparams/armelf_vxworks.sh: Likewise.
48         * emulparams/armnto.sh: Likewise.
49         * emulparams/armsymbian.sh: Likewise.
50         * emulparams/crislinux.sh: Likewise.
51         * emulparams/elf32_i860.sh: Likewise.
52         * emulparams/elf32_i960.sh: Likewise.
53         * emulparams/elf32am33lin.sh: Likewise.
54         * emulparams/elf32bfinfd.sh: Likewise.
55         * emulparams/elf32bmipn32-defs.sh: Likewise.
56         * emulparams/elf32frvfd.sh: Likewise.
57         * emulparams/elf32i370.sh: Likewise.
58         * emulparams/elf32lppcnto.sh: Likewise.
59         * emulparams/elf32mcore.sh: Likewise.
60         * emulparams/elf32openrisc.sh: Likewise.
61         * emulparams/elf32ppcnto.sh: Likewise.
62         * emulparams/elf32ppcwindiss.sh: Likewise.
63         * emulparams/elf32vax.sh: Likewise.
64         * emulparams/elf32xc16x.sh: Likewise.
65         * emulparams/elf32xc16xl.sh: Likewise.
66         * emulparams/elf32xc16xs.sh: Likewise.
67         * emulparams/elf64_aix.sh: Likewise.
68         * emulparams/elf64hppa.sh: Likewise.
69         * emulparams/elf64mmix.sh: Likewise.
70         * emulparams/elf_i386_be.sh: Likewise.
71         * emulparams/elf_i386_chaos.sh: Likewise.
72         * emulparams/elf_i386_ldso.sh: Likewise.
73         * emulparams/hppa64linux.sh: Likewise.
74         * emulparams/hppalinux.sh: Likewise.
75         * emulparams/hppaobsd.sh: Likewise.
76         * emulparams/i386lynx.sh: Likewise.
77         * emulparams/i386moss.sh: Likewise.
78         * emulparams/i386nto.sh: Likewise.
79         * emulparams/i386nw.sh: Likewise.
80         * emulparams/m32relf_linux.sh: Likewise.
81         * emulparams/m68kpsos.sh: Likewise.
82         * emulparams/or32elf.sh: Likewise.
83         * emulparams/pjelf.sh: Likewise.
84         * emulparams/pjlelf.sh: Likewise.
85         * emulparams/ppclynx.sh: Likewise.
86         * emulparams/ppcnw.sh: Likewise.
87         * emulparams/shelf32_nbsd.sh : Likewise.
88         * emulparams/shelf_nbsd.sh: Likewise.
89         * emulparams/shelf_nto.sh: Likewise.
90         * emulparams/shlelf_nto.sh: Likewise.
91         * emulparams/xtensa-config.sh: Likewise.
92
93         * emulparams/armelf_linux.sh (MAXPAGESIZE): Changed to
94         "CONSTANT (MAXPAGESIZE)".
95         (COMMONPAGESIZE): Changed to "CONSTANT (COMMONPAGESIZE)".
96         * emulparams/elf32_sparc.sh: Likewise.
97         * emulparams/elf32bmip.sh: Likewise.
98         * emulparams/elf32ppccommon.sh: Likewise.
99         * emulparams/elf64_ia64.sh: Likewise.
100         * emulparams/elf64_s390.sh: Likewise.
101         * emulparams/elf64_sparc.sh: Likewise.
102         * emulparams/elf64alpha.sh: Likewise.
103         * emulparams/elf64ppc.sh: Likewise.
104         * emulparams/elf_i386.sh: Likewise.
105         * emulparams/elf_i386_vxworks.sh: Likewise.
106         * emulparams/elf_s390.sh: Likewise.
107         * emulparams/elf_x86_64.sh: Likewise.
108         * emulparams/shlelf32_linux.sh: Likewise.
109         * emulparams/shlelf_linux.sh: Likewise.
110
111         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Changed to
112         "CONSTANT (COMMONPAGESIZE)".
113         * emulparams/elf32btsmipn32.sh: Likewise.
114
115         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
116         "-z max-page-size=" and "-z common-page-size=".
117         (gld${EMULATION_NAME}_list_options): Likewise.
118
119         * ld.h (ld_config_type): Add maxpagesize and commonpagesize.
120
121         * ld.texinfo: Document "-z max-page-size=" and
122         "-z common-page-size=".
123
124         * ldexp.c (exp_print_token): Handle CONSTANT.
125         (fold_name): Likewise.
126         * ldgram.y: Likewise.
127         * ldlex.l: Likewise.
128
129         * ldmain.c (main): Initiliaze config.maxpagesize and
130         config.commonpagesize. Call bfd_emul_set_maxpagesize if
131         config.maxpagesize isn't 0. Call bfd_emul_set_commonpagesize if
132         config.commonpagesize config.maxpagesize isn't 0.
133
134 2006-05-30  Nick Clifton  <nickc@redhat.com>
135
136         * po/es.po: Updated Spanish translation.
137
138 2006-05-25  H.J. Lu  <hongjiu.lu@intel.com>
139
140         * emulparams/elf_x86_64.sh (MAXPAGESIZE): Updated to 0x200000.
141
142 2006-05-24  H.J. Lu  <hongjiu.lu@intel.com>
143
144         PR ld/1485
145         * configure.in: Use ${srcdir}/../bfd/config.bfd to check 64bit
146         bfd.  Support 64bit host for --enable-targets=all.
147         * configure: Regenerated.
148
149 2006-05-24  Nick Clifton  <nickc@redhat.com>
150
151         * po/vi.po: Updated Vietnamese translation.
152
153 2006-05-24  Bjoern Haase  <bjoern.m.haase@web.de> 
154
155         * configure.tgt: Add avr6 to emulation list.
156         * Makefile.am: Add eavr6.o and corresponding rule.
157         * Makefile.in: Regenerate.
158         * emulparams/avr6.sh: New file.
159         * emulparams/avrX.sh (TEMPLATE_NAME): Use elf32 instead of generic
160         for target option support.
161         (EXTRA_EM_FILE): Add reference to new em template file avrelf.
162         * scripttempl/avr.sc: Add ".trampolines" section.       
163         * emultempl/avrelf.em: Add new file for target specific options.
164
165 2006-05-22  Nick Clifton  <nickc@redhat.com>
166
167         * scripttempl/elf32crx.sc (.rdata): Add .rodata.*.
168
169 2006-05-19  Alan Modra  <amodra@bigpond.net.au>
170
171         * ldlang.c (lang_size_sections_1): Don't check mem regions for
172         os->ignored sections.
173
174 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
175
176         * ldlang.c (lang_size_sections): Call lang_reset_memory_regions
177         before redoing one_lang_size_sections_pass.
178
179 2006-05-11  Carlos O'Donell  <carlos@codesourcery.com>
180
181         * ld.texinfo: Rename "Index" to "LD Index" 
182
183 2006-05-11  Pedro Alves  <pedro_alves@portugalmail.pt>
184
185         * pe-dll.c (autofilter_symbollist): Add Dllmain,
186         DllMainCRTStartup, _DllMainCRTStartup and .text.
187         (autofilter_liblist): Add libcegcc.
188         (autofilter_symbolprefixlist): Add __imp_ and .idata$.
189         (generate_reloc): Do not skip sections without a SEC_LOAD flag,
190         they can still contain relocs that need processing.
191         Skip the .idata$6 section.
192         (jmp_arm_bytes): New array: Contains byte codes for an ARM jump.
193         (make_one): Use the new array.
194         (make_import_fixup_entry): Use .idata$2 instead of .idata$3.
195         * emultempl/pe.em (MajorSubsystemVersion): Set to 3 for armpe.
196
197 2006-05-05  Alan Modra  <amodra@bigpond.net.au>
198
199         * ld.texinfo: Document PowerPC and PowerPC64 options.
200         * gen-doc.texi: Enable.
201
202 2006-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
203
204         * Makefile.am (AM_MAKEINFOFLAGS): Add libiberty.
205         (TEXI2POD): Use AM_MAKEINFOFLAGS.
206         (configdoc.texi): Don't set top_srcdir.
207         * ld.texinfo: Don't use top_srcdir.
208         * aclocal.m4, Makefile.in: Regenerated.
209
210 2006-04-19  Alan Modra  <amodra@bigpond.net.au>
211
212         * ldlang.c (wild): Tidy default_common_section loop.
213         (print_input_section): Format.
214
215         * configure: Regenerate.
216
217 2006-04-16  Daniel Jacobowitz  <dan@codesourcery.com>
218
219         * po/POTFILES.in: Regenerated.
220
221 2006-04-16  Daniel Jacobowitz  <dan@codesourcery.com>
222
223         * config.in: Regenerated.
224
225 2006-04-14  David Heine  <dlheine@tensilica.com>
226             Bob Wilson  <bob.wilson@acm.org>
227
228         * emultempl/xtensaelf.em (elf_xtensa_before_allocation): Call new
229         function to strip inconsistent linkonce sections.
230         (input_section_linked_worker, input_section_linked): New.
231         (is_inconsistent_linkonce_section): New.
232         (xtensa_strip_inconsistent_linkonce_sections): New.
233
234 2006-04-11  Diego Pettenò  <flameeyes@gentoo.org>
235
236         * emultempl/elf32.em: Add support for elf-hints.h on FreeBSD
237         and Dragonfly targets.
238         * configure.in (AC_CHECK_HEADERS): Add elf-hints.h.
239         * Makefile.am (HFILES): Add elf-hints-local.h.
240         * elf-hints-local.h: New file.
241         * Makefile.in: Regenerate.
242         * configure: Regenerate.
243
244 2006-04-07  Bernhard Fischer  <aldot@gcc.gnu.org>
245
246         * ld.texinfo: Fix typo in documentation of --check-sections.
247
248 2006-04-07  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
249
250         * ldlang.c (load_symbols): Set as_needed and add_needed according
251         to the corresponding script's fields while processing it.
252
253 2006-04-06  Carlos O'Donell  <carlos@codesourcery.com>
254
255         * Makefile.am: Add install-html, install-html-am, and
256         install-html-recursive targets.
257         * Makefile.in: Regenerate.
258         * configure.in: AC_SUBST datarootdir, docdir, htmldir.
259         * configure: Regenerate.
260         * po/Make-in: Add install-html target.
261
262 2006-04-06  H.J. Lu  <hongjiu.lu@intel.com>
263
264         * emultempl/ia64elf.em: Set link_info.relax_pass to 2. Remove
265         link_info.need_relax_finalize.
266
267         * ldlang.c (relax_sections): New.
268         (lang_process): Use. Call relax_sections link_info.relax_pass
269         times.
270
271         * ldmain.c (main): Set link_info.relax_pass to 1. Remove
272         link_info.need_relax_finalize.
273
274 2006-04-05  Alan Modra  <amodra@bigpond.net.au>
275
276         * Makefile.am (GENSCRIPTS): Pass prefix.
277         * Makefile.in: Regenerate.
278         * genscripts.sh: Adjust for extra parameter.
279         * emultempl/elf32.em (parse_ld_so_conf): Return true iff file
280         exists.
281         (check_ld_so_conf): Use ${prefix}/etc/ld.so.conf if it exists.
282         * NEWS: Update.
283
284 2006-04-05  Richard Sandiford  <richard@codesourcery.com>
285             Daniel Jacobowitz  <dan@codesourcery.com>
286
287         * configure.tgt (sparc*-*-vxworks*): New stanza.
288         * emulparams/elf32_sparc_vxworks.sh: New file.
289         * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_vxworks.o.
290         (eelf32_sparc_vxworks.c): New rule.
291         * Makefile.in: Regenerate.
292
293 2006-04-04  Eric Botcazou  <ebotcazou@adacore.com>
294
295         * ldlang.c (lang_map): Print the list of discarded input sections.
296         (print_input_section): Change parameter and print zero-sized sections.
297         (print_statement): Adjust call to print_input_section.
298
299 2006-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
300
301         * deffilep.y (def_image_name): If LIBRARY or NAME statement
302         specifies an empty string, retain the name specified on command
303         line.
304         * ld.texinfo: Document above.
305
306 2006-03-31  Jakub Jelinek  <jakub@redhat.com>
307
308         * ldmisc.c (vfinfo): Revert 2005-10-05 changes.  If
309         bfd_find_nearest_line succeeded for %C or %D, but filename
310         is NULL, print section+offset at the end.
311
312 2006-03-25  Bernd Schmidt  <bernd.schmidt@analog.com>
313
314         * emulparams/elf32bfinfd.sh: New file.
315         * emultempl/bfin.em: Delete.
316         * emulparams/bfin.sh: Lose reference to bfin.em.
317         * Makefile.am (eelf32bfin.c): Likewise.
318         (eelf32bfinfd.c): New.
319         * Makefile.in: Regenerate.
320         * configure.tgt (bfin-*-elf, bfin-*-uclinux): Add elf32bfinfd to
321         targ_extra_emuls.
322
323 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
324             Daniel Jacobowitz  <dan@codesourcery.com>
325             Phil Edwards  <phil@codesourcery.com>
326             Zack Weinberg  <zack@codesourcery.com>
327             Mark Mitchell  <mark@codesourcery.com>
328             Nathan Sidwell  <nathan@codesourcery.com>
329
330         * configure.tgt (mips*el-*-vxworks*, mips*-*-vxworks*): Use
331         separate VxWorks emulations.
332         * emulparams/elf32ebmipvxworks.sh: New file.
333         * emulparams/elf32elmipvxworks.sh: New file.
334         * Makefile.am (ALL_EMULATIONS): Add eelf32ebmipvxworks.o and
335         eelf32elmipvxworks.o.
336         (eelf32ebmipvxworks.c, eelf32elmipvxworks.c): New rules.
337         * Makefile.in: Regenerate.
338
339 2006-03-16  Alan Modra  <amodra@bigpond.net.au>
340
341         PR 2434
342         * ldcref.c (add_cref): Adjust bfd_hash_table_init calls.
343         * ldlang.c (output_statement_table_init, lang_init): Likewise.
344         * ldmain.c (add_ysym, add_wrap, add_keepsyms_file): Likewise.
345         (undefined_symbol): Likewise.
346
347 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
348             Daniel Jacobowitz  <dan@codesourcery.com>
349             Zack Weinberg  <zack@codesourcery.com>
350             Nathan Sidwell  <nathan@codesourcery.com>
351             Paul Brook  <paul@codesourcery.com>
352             Ricardo Anguiano  <anguiano@codesourcery.com>
353             Phil Edwards  <phil@codesourcery.com>
354
355         * emulparams/armelf_vxworks.sh: Include vxworks.sh.
356         (MAXPAGESIZE): Define.
357         * emulparams/vxworks.sh: Undefine EMBEDDED.
358         * Makefile.am (earmelf_vxworks.c): Depend on vxworks.sh and vxworks.em.
359         * Makefile.in: Regenerate.
360
361 2006-03-03  Bjoern Haase  <bjoern.m.haase@web.de>
362
363         * scripttempl/avr.sc:  Add *(.jumptables) *(.lowtext) sections.
364         Add KEEP() directives.
365         Add *(.data*) *(.rodata) and *(.rodata*) and *(.bss*) to .data and
366         .bss output sections.
367
368 2006-03-03  Richard Sandiford  <richard@codesourcery.com>
369
370         * emulparams/vxworks.sh (VXWORKS_BASE_EM_FILE): New variable.
371         (EXTRA_EM_FILE): Define.
372         * emultempl/vxworks.em: New file.
373         * ld.texinfo (--force-dynamic): Document.
374         * Makefile.am (eelf32ppcvxworks.cm, eelf_i386_vxworks.c): Depend
375         on vxworks.em.
376         * Makefile.in: Regenerate.
377
378 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
379
380         * emulparams/elf32ppccommon.sh: New file, extracted from...
381         * emulparams/elf32ppc.sh: ...here.
382         * emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
383         instead of elf32ppc.sh.
384         (BSS_PLT): Remove override.
385         * Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
386         (eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
387         (eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
388         (eelf32ppclinux.c): Likewise.
389         (eelf32ppcvxworks.c): Likewise.  Add missing vxworks.sh dependency.
390         * Makefile.in: Regenerate.
391
392 2006-02-27  Carlos O'Donell  <carlos@codesourcery.com>
393
394         * Makefile.am: Add html target.
395         * Makefile.in: Regenerate.
396         * po/Make-in: Add html target.
397
398 2006-02-17  Shrirang Khisti  <shrirangk@kpitcummins.com>
399             Anil Paranjape   <anilp1@kpitcummins.com>
400             Shilin Shakti    <shilins@kpitcummins.com>
401
402         * scripttemp/elf32xc16x.sc: Default linker script for tiny model.
403         * scripttemp/elf32xc16xl.sc: Default linker script for large model.
404         * scripttemp/elf32xc16xs.sc: Default linker script for small model.
405         * emulparams/elf32xc16x.sh: Emulation script for tiny model.
406         * emulparams/elf32xc16xl.sh: Emulation script for large model.
407         * emulparams/elf32xc16xs.sh: Emulation script for small model.
408         * Makefile.am: Add entry to make xc16x target.
409         * Makefile.in: Regenerate.
410         * configure.tgt: Specify default and other emulation parameters
411         for xc16x.
412         * NEWS: Announce the support for the new target.
413
414 2006-02-16  Nick Hudson  <nick.hudson@dsl.pipex.com>
415
416         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
417         Use the traditional target.
418
419 2006-02-13  Joseph S. Myers  <joseph@codesourcery.com>
420
421         * configure.tgt (arm*b-*-linux-gnueabi): Change to
422         arm*b-*-linux-*eabi.
423         (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
424
425 2006-02-08  H.J. Lu  <hongjiu.lu@intel.com>
426
427         PR ld/2290
428         * NEWS: Updated for the Linux linker search order change.
429
430         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
431         gld${EMULATION_NAME}_check_ld_so_conf before checking default
432         search directories for DT_NEEDED entries.
433
434 2006-02-07  Paul Brook  <paul@codesourcery.com>
435
436         * emultempl/armelf.em: Include elf/arm.h.
437         (arm_elf_finish): Set low address bit if enty point is a Thumb
438         function.
439
440 2006-02-01  Danny Smith  <dannysmith@users.sourceforge.net>
441
442         * deffilep.y (def_image_name): If the image name does not have
443         a suffix, append the default.
444         * ld.texinfo: Document NAME, LIBRARY usage in PE-COFF .def files.
445
446 2006-01-31  Danny Smith  dannysmith@users.sourceforge.net
447
448         * NEWS: Mention support for forward exports in PE-COFF dll's.
449         * ld.texinfo: Expand documentation of EXPORT statements in
450         PE-COFF .def files.
451
452 2006-01-31  Filip Navara  <navaraf@reactos.com>
453
454         * deffile.h (struct def_file_export): Add field flag_forward.
455         * pe-dll.c (process_def_file): Check for forward exports.
456         (generate_edata): Generate forward export symbols.
457         (fill_edata): Emit them.
458
459         * pe-dll.c (process_def_file): Don't crash on malformed
460         fastcall symbol names in .def file.
461
462 2006-01-30  Nick Clifton  <nickc@redhat.com>
463
464         * po/vi.po: Updated Vietnamese translation.
465
466 2006-01-27  Yitzchak Scott-Thoennes  <sthoenna@efn.org>
467
468         * pe-dll.c (pe_dll_generate_implib): Issue "Creating library
469         file:" as informational message, not a warning.
470
471 2006-01-18  Roger Sayle  <roger@eyesopen.com>
472
473         * emultempl/irix.em: Use lbasename instead of basename.
474
475 2006-01-16  Nick Clifton  <nickc@redhat.com>
476
477         * po/zh_CN.po: New Chinese (simplified) translation.
478         * configure.in (ALL_LINGUAS): Add "zh_CH".
479         * configure: Regenerate.
480
481 2006-01-16  Bernhard Fischer  <aldot@gcc.gnu.org>
482
483         * ld.texinfo (Options): Fix typo.
484
485 For older changes see ChangeLog-2005
486 \f
487 Local Variables:
488 mode: change-log
489 left-margin: 8
490 fill-column: 74
491 version-control: never
492 End: