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