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