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