* emultempl/pe.em (gld_${EMULATION_NAME}_open_dynamic_archive): Restructure.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
45e948fe
NC
12006-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2
3 * emultempl/pe.em (gld_${EMULATION_NAME}_open_dynamic_archive):
4 Restructure. Add native "%s.lib" format to search list
5 * ld.texinfo (node WIN32): Update documentation on dynamic lib
6 search order. Add another reason for using import libs.
7
5e542ba7
MS
82006-06-21 Mark Shinwell <shinwell@codesourcery.com>
9
10 * ldlang.c (lang_insert_orphan): Correctly handle the case where
11 the section is to end up after the section currently at the end
12 of the list in output_bfd.
13
a4308b79
HPN
142006-06-21 Hans-Peter Nilsson <hp@bitrange.com>
15
16 * emultempl/mmo.em: Improve comments. Explain why there's
17 ELF-stuff here.
18
f5ff60a6
AM
192006-06-21 Alan Modra <amodra@bigpond.net.au>
20
21 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Limit
22 loop to ten iterations. Throw away any previous linker generated
23 segment map.
24 * ldlang.c (lang_phdr_list): Make global.
25 * ldlang.h (lang_phdr_list): Declare.
26 * Makefile.am (ELF_GEN_DEPS): Define. Use in emul deps.
27 * Makefile.in: Regenerate.
28
8ded5a0f
AM
292006-06-20 Alan Modra <amodra@bigpond.net.au>
30
31 * Makefile.am (ELF_DEPS): Define. Use in emul file deps. Fix
32 many ELF emul file deps that incorrectly said they needed elf32.em
33 instead of generic.em. Add genelf.em as required.
34 * Makefile.in: Regenerate.
35 * ldlang.c (lang_process): Call ldemul_finish before
36 lang_check_section_addresses.
37 * emulparams/arcelf.sh: Generic elf target needs genelf.
38 * emulparams/d30v_e.sh: Likewise.
39 * emulparams/d30v_o.sh: Likewise.
40 * emulparams/d30velf.sh: Likewise.
41 * emulparams/elf32_dlx.sh: Likewise.
42 * emulparams/elf32_i860.sh: Likewise.
43 * emulparams/elf32fr30.sh: Likewise.
44 * emulparams/elf32frv.sh: Likewise.
45 * emulparams/elf32iq10.sh: Likewise.
46 * emulparams/elf32iq2000.sh: Likewise.
47 * emulparams/elf32mt.sh: Likewise.
48 * emulparams/mn10200.sh: Likewise.
49 * emulparams/or32.sh: Likewise.
50 * emulparams/or32elf.sh: Likewise.
51 * emulparams/pjelf.sh: Likewise.
52 * emulparams/msp430all.sh: Likewise. Extract common entries.
53 * emulparams/pjlelf.sh: Include pjelf.sh.
54 * emulparams/elf32frvfd.sh (EXTRA_EM_FILE): Unset.
55 * emulparams/mn10300.sh (EXTRA_EM_FILE): Unset.
56 * emultempl/elf-generic.em: New file.
57 * emultempl/genelf.em: New file.
58 * emultempl/elf32.em: Include elf-generic.em.
59 (gld${EMULATION_NAME}_layout_sections_again): Delete.
60 (gld${EMULATION_NAME}_finish): Call gld${EMULATION_NAME}_map_segments.
61 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
62 (gld${EMULATION_NAME}_finish): Rename from hppaelf_finish. Call
63 gld${EMULATION_NAME}_map_segments.
64 (LDEMUL_FINISH): Update.
65 * emultempl/mmo.em: Correct comment. Include elf-bfd.h and
66 source elf-generic.em.
67 (mmo_finish): Call gld${EMULATION_NAME}_map_segments.
68 * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
69 (gld${EMULATION_NAME}_finish): Rename from ppc_finish. Call
70 gld${EMULATION_NAME}_map_segments.
71 (LDEMUL_FINISH): Update.
72
a6b96beb
AM
732006-06-19 Alan Modra <amodra@bigpond.net.au>
74
75 * ldexp.c (fold_name): Adjust bfd_sizeof_headers call.
76
5fa222e4
AM
772006-06-14 Kevin F. Quinn <kevquinn@gentoo.org>
78
79 * ld.texinfo: Document new -z lazy option.
80 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
81 new option.
82 (gld${EMULATION_NAME}_list_options): Update help text.
83
ce28273f
FF
842006-06-12 Fred Fish <fnf@specifix.com>
85
86 * emulparams/elf32bmip.sh (OTHER_SECTIONS): Keep the
87 ".mdebug.<abi>" and ".gcc_compiled_long<size>" sections
88 generated by mips gcc.
89
7fd91fe0
TS
902006-06-12 Thiemo Seufer <ths@mips.com>
91
92 * emulparams/elf64bmip.sh, emulparams/elf64btsmip.sh (COMMONPAGESIZE):
93 Define.
94
409d7240
AM
952006-06-09 Alan Modra <amodra@bigpond.net.au>
96
97 * ldlang.h (lang_input_statement_type): Use bitfields for booleans.
98 * ldlang.c (struct out_section_hash_entry): Rename from
99 output_statement_hash_entry. Delete output_section_statement_type
100 entry. Add statement_union_type entry. Adjust all users.
101 (output_section_statement_table): Rename from output_statement_table.
102 Adjust all users.
103 (output_section_statement_newfunc): Rename from
104 output_statement_newfunc. Adjust all users.
105 (output_section_statement_table_init): Rename from
106 output_statement_table_init. Adjust all users.
107 (output_section_statement_table_free): Rename from
108 output_statement_table_free. Adjust all users.
109
6648b7cf
JM
1102006-06-07 Joseph S. Myers <joseph@codesourcery.com>
111
112 * po/Make-in (pdf, ps): New dummy targets.
113
02a38f92
AM
1142006-06-07 Alan Modra <amodra@bigpond.net.au>
115
116 * ldlang.h (enum section_type): Delete dsect_section, copy_section,
117 info_section and overlay_section. Add noalloc_section.
118 * ldlang.c (lang_add_section): Adjust.
119 * ldgram.y (type): Adjust.
120
e0f6802f
AM
1212006-06-06 Alan Modra <amodra@bigpond.net.au>
122
123 * ldlang.c (init_os): Whitespace.
124 (map_input_to_output_sections): Don't init_os for lang_input_section.
125 (print_all_symbols): Remove forward declaration. Convert to ISO C.
126
4cfe2c59
DJ
1272006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
128
129 * po/Make-in (top_builddir): Define.
130
65ede3f4
AM
1312006-06-05 Alan Modra <amodra@bigpond.net.au>
132
133 * ldexp.c (exp_get_abs_int): Make error message the same as
134 others emitted in this file.
135
8c61c153
AM
1362006-06-05 Alan Modra <amodra@bigpond.net.au>
137
138 * config.in: Regenerate.
139
87aa7f19
AM
1402006-06-05 Alan Modra <amodra@bigpond.net.au>
141
142 * ldlang.c (lookup_name): Delete dead code. Remove FIXMEs.
143
e13629bc
AM
1442006-06-03 Alan Modra <amodra@bigpond.net.au>
145
146 * emultempl/elf32.em (global_found): Make it a pointer.
147 (stat_needed, try_needed): Adjust.
148 (check_needed): Don't skip non-loaded as-needed entries. Only
149 consider entries with both filename and the_bfd non-null.
150 (after_open): Try loading non-loaded as-needed libs to satisfy
151 DT_NEEDED libs.
152
e10fad12
JM
1532006-06-02 Joseph S. Myers <joseph@codesourcery.com>
154
155 * Makefile.am (TEXI2DVI): Add -I $(top_srcdir)/../libiberty.
156 * Makefile.in: Regenerate.
157
20e95c23
DJ
1582006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
159
160 * Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
161 and LIBINTL_DEP everywhere.
162 (INTLLIBS): Remove.
163 (INCLUDES): Use @INCINTL@.
164 * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS.
165 Remove local code for po/Makefile.
166 * Makefile.in, configure: Regenerated.
167
24718e3b
L
1682006-05-30 H.J. Lu <hongjiu.lu@intel.com>
169
170 * emulparams/arcelf.sh (MAXPAGESIZE): Changed to
171 "CONSTANT (MAXPAGESIZE)".
172 * emulparams/armelf_nbsd.sh: Likewise.
173 * emulparams/armelf_vxworks.sh: Likewise.
174 * emulparams/armnto.sh: Likewise.
175 * emulparams/armsymbian.sh: Likewise.
176 * emulparams/crislinux.sh: Likewise.
177 * emulparams/elf32_i860.sh: Likewise.
178 * emulparams/elf32_i960.sh: Likewise.
179 * emulparams/elf32am33lin.sh: Likewise.
180 * emulparams/elf32bfinfd.sh: Likewise.
181 * emulparams/elf32bmipn32-defs.sh: Likewise.
182 * emulparams/elf32frvfd.sh: Likewise.
183 * emulparams/elf32i370.sh: Likewise.
184 * emulparams/elf32lppcnto.sh: Likewise.
185 * emulparams/elf32mcore.sh: Likewise.
186 * emulparams/elf32openrisc.sh: Likewise.
187 * emulparams/elf32ppcnto.sh: Likewise.
188 * emulparams/elf32ppcwindiss.sh: Likewise.
189 * emulparams/elf32vax.sh: Likewise.
190 * emulparams/elf32xc16x.sh: Likewise.
191 * emulparams/elf32xc16xl.sh: Likewise.
192 * emulparams/elf32xc16xs.sh: Likewise.
193 * emulparams/elf64_aix.sh: Likewise.
194 * emulparams/elf64hppa.sh: Likewise.
195 * emulparams/elf64mmix.sh: Likewise.
196 * emulparams/elf_i386_be.sh: Likewise.
197 * emulparams/elf_i386_chaos.sh: Likewise.
198 * emulparams/elf_i386_ldso.sh: Likewise.
199 * emulparams/hppa64linux.sh: Likewise.
200 * emulparams/hppalinux.sh: Likewise.
201 * emulparams/hppaobsd.sh: Likewise.
202 * emulparams/i386lynx.sh: Likewise.
203 * emulparams/i386moss.sh: Likewise.
204 * emulparams/i386nto.sh: Likewise.
205 * emulparams/i386nw.sh: Likewise.
206 * emulparams/m32relf_linux.sh: Likewise.
207 * emulparams/m68kpsos.sh: Likewise.
208 * emulparams/or32elf.sh: Likewise.
209 * emulparams/pjelf.sh: Likewise.
210 * emulparams/pjlelf.sh: Likewise.
211 * emulparams/ppclynx.sh: Likewise.
212 * emulparams/ppcnw.sh: Likewise.
213 * emulparams/shelf32_nbsd.sh : Likewise.
214 * emulparams/shelf_nbsd.sh: Likewise.
215 * emulparams/shelf_nto.sh: Likewise.
216 * emulparams/shlelf_nto.sh: Likewise.
217 * emulparams/xtensa-config.sh: Likewise.
218
219 * emulparams/armelf_linux.sh (MAXPAGESIZE): Changed to
220 "CONSTANT (MAXPAGESIZE)".
221 (COMMONPAGESIZE): Changed to "CONSTANT (COMMONPAGESIZE)".
222 * emulparams/elf32_sparc.sh: Likewise.
223 * emulparams/elf32bmip.sh: Likewise.
224 * emulparams/elf32ppccommon.sh: Likewise.
225 * emulparams/elf64_ia64.sh: Likewise.
226 * emulparams/elf64_s390.sh: Likewise.
227 * emulparams/elf64_sparc.sh: Likewise.
228 * emulparams/elf64alpha.sh: Likewise.
229 * emulparams/elf64ppc.sh: Likewise.
230 * emulparams/elf_i386.sh: Likewise.
231 * emulparams/elf_i386_vxworks.sh: Likewise.
232 * emulparams/elf_s390.sh: Likewise.
233 * emulparams/elf_x86_64.sh: Likewise.
234 * emulparams/shlelf32_linux.sh: Likewise.
235 * emulparams/shlelf_linux.sh: Likewise.
236
237 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Changed to
238 "CONSTANT (COMMONPAGESIZE)".
239 * emulparams/elf32btsmipn32.sh: Likewise.
240
241 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
242 "-z max-page-size=" and "-z common-page-size=".
243 (gld${EMULATION_NAME}_list_options): Likewise.
244
245 * ld.h (ld_config_type): Add maxpagesize and commonpagesize.
246
247 * ld.texinfo: Document "-z max-page-size=" and
248 "-z common-page-size=".
249
250 * ldexp.c (exp_print_token): Handle CONSTANT.
251 (fold_name): Likewise.
252 * ldgram.y: Likewise.
253 * ldlex.l: Likewise.
254
255 * ldmain.c (main): Initiliaze config.maxpagesize and
256 config.commonpagesize. Call bfd_emul_set_maxpagesize if
257 config.maxpagesize isn't 0. Call bfd_emul_set_commonpagesize if
258 config.commonpagesize config.maxpagesize isn't 0.
259
eebf07fb
NC
2602006-05-30 Nick Clifton <nickc@redhat.com>
261
262 * po/es.po: Updated Spanish translation.
263
f7661549
L
2642006-05-25 H.J. Lu <hongjiu.lu@intel.com>
265
266 * emulparams/elf_x86_64.sh (MAXPAGESIZE): Updated to 0x200000.
267
314e9a4e
L
2682006-05-24 H.J. Lu <hongjiu.lu@intel.com>
269
270 PR ld/1485
271 * configure.in: Use ${srcdir}/../bfd/config.bfd to check 64bit
272 bfd. Support 64bit host for --enable-targets=all.
273 * configure: Regenerated.
274
4a4d496a
NC
2752006-05-24 Nick Clifton <nickc@redhat.com>
276
277 * po/vi.po: Updated Vietnamese translation.
278
28c9d252
NC
2792006-05-24 Bjoern Haase <bjoern.m.haase@web.de>
280
281 * configure.tgt: Add avr6 to emulation list.
282 * Makefile.am: Add eavr6.o and corresponding rule.
283 * Makefile.in: Regenerate.
284 * emulparams/avr6.sh: New file.
285 * emulparams/avrX.sh (TEMPLATE_NAME): Use elf32 instead of generic
286 for target option support.
287 (EXTRA_EM_FILE): Add reference to new em template file avrelf.
288 * scripttempl/avr.sc: Add ".trampolines" section.
289 * emultempl/avrelf.em: Add new file for target specific options.
290
b7309ada
NC
2912006-05-22 Nick Clifton <nickc@redhat.com>
292
293 * scripttempl/elf32crx.sc (.rdata): Add .rodata.*.
294
f0636a44
AM
2952006-05-19 Alan Modra <amodra@bigpond.net.au>
296
297 * ldlang.c (lang_size_sections_1): Don't check mem regions for
298 os->ignored sections.
299
f86a8756
DJ
3002005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
301
302 * ldlang.c (lang_size_sections): Call lang_reset_memory_regions
303 before redoing one_lang_size_sections_pass.
304
370b66a1
CD
3052006-05-11 Carlos O'Donell <carlos@codesourcery.com>
306
307 * ld.texinfo: Rename "Index" to "LD Index"
308
53baae48
NC
3092006-05-11 Pedro Alves <pedro_alves@portugalmail.pt>
310
311 * pe-dll.c (autofilter_symbollist): Add Dllmain,
312 DllMainCRTStartup, _DllMainCRTStartup and .text.
313 (autofilter_liblist): Add libcegcc.
314 (autofilter_symbolprefixlist): Add __imp_ and .idata$.
315 (generate_reloc): Do not skip sections without a SEC_LOAD flag,
316 they can still contain relocs that need processing.
317 Skip the .idata$6 section.
318 (jmp_arm_bytes): New array: Contains byte codes for an ARM jump.
319 (make_one): Use the new array.
320 (make_import_fixup_entry): Use .idata$2 instead of .idata$3.
321 * emultempl/pe.em (MajorSubsystemVersion): Set to 3 for armpe.
322
2a60a7a8
AM
3232006-05-05 Alan Modra <amodra@bigpond.net.au>
324
325 * ld.texinfo: Document PowerPC and PowerPC64 options.
326 * gen-doc.texi: Enable.
327
38fc1cb1
DJ
3282006-05-02 Daniel Jacobowitz <dan@codesourcery.com>
329
330 * Makefile.am (AM_MAKEINFOFLAGS): Add libiberty.
331 (TEXI2POD): Use AM_MAKEINFOFLAGS.
332 (configdoc.texi): Don't set top_srcdir.
333 * ld.texinfo: Don't use top_srcdir.
334 * aclocal.m4, Makefile.in: Regenerated.
335
241a6c40
AM
3362006-04-19 Alan Modra <amodra@bigpond.net.au>
337
abe6ac95
AM
338 * ldlang.c (wild): Tidy default_common_section loop.
339 (print_input_section): Format.
340
241a6c40
AM
341 * configure: Regenerate.
342
e7403566
DJ
3432006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
344
345 * po/POTFILES.in: Regenerated.
346
b030a24e
DJ
3472006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
348
349 * config.in: Regenerated.
350
a255b6c7
BW
3512006-04-14 David Heine <dlheine@tensilica.com>
352 Bob Wilson <bob.wilson@acm.org>
353
354 * emultempl/xtensaelf.em (elf_xtensa_before_allocation): Call new
355 function to strip inconsistent linkonce sections.
356 (input_section_linked_worker, input_section_linked): New.
357 (is_inconsistent_linkonce_section): New.
358 (xtensa_strip_inconsistent_linkonce_sections): New.
359