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