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