gdb/
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
5061a885
AM
12006-07-19 Alan Modra <amodra@bigpond.net.au>
2
3 * ld.h (handle_asneeded_cref): Declare.
4 * ldcref.c: Include objalloc.h.
5 (old_table, old_count, old_tab, alloc_mark): New variables.
6 (tabsize, entsize, refsize, old_symcount): Likewise.
7 (add_cref): Use bfd_hash_allocate for refs.
8 (handle_asneeded_cref): New function.
9 * ldmain.c (notice): Call handle_asneeded_cref for NULL name.
10
d19628a5
DJ
112006-07-14 Michael Wetherell <mike.wetherell@ntlworld.com>
12
13 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Correct
14 typo setting targ_extra_libpath.
15
fdc90cb4
JJ
162006-07-10 Jakub Jelinek <jakub@redhat.com>
17
18 * scripttempl/elf.sc: Add .gnu.hash section.
19 * emultempl/elf32.em (OPTION_HASH_STYLE): Define.
20 (gld${EMULATION_NAME}_add_options): Register --hash-style option.
21 (gld${EMULATION_NAME}_handle_option): Handle it.
22 (gld${EMULATION_NAME}_list_options): Document it.
23 * ldmain.c (main): Initialize emit_hash and emit_gnu_hash.
24 * ld.texinfo: Document --hash-style option.
25
b83ef3ee
NC
262006-07-10 Nick Clifton <nickc@redhat.com>
27
28 * po/zh_TW.po: New Chinese (traditional) translation.
29 * configure.in (ALL_LINGUAS): Add zh_TW.
30 * configure: Regenerate.
31
71ba23f6
NC
322006-07-07 Nick Clifton <nickc@redhat.com>
33
34 PR ld/2874
35 * ld.texinfo: Remove "Using LD" from the title since it is
36 redundant.
37
ba1be17e
NC
382006-07-06 Mohammed Adnène Trojette <adn@diwi.org>
39
71ba23f6 40 PR ld/2877
ba1be17e
NC
41 * ld.texinfo: Fix spelling mistakes.
42
b1d9458a
NC
432006-06-27 Pedro Alves <pedro_alves@portugalmail.pt>
44 Nick Clifton <nickc@redhat.com>
45
46 * emultempl/pe.em (gld_$_open_dynamic_archive): Compute maximum
47 length of format strings in the libname_fmt[] array, rather than
48 relying upon a statically chosen value. Adjust xmalloc call to
49 use this longest length.
50
ece2d90e
NC
512006-06-27 Nick Clifton <nickc@redhat.com>
52
53 * ld.texinfo (-rpath-link): Clarify distinction between -rpath and
54 -rpath-link.
55
0faaaeb8
DJ
562006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
57
58 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Set
59 targ_extra_libpath.
60
5b8273bf
NC
612006-06-23 Pedro Alves <pedro_alves@portugalmail.pt>
62
63 * pe-dll.c (pe_details_type): Add new pointer for symbols list
64 autofilter.
65 (autofilter_symbollist): Split into autofilter_symbollist_generic
66 and autofilter_symbollist_i386.
67 (pe_detail_list): Add autofilter_symbollist_i386 to i386 case and
68 autofilter_symbollist_generic for all the others.
69 (autofilter_symbolprefixlist): Moved _fmode, _impure_ptr, cygwin_attach_dll,
70 cygwin_premain0, cygwin_premain1, cygwin_premain2, cygwin_premain3, environ,
71 into autofilter_symbollist_i386.
72 (auto_export): Get autofilter_symbollist from pe_details.
73
b952b98f
NC
742006-06-22 Nick Clifton <nickc@redhat.com>
75
76 PR ld/2757
77 * emultempl/pe.em (gld_$_after_open): When reporting non PE format
78 output files mention the file name and the fact that it is an
79 output file.
80
45e948fe
NC
812006-06-22 Danny Smith <dannysmith@users.sourceforge.net>
82
83 * emultempl/pe.em (gld_${EMULATION_NAME}_open_dynamic_archive):
84 Restructure. Add native "%s.lib" format to search list
85 * ld.texinfo (node WIN32): Update documentation on dynamic lib
86 search order. Add another reason for using import libs.
87
5e542ba7
MS
882006-06-21 Mark Shinwell <shinwell@codesourcery.com>
89
90 * ldlang.c (lang_insert_orphan): Correctly handle the case where
91 the section is to end up after the section currently at the end
92 of the list in output_bfd.
93
a4308b79
HPN
942006-06-21 Hans-Peter Nilsson <hp@bitrange.com>
95
96 * emultempl/mmo.em: Improve comments. Explain why there's
97 ELF-stuff here.
98
f5ff60a6
AM
992006-06-21 Alan Modra <amodra@bigpond.net.au>
100
101 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Limit
102 loop to ten iterations. Throw away any previous linker generated
103 segment map.
104 * ldlang.c (lang_phdr_list): Make global.
105 * ldlang.h (lang_phdr_list): Declare.
106 * Makefile.am (ELF_GEN_DEPS): Define. Use in emul deps.
107 * Makefile.in: Regenerate.
108
8ded5a0f
AM
1092006-06-20 Alan Modra <amodra@bigpond.net.au>
110
111 * Makefile.am (ELF_DEPS): Define. Use in emul file deps. Fix
112 many ELF emul file deps that incorrectly said they needed elf32.em
113 instead of generic.em. Add genelf.em as required.
114 * Makefile.in: Regenerate.
115 * ldlang.c (lang_process): Call ldemul_finish before
116 lang_check_section_addresses.
117 * emulparams/arcelf.sh: Generic elf target needs genelf.
118 * emulparams/d30v_e.sh: Likewise.
119 * emulparams/d30v_o.sh: Likewise.
120 * emulparams/d30velf.sh: Likewise.
121 * emulparams/elf32_dlx.sh: Likewise.
122 * emulparams/elf32_i860.sh: Likewise.
123 * emulparams/elf32fr30.sh: Likewise.
124 * emulparams/elf32frv.sh: Likewise.
125 * emulparams/elf32iq10.sh: Likewise.
126 * emulparams/elf32iq2000.sh: Likewise.
127 * emulparams/elf32mt.sh: Likewise.
128 * emulparams/mn10200.sh: Likewise.
129 * emulparams/or32.sh: Likewise.
130 * emulparams/or32elf.sh: Likewise.
131 * emulparams/pjelf.sh: Likewise.
132 * emulparams/msp430all.sh: Likewise. Extract common entries.
133 * emulparams/pjlelf.sh: Include pjelf.sh.
134 * emulparams/elf32frvfd.sh (EXTRA_EM_FILE): Unset.
135 * emulparams/mn10300.sh (EXTRA_EM_FILE): Unset.
136 * emultempl/elf-generic.em: New file.
137 * emultempl/genelf.em: New file.
138 * emultempl/elf32.em: Include elf-generic.em.
139 (gld${EMULATION_NAME}_layout_sections_again): Delete.
140 (gld${EMULATION_NAME}_finish): Call gld${EMULATION_NAME}_map_segments.
141 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
142 (gld${EMULATION_NAME}_finish): Rename from hppaelf_finish. Call
143 gld${EMULATION_NAME}_map_segments.
144 (LDEMUL_FINISH): Update.
145 * emultempl/mmo.em: Correct comment. Include elf-bfd.h and
146 source elf-generic.em.
147 (mmo_finish): Call gld${EMULATION_NAME}_map_segments.
148 * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
149 (gld${EMULATION_NAME}_finish): Rename from ppc_finish. Call
150 gld${EMULATION_NAME}_map_segments.
151 (LDEMUL_FINISH): Update.
152
a6b96beb
AM
1532006-06-19 Alan Modra <amodra@bigpond.net.au>
154
155 * ldexp.c (fold_name): Adjust bfd_sizeof_headers call.
156
5fa222e4
AM
1572006-06-14 Kevin F. Quinn <kevquinn@gentoo.org>
158
159 * ld.texinfo: Document new -z lazy option.
160 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
161 new option.
162 (gld${EMULATION_NAME}_list_options): Update help text.
163
ce28273f
FF
1642006-06-12 Fred Fish <fnf@specifix.com>
165
166 * emulparams/elf32bmip.sh (OTHER_SECTIONS): Keep the
167 ".mdebug.<abi>" and ".gcc_compiled_long<size>" sections
168 generated by mips gcc.
169
7fd91fe0
TS
1702006-06-12 Thiemo Seufer <ths@mips.com>
171
172 * emulparams/elf64bmip.sh, emulparams/elf64btsmip.sh (COMMONPAGESIZE):
173 Define.
174
409d7240
AM
1752006-06-09 Alan Modra <amodra@bigpond.net.au>
176
177 * ldlang.h (lang_input_statement_type): Use bitfields for booleans.
178 * ldlang.c (struct out_section_hash_entry): Rename from
179 output_statement_hash_entry. Delete output_section_statement_type
180 entry. Add statement_union_type entry. Adjust all users.
181 (output_section_statement_table): Rename from output_statement_table.
182 Adjust all users.
183 (output_section_statement_newfunc): Rename from
184 output_statement_newfunc. Adjust all users.
185 (output_section_statement_table_init): Rename from
186 output_statement_table_init. Adjust all users.
187 (output_section_statement_table_free): Rename from
188 output_statement_table_free. Adjust all users.
189
6648b7cf
JM
1902006-06-07 Joseph S. Myers <joseph@codesourcery.com>
191
192 * po/Make-in (pdf, ps): New dummy targets.
193
02a38f92
AM
1942006-06-07 Alan Modra <amodra@bigpond.net.au>
195
196 * ldlang.h (enum section_type): Delete dsect_section, copy_section,
197 info_section and overlay_section. Add noalloc_section.
198 * ldlang.c (lang_add_section): Adjust.
199 * ldgram.y (type): Adjust.
200
e0f6802f
AM
2012006-06-06 Alan Modra <amodra@bigpond.net.au>
202
203 * ldlang.c (init_os): Whitespace.
204 (map_input_to_output_sections): Don't init_os for lang_input_section.
205 (print_all_symbols): Remove forward declaration. Convert to ISO C.
206
4cfe2c59
DJ
2072006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
208
209 * po/Make-in (top_builddir): Define.
210
65ede3f4
AM
2112006-06-05 Alan Modra <amodra@bigpond.net.au>
212
213 * ldexp.c (exp_get_abs_int): Make error message the same as
214 others emitted in this file.
215
8c61c153
AM
2162006-06-05 Alan Modra <amodra@bigpond.net.au>
217
218 * config.in: Regenerate.
219
87aa7f19
AM
2202006-06-05 Alan Modra <amodra@bigpond.net.au>
221
222 * ldlang.c (lookup_name): Delete dead code. Remove FIXMEs.
223
e13629bc
AM
2242006-06-03 Alan Modra <amodra@bigpond.net.au>
225
226 * emultempl/elf32.em (global_found): Make it a pointer.
227 (stat_needed, try_needed): Adjust.
228 (check_needed): Don't skip non-loaded as-needed entries. Only
229 consider entries with both filename and the_bfd non-null.
230 (after_open): Try loading non-loaded as-needed libs to satisfy
231 DT_NEEDED libs.
232
e10fad12
JM
2332006-06-02 Joseph S. Myers <joseph@codesourcery.com>
234
235 * Makefile.am (TEXI2DVI): Add -I $(top_srcdir)/../libiberty.
236 * Makefile.in: Regenerate.
237
20e95c23
DJ
2382006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
239
240 * Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
241 and LIBINTL_DEP everywhere.
242 (INTLLIBS): Remove.
243 (INCLUDES): Use @INCINTL@.
244 * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS.
245 Remove local code for po/Makefile.
246 * Makefile.in, configure: Regenerated.
247
24718e3b
L
2482006-05-30 H.J. Lu <hongjiu.lu@intel.com>
249
250 * emulparams/arcelf.sh (MAXPAGESIZE): Changed to
251 "CONSTANT (MAXPAGESIZE)".
252 * emulparams/armelf_nbsd.sh: Likewise.
253 * emulparams/armelf_vxworks.sh: Likewise.
254 * emulparams/armnto.sh: Likewise.
255 * emulparams/armsymbian.sh: Likewise.
256 * emulparams/crislinux.sh: Likewise.
257 * emulparams/elf32_i860.sh: Likewise.
258 * emulparams/elf32_i960.sh: Likewise.
259 * emulparams/elf32am33lin.sh: Likewise.
260 * emulparams/elf32bfinfd.sh: Likewise.
261 * emulparams/elf32bmipn32-defs.sh: Likewise.
262 * emulparams/elf32frvfd.sh: Likewise.
263 * emulparams/elf32i370.sh: Likewise.
264 * emulparams/elf32lppcnto.sh: Likewise.
265 * emulparams/elf32mcore.sh: Likewise.
266 * emulparams/elf32openrisc.sh: Likewise.
267 * emulparams/elf32ppcnto.sh: Likewise.
268 * emulparams/elf32ppcwindiss.sh: Likewise.
269 * emulparams/elf32vax.sh: Likewise.
270 * emulparams/elf32xc16x.sh: Likewise.
271 * emulparams/elf32xc16xl.sh: Likewise.
272 * emulparams/elf32xc16xs.sh: Likewise.
273 * emulparams/elf64_aix.sh: Likewise.
274 * emulparams/elf64hppa.sh: Likewise.
275 * emulparams/elf64mmix.sh: Likewise.
276 * emulparams/elf_i386_be.sh: Likewise.
277 * emulparams/elf_i386_chaos.sh: Likewise.
278 * emulparams/elf_i386_ldso.sh: Likewise.
279 * emulparams/hppa64linux.sh: Likewise.
280 * emulparams/hppalinux.sh: Likewise.
281 * emulparams/hppaobsd.sh: Likewise.
282 * emulparams/i386lynx.sh: Likewise.
283 * emulparams/i386moss.sh: Likewise.
284 * emulparams/i386nto.sh: Likewise.
285 * emulparams/i386nw.sh: Likewise.
286 * emulparams/m32relf_linux.sh: Likewise.
287 * emulparams/m68kpsos.sh: Likewise.
288 * emulparams/or32elf.sh: Likewise.
289 * emulparams/pjelf.sh: Likewise.
290 * emulparams/pjlelf.sh: Likewise.
291 * emulparams/ppclynx.sh: Likewise.
292 * emulparams/ppcnw.sh: Likewise.
293 * emulparams/shelf32_nbsd.sh : Likewise.
294 * emulparams/shelf_nbsd.sh: Likewise.
295 * emulparams/shelf_nto.sh: Likewise.
296 * emulparams/shlelf_nto.sh: Likewise.
297 * emulparams/xtensa-config.sh: Likewise.
298
299 * emulparams/armelf_linux.sh (MAXPAGESIZE): Changed to
300 "CONSTANT (MAXPAGESIZE)".
301 (COMMONPAGESIZE): Changed to "CONSTANT (COMMONPAGESIZE)".
302 * emulparams/elf32_sparc.sh: Likewise.
303 * emulparams/elf32bmip.sh: Likewise.
304 * emulparams/elf32ppccommon.sh: Likewise.
305 * emulparams/elf64_ia64.sh: Likewise.
306 * emulparams/elf64_s390.sh: Likewise.
307 * emulparams/elf64_sparc.sh: Likewise.
308 * emulparams/elf64alpha.sh: Likewise.
309 * emulparams/elf64ppc.sh: Likewise.
310 * emulparams/elf_i386.sh: Likewise.
311 * emulparams/elf_i386_vxworks.sh: Likewise.
312 * emulparams/elf_s390.sh: Likewise.
313 * emulparams/elf_x86_64.sh: Likewise.
314 * emulparams/shlelf32_linux.sh: Likewise.
315 * emulparams/shlelf_linux.sh: Likewise.
316
317 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Changed to
318 "CONSTANT (COMMONPAGESIZE)".
319 * emulparams/elf32btsmipn32.sh: Likewise.
320
321 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
322 "-z max-page-size=" and "-z common-page-size=".
323 (gld${EMULATION_NAME}_list_options): Likewise.
324
325 * ld.h (ld_config_type): Add maxpagesize and commonpagesize.
326
327 * ld.texinfo: Document "-z max-page-size=" and
328 "-z common-page-size=".
329
330 * ldexp.c (exp_print_token): Handle CONSTANT.
331 (fold_name): Likewise.
332 * ldgram.y: Likewise.
333 * ldlex.l: Likewise.
334
335 * ldmain.c (main): Initiliaze config.maxpagesize and
336 config.commonpagesize. Call bfd_emul_set_maxpagesize if
337 config.maxpagesize isn't 0. Call bfd_emul_set_commonpagesize if
338 config.commonpagesize config.maxpagesize isn't 0.
339
eebf07fb
NC
3402006-05-30 Nick Clifton <nickc@redhat.com>
341
342 * po/es.po: Updated Spanish translation.
343
f7661549
L
3442006-05-25 H.J. Lu <hongjiu.lu@intel.com>
345
346 * emulparams/elf_x86_64.sh (MAXPAGESIZE): Updated to 0x200000.
347
314e9a4e
L
3482006-05-24 H.J. Lu <hongjiu.lu@intel.com>
349
350 PR ld/1485
351 * configure.in: Use ${srcdir}/../bfd/config.bfd to check 64bit
352 bfd. Support 64bit host for --enable-targets=all.
353 * configure: Regenerated.
354
4a4d496a
NC
3552006-05-24 Nick Clifton <nickc@redhat.com>
356
357 * po/vi.po: Updated Vietnamese translation.
358
28c9d252
NC
3592006-05-24 Bjoern Haase <bjoern.m.haase@web.de>
360
361 * configure.tgt: Add avr6 to emulation list.
362 * Makefile.am: Add eavr6.o and corresponding rule.
363 * Makefile.in: Regenerate.
364 * emulparams/avr6.sh: New file.
365 * emulparams/avrX.sh (TEMPLATE_NAME): Use elf32 instead of generic
366 for target option support.
367 (EXTRA_EM_FILE): Add reference to new em template file avrelf.
368 * scripttempl/avr.sc: Add ".trampolines" section.
369 * emultempl/avrelf.em: Add new file for target specific options.
370
b7309ada
NC
3712006-05-22 Nick Clifton <nickc@redhat.com>
372
373 * scripttempl/elf32crx.sc (.rdata): Add .rodata.*.
374
f0636a44
AM
3752006-05-19 Alan Modra <amodra@bigpond.net.au>
376
377 * ldlang.c (lang_size_sections_1): Don't check mem regions for
378 os->ignored sections.
379
f86a8756
DJ
3802005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
381
382 * ldlang.c (lang_size_sections): Call lang_reset_memory_regions
383 before redoing one_lang_size_sections_pass.
384
370b66a1
CD
3852006-05-11 Carlos O'Donell <carlos@codesourcery.com>
386
387 * ld.texinfo: Rename "Index" to "LD Index"
388
53baae48
NC
3892006-05-11 Pedro Alves <pedro_alves@portugalmail.pt>
390
391 * pe-dll.c (autofilter_symbollist): Add Dllmain,
392 DllMainCRTStartup, _DllMainCRTStartup and .text.
393 (autofilter_liblist): Add libcegcc.
394 (autofilter_symbolprefixlist): Add __imp_ and .idata$.
395 (generate_reloc): Do not skip sections without a SEC_LOAD flag,
396 they can still contain relocs that need processing.
397 Skip the .idata$6 section.
398 (jmp_arm_bytes): New array: Contains byte codes for an ARM jump.
399 (make_one): Use the new array.
400 (make_import_fixup_entry): Use .idata$2 instead of .idata$3.
401 * emultempl/pe.em (MajorSubsystemVersion): Set to 3 for armpe.
402
2a60a7a8
AM
4032006-05-05 Alan Modra <amodra@bigpond.net.au>
404
405 * ld.texinfo: Document PowerPC and PowerPC64 options.
406 * gen-doc.texi: Enable.
407
38fc1cb1
DJ
4082006-05-02 Daniel Jacobowitz <dan@codesourcery.com>
409
410 * Makefile.am (AM_MAKEINFOFLAGS): Add libiberty.
411 (TEXI2POD): Use AM_MAKEINFOFLAGS.
412 (configdoc.texi): Don't set top_srcdir.
413 * ld.texinfo: Don't use top_srcdir.
414 * aclocal.m4, Makefile.in: Regenerated.
415
241a6c40
AM
4162006-04-19 Alan Modra <amodra@bigpond.net.au>
417
abe6ac95
AM
418 * ldlang.c (wild): Tidy default_common_section loop.
419 (print_input_section): Format.
420
241a6c40
AM
421 * configure: Regenerate.
422
e7403566
DJ
4232006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
424
425 * po/POTFILES.in: Regenerated.
426
b030a24e
DJ
4272006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
428
429 * config.in: Regenerated.
430
a255b6c7
BW
4312006-04-14 David Heine <dlheine@tensilica.com>
432 Bob Wilson <bob.wilson@acm.org>
433
434 * emultempl/xtensaelf.em (elf_xtensa_before_allocation): Call new
435 function to strip inconsistent linkonce sections.
436 (input_section_linked_worker, input_section_linked): New.
437 (is_inconsistent_linkonce_section): New.
438 (xtensa_strip_inconsistent_linkonce_sections): New.
439