34ab8cf110308c05501ff5dea95d6719e8b75e15
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2005-05-11 Bob Wilson <bob.wilson@acm.org>
2
3 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
4 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
5
6 2005-05-11 Alan Modra <amodra@bigpond.net.au>
7
8 * ldgram.y: Add SPECIAL token.
9 (sect_constraint): Handle SPECIAL.
10 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
11 (map_input_to_output_sections): Likewise.
12 * ldlex.l (SPECIAL): Define.
13 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
14 GOT, PLT, GOTPLT): Define.
15 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
16 (ppc_after_open): New function.
17 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
18 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
19 (PARSE_AND_LIST_OPTIONS): Document them.
20 (PARSE_AND_LIST_ARGS_CASES): Handle them.
21 (LDEMUL_AFTER_OPEN): Define.
22 * scripttempl/elf.sc (PLT): Don't override existing define.
23 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
24 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
25
26 2005-05-10 Alan Modra <amodra@bigpond.net.au>
27
28 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
29 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
30 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
31 DATA_SEGMENT_RELRO_END in script.
32
33 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
34
35 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
36 Don't use a removed section.
37
38 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
39
40 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
41 is defined in the ABS section.
42
43 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
44
45 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
46 Put back !link_info.relocatable.
47
48 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
49
50 PR 878
51 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
52 Just check link_info.executable.
53
54 2005-05-06 Nick Clifton <nickc@redhat.com>
55
56 * Update the address and phone number of the FSF organization in
57 the GPL notices in the following files:
58 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
59 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
60 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
61 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
62 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
63 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
64 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
65 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
66 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
67 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
68 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
69 emultempl/m68kcoff.em, emultempl/m68kelf.em,
70 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
71 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
72 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
73 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
74 emultempl/vanilla.em, emultempl/xtensaelf.em
75
76 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
77
78 * scripttempl/elf.sc: Document the usage of __bss_start.
79
80 2005-05-05 Paul Brook <paul@codesourcery.com>
81
82 * Makefile.am: Add eelf_i386_vxworks.
83 * Makefile.in: Regenerate.
84 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
85 * emulparams/elf_i386_vxworks.sh: New file.
86 * emulparams/vxworks.sh: New file.
87 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
88
89 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
90
91 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
92 Call _bfd_elf_provide_section_bound_symbols.
93
94 2005-05-04 Alan Modra <amodra@bigpond.net.au>
95
96 * ldemul.c: Include bfdlink.h.
97 (ldemul_before_allocation): Assume before_allocation is non-zero.
98 (before_allocation_default): Call strip_excluded_output_sections.
99 * ldlang.c (stripped_excluded_sections): New variable.
100 (lang_add_section): Build input section list for each output
101 section, attached via map_head and map_tail pointers.
102 (strip_excluded_output_sections): Make global. Traverse the
103 input section lists to find which output sections can go. Clear
104 link_order pointers and set stripped_excluded_sections.
105 (lang_process): Call strip_excluded_output_sections.
106 * ldlang.h (strip_excluded_output_sections): Declare.
107 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
108 * emultempl/aix.em (before_allocation): Call
109 strip_excluded_output_sections.
110 * emultempl/armcoff.em (before_allocation): Likewise.
111 * emultempl/beos.em (before_allocation): Likewise.
112 * emultempl/linux.em (before_allocation): Likewise.
113 * emultempl/pe.em (before_allocation): Likewise.
114 * emultempl/sunos.em (before_allocation): Likewise.
115 * emultempl/elf32.em (before_allocation): Likewise. Call
116 bfd_elf_size_dynsym_hash_dynstr too.
117 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
118 (ld_lnk960): Use before_allocation_default.
119
120 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
121
122 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
123 Updated for bfd_section_list_remove change.
124 * ldlang.c (lang_insert_orphan): Likewise.
125 (strip_excluded_output_sections): Likewise.
126 (sort_sections_by_lma): New.
127 (lang_check_section_addresses): Sort the sections before
128 checking addresses.
129
130 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
131
132 * configure.tgt: Add h8300*-*-rtemscoff.
133 Switch h8300*-*-rtems* to elf.
134
135 2005-04-29 Ben Elliston <bje@au.ibm.com>
136
137 * ldgram.y (lang_memory_region_type): Make static.
138 (ldgram_want_filename): Likewise.
139 * ldemul.c (ld_emulation): Make static.
140 * ldfile.h (ldfile_find_command_file): Remove extern.
141 * ldfile.c (ldfile_find_command_file): Make static.
142 * ldlang.h (unique_section_list): Remove extern declaration.
143 * ldlang.c (unique_section_list): Make static.
144 * mri.h (symbol_truncate): Remove extern declaration.
145 * mri.c (symbol_truncate): Make static.
146 (order, only_load, address, alias): Likewise.
147 (alignment, subalignment): Likewise.
148
149 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
150
151 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
152 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
153 last SEC_ALLOC section if such a section doesn't exist.
154
155 2005-04-24 Mark Kettenis <kettenis@gnu.org>
156
157 * configure.host: Add *-*-openbsd support.
158
159 2005-04-15 Julian Brown <julian@codesourcery.com>
160
161 * ld.texinfo: Document --use-blx.
162 * emultempl/armelf.em (use_blx): New variable.
163 (arm_elf_create_output_section_statements): Communicate value of
164 use_blx to bfd.
165 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
166 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
167 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
168
169 2005-04-14 Alan Modra <amodra@bigpond.net.au>
170
171 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
172 * configure.in: Include ../bfd/warning.m4 contents.
173 * Makefile.in: Regenerate.
174 * configure: Regenerate.
175
176 2005-04-12 Alan Modra <amodra@bigpond.net.au>
177
178 * Makefile.am: Run "make dep-am".
179 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
180 * Makefile.in: Regenerate.
181 * config.in: Regenerate.
182
183 2005-04-11 Alan Modra <amodra@bigpond.net.au>
184
185 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
186 as_needed libs that were not needed.
187 (gld${EMULATION_NAME}_check_needed): Likewise.
188
189 2005-04-07 Nick Clifton <nickc@redhat.com>
190
191 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
192 ldfile.h can use the lang_input_statement type.
193
194 2005-04-06 Jakub Jelinek <jakub@redhat.com>
195
196 * ldlang.c: Formatting.
197 (walk_wild_consider_section): Remember return value from wildcardp.
198 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
199 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
200
201 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
202
203 * ld.h (lean_section_userdata_type): Remove.
204 (fat_section_userdata_type): Remove file field.
205 (SECTION_USERDATA_SIZE): Remove.
206 * ldlang.c (init_os): Eliminate initialization of unused
207 lean_section_userdata_type.
208
209 * ldlang.h (callback_t, walk_wild_section_handler_t): New
210 typedefs.
211 (struct lang_wild_statement_struct): Add walk_wild_section_handler
212 and handler_data fields.
213 * ldlang.c (callback_t): Removed.
214 (walk_wild_consider_section, walk_wild_section_general,
215 section_iterator_callback, find_section, is_simple_wild,
216 match_simple_wild, walk_wild_section_specs1_wild0,
217 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
218 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
219 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
220 functions.
221 (lang_add_wild): Call analyze_walk_wild_section_handler.
222 (walk_wild_section): Renamed to walk_wild_section_general and
223 created a wrapper function.
224 (section_iterator_callback_data): New typedef.
225
226 2005-04-04 Nick Clifton <nickc@redhat.com>
227
228 * configure.in: Add a check for <unistd.h> providing a prototype
229 for getopt() which is compatible with the one in
230 include/getopt.h. If so then define HAVE_DECL_GETOPT.
231 * configure: Regenerate.
232 * config.in (HAVE_DECL_GETOPT): Add.
233 * ldemul.c: Include config.h
234 * lexsup.c: Likewise.
235 * emultempl/elf32.sc: Likewise.
236
237 2005-03-29 Alan Modra <amodra@bigpond.net.au>
238
239 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
240 New function, extracted from static void gld${EMULATION_NAME}_finish.
241 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
242 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
243 * emultempl/ppc64elf.em: Revert last change.
244 (ppc_layout_sections_again): Use
245 gld${EMULATION_NAME}_layout_sections_again.
246 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
247 gld${EMULATION_NAME}_strip_empty_sections and
248 gld${EMULATION_NAME}_provide_init_fini_syms.
249 * emultempl/hppaelf.em: Similarly.
250
251 2005-03-29 Alan Modra <amodra@bigpond.net.au>
252
253 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
254 (ppc_finish): Don't call bfd_elf_discard_info.
255 * emultempl/hppaelf.em: Similarly.
256
257 2005-03-24 Nick Clifton <nickc@redhat.com>
258
259 * po/fr.po: Updated French translation.
260
261 2005-03-23 Mike Frysinger <vapier@gentoo.org>
262 Nick Clifton <nickc@redhat.com>
263
264 * configure.host: Accept any C library to accompany a GNU Linux
265 implementation, not just the GNU C library.
266 * configure.tgt: Likewise.
267 * emultempl/elf32.em: Likewise.
268
269 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
270
271 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
272 (gld${EMULATION_NAME}_finish): Call
273 gld${EMULATION_NAME}_provide_bound_symbols to provide
274 __preinit_array_start, __preinit_array_end, __init_array_start,
275 __init_array_end, __fini_array_start and __fini_array_end.
276
277 * scripttempl/elf.sc: Don't provide __preinit_array_start,
278 __preinit_array_end, __init_array_start, __init_array_end,
279 __fini_array_start nor __fini_array_end.
280
281 2005-03-23 Alan Modra <amodra@bigpond.net.au>
282
283 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
284 SEC_EXCLUDE on .gnu.warning sections.
285
286 2005-03-22 Alan Modra <amodra@bigpond.net.au>
287
288 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
289
290 2005-03-21 Alan Modra <amodra@bigpond.net.au>
291
292 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
293 function.
294 (LDEMUL_AFTER_ALLOCATION): Define.
295
296 2005-03-21 Alan Modra <amodra@bigpond.net.au>
297
298 * emultempl/ppc64elf.em (ppc_finish): Rename from
299 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
300 (LDEMUL_FINISH): Update.
301 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
302 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
303
304 2005-03-18 Julian Brown <julian@codesourcery.com>
305
306 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
307 .rel.fini_array.
308 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
309 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
310
311 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
312
313 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
314 bfd_section when removing unused empty output sections for
315 non-relocatable link.
316
317 2005-03-19 Alan Modra <amodra@bigpond.net.au>
318
319 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
320 traversing the bfd section list to find pointer to new section.
321
322 2005-03-18 Alan Modra <amodra@bigpond.net.au>
323
324 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
325 input sections into .sdata and .sbss output respectively.
326
327 2005-03-16 David Heine <dlheine@tensilica.com>
328 Bob Wilson <bob.wilson@acm.org>
329
330 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
331 (lang_check_section_addresses): Ignore zero size sections here.
332
333 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
334
335 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
336 unused empty output sections for non-relocatable link.
337
338 * ld.h (args_type): Remove gc_sections.
339
340 * ldlang.c (lang_mark_used_section): New.
341 (lang_gc_sections): Use link_info.gc_sections instead of
342 command_line.gc_sections.
343 * ldmain.c (main): Likewise.
344 * lexsup.c (parse_args): Likewise.
345 * ldlang.c (lang_process): Call lang_mark_used_section.
346
347 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
348
349 2005-03-16 Nick Clifton <nickc@redhat.com>
350 Ben Elliston <bje@au.ibm.com>
351
352 * configure.in (werror): New switch: Add -Werror to the
353 compiler command line. Enabled by default. Disable via
354 --disable-werror.
355 * configure: Regenerate.
356
357 2005-03-16 Alan Modra <amodra@bigpond.net.au>
358
359 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
360 (OTHER_RELRO_SECTIONS): Set this instead.
361
362 2005-03-15 Nick Clifton <nickc@redhat.com>
363
364 * NEWS: Add cutoff for changes in 2.16 release.
365
366 2005-03-15 Mikkel Krautz <krautz@gmail.com>
367
368 * configure.tgt (x86_64-elf): Add target.
369
370 2005-03-15 Alan Modra <amodra@bigpond.net.au>
371
372 * po/es.po: Commit new Spanish translation.
373
374 2005-03-14 Alan Modra <amodra@bigpond.net.au>
375
376 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
377 Tidy etree_assert case.
378
379 2005-03-14 Alan Modra <amodra@bigpond.net.au>
380
381 * po/tr.po: Commit new Turkish translation.
382
383 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
384
385 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
386 * Makefile.in: Regenerated.
387 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
388
389 2005-03-07 Nick Clifton <nickc@redhat.com>
390
391 * po/fr.po: Updated translation.
392
393 2005-03-05 Alan Modra <amodra@bigpond.net.au>
394
395 * po/ld.pot: Regenerate.
396
397 2005-03-02 Jan Beulich <jbeulich@novell.com>
398
399 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
400 * pe-dll.c (pe_dll_generate_implib): Likewise.
401
402 2005-02-24 Ben Elliston <bje@au.ibm.com>
403
404 * ldfile.c: Remove GNU960 conditional code.
405 * emultempl/gld960.em: Likewise.
406 * emultempl/gld960c.em: Likewise.
407 * emultempl/lnk960.em: Likewise.
408
409 2005-02-24 Nick Clifton <nickc@redhat.com>
410
411 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
412 empty string from calls to concat.
413
414 2005-02-23 Nick Clifton <nickc@redhat.com>
415
416 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
417 arguments passed to concat() with a NULL.
418
419 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
420 define types needed by ldfile.h
421
422 2005-02-23 Alan Modra <amodra@bigpond.net.au>
423
424 * pe-dll.c: Warning fixes.
425 * emultempl/sunos.em: Likewise.
426
427 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
428
429 * ldlang.c (section_already_linked): Don't call
430 bfd_section_already_linked for dynamic objects.
431
432 2005-02-22 Alan Modra <amodra@bigpond.net.au>
433
434 * ldexp.c: Warning fixes.
435 * ldwrite.c: Likewise.
436 * emultempl/elf32.em: Likewise.
437
438 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
439
440 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
441 tic54x input only.
442 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
443 and ECOFF output only.
444
445 2005-02-21 Alan Modra <amodra@bigpond.net.au>
446
447 * config.in: Regenerate.
448 * configure: Regenerate.
449
450 2005-02-17 Zack Weinberg <zack@codesourcery.com>
451
452 * ldexp.c (assigning_to_dot): New global flag.
453 (fold_name): If assigning_to_dot is true, object immediately to
454 an undefined symbol.
455 (exp_fold_tree): Set and clear assigning_to_dot around the
456 recursive call to exp_fold_tree to process the right-hand side
457 of an assignment to the location counter.
458
459 2005-02-17 Paul Brook <paul@codesourcery.com>
460
461 * scripttempl/armbpabi.sc: Add dummy name to version block.
462
463 2005-02-17 Alan Modra <amodra@bigpond.net.au>
464
465 * ldexp.c (new_abs): Init new.str.
466
467 2005-02-15 Mark Mitchell <mark@codesourcery.com>
468
469 * configure.in (AC_CHECK_FUNCS): Add glob.
470 * configure: Regenerated.
471 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
472 not defined.
473 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
474 if HAVE_GLOB is not defined.
475
476 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
477
478 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
479 lib_path if NATIVE is yes.
480
481 2005-02-16 Alan Modra <amodra@bigpond.net.au>
482
483 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
484 an error creating fake bfd fatal.
485 (ppc_before_allocation): Continue on after errors.
486 (gld${EMULATION_NAME}_finish): Likewise.
487
488 2005-02-15 Nick Clifton <nickc@redhat.com>
489
490 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
491 not declared. It is not used and its presence causes a compile
492 time warning.
493
494 2005-02-11 Zack Weinberg <zack@codesourcery.com>
495
496 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
497 If st.st_ino is zero, do not treat the library as a duplicate.
498
499 2005-02-10 Jakub Jelinek <jakub@redhat.com>
500
501 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
502 Set BFD_LINKER_CREATED on the stubs bfd.
503 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
504 Likewise.
505
506 2005-02-08 Mark Mitchell <mark@codesourcery.com>
507
508 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
509 local.
510 (Image$$ER_RO$$Base): Define whenever RELOCATING.
511 (Image$$ER_RO$$Limit): Likewise.
512 (SHT$$INIT_ARRAY$$Base): Likewise.
513 (SHT$$INIT_ARRAY$$Limit): Likeise.
514
515 2005-02-10 Ben Elliston <bje@au.ibm.com>
516
517 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
518
519 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
520
521 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
522 to include o32 and n64 emulations.
523 (mips64*-*-linux-gnu*): Likewise.
524
525 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
526
527 * ldmain.c (warning_callback, warning_find_reloc): Prepend
528 "warning: " to warning messages.
529
530 2005-02-04 Alan Modra <amodra@bigpond.net.au>
531
532 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
533 look up symbol for etree_provide here.
534
535 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
536
537 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
538
539 2005-02-01 Edward Welbourne <eddy@opera.com>
540 Nick Clifton <nickc@redhat.com>
541
542 * ld.texinfo (Source Code Reference): New node describing how to
543 access linker script defined variables from source code.
544
545 2005-02-01 Alan Modra <amodra@bigpond.net.au>
546
547 * ld.texinfo: Clarify --as-needed operation.
548
549 2005-01-31 Andrew Cagney <cagney@gnu.org>
550
551 * configure: Regenerate to track ../gettext.m4.
552
553 2005-01-31 Nick Clifton <nickc@redhat.com>
554
555 * ldver.c (ldversion): Bump reported copyright date to 2005.
556
557 2005-01-31 Nick Clifton <nickc@redhat.com>
558
559 * configure.tgt: Remove obsolete targets m68k-lynxos and
560 sparc-lynxos.
561
562 2005-01-28 Julian Brown <julian@codesourcery.com>
563
564 * emultempl/armelf.em (fix_v4bx): New variable.
565 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
566 value to bfd.
567 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
568 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
569 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
570 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
571 * NEWS: Mention --fix-v4bx.
572 * ld.texinfo: Document --fix-v4bx.
573
574 2005-01-25 Mark Mitchell <mark@codesourcery.com>
575
576 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
577 as to include .ARM.exidx$${Base,Limit}.
578 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
579 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
580 Put .init_array, .fini_array, etc. into the read-only data
581 segment.
582
583 2005-01-25 Alan Modra <amodra@bigpond.net.au>
584
585 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
586 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
587 only needed by an as-needed lib that didn't get linked.
588
589 2005-01-23 Alan Modra <amodra@bigpond.net.au>
590
591 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
592 __DTOR_LIST__ description.
593
594 2005-01-23 Alan Modra <amodra@bigpond.net.au>
595
596 * ld.texinfo (Location Counter <dot outside sections>): Document
597 effects of orphan section placement, and ". = ." workaround.
598 * Makefile.in: Regenerate.
599
600 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
601
602 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
603 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
604
605 2005-01-21 Jakub Jelinek <jakub@redhat.com>
606
607 * ldgram.y (AS_NEEDED): New token.
608 (input_list): Handle AS_NEEDED ( input_list ).
609 * ldlex.l (AS_NEEDED): Add.
610 * ld.texinfo: Document AS_NEEDED ().
611 * NEWS: Mention AS_NEEDED ().
612
613 2005-01-21 Ben Elliston <bje@au.ibm.com>
614
615 * ldlang.c (lang_reasonable_defaults): Remove.
616 (lang_process): Don't call lang_reasonable_defaults.
617
618 * ldexp.c (exp_assop): Remove #if 0'd code.
619 (exp_print_tree): Likewise.
620 * ldlang.c (lang_memory_region_lookup): Likewise.
621 (open_output): Likewise.
622 (lang_do_assignments_1): Likewise.
623 (lang_place_orphans): Likewise.
624 (lang_enter_output_section_statement): Likewise.
625 (lang_reasonable_defaults): Likewise.
626 * ldlang.h (struct lang_input_statement_struct): Likewise.
627 * mri.c (mri_draw_tree): Likewise.
628 (mri_load): Likewise.
629 * pe-dll.c (generate_reloc): Likewise.
630 (make_import_fixup_entry): Likewise.
631 (pe_as16): Likewise.
632 * emultempl/beos.em (set_pe_subsystem): Likewise.
633 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
634 * emultempl/pe.em: Likewise.
635 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
636
637 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
638
639 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
640 (earmelfb_linux_eabi.c): New target.
641 * Makefile.in: Regenerated.
642 * configure.tgt (arm*b-*-linux-gnueabi): New target.
643 * emulparams/armelfb_linux_eabi.sh: New file.
644
645 2005-01-20 Nick Hudson <skrll@netbsd.org>
646
647 PR ld/676
648 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
649 Handle bfd_elf32_hppa_nbsd_vec.
650
651 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
652
653 * ldmain.h (ld_sysroot): Change type to a constant string.
654 * ldmain.c (ld_sysroot): Likewise.
655 (get_relative_sysroot, get_sysroot): New functions, adding command-line
656 support for changing the sysroot.
657 (main): Call the new functions.
658 * lexsup.c (OPTION_SYSROOT): New.
659 (ld_options): Add --sysroot.
660 (parse_args): Add a dummy handler for it.
661 * ld.texinfo (--sysroot): Document.
662 * NEWS: Mention the new --sysroot option.
663
664 2005-01-18 Alan Modra <amodra@bigpond.net.au>
665
666 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
667 (lang_place_orphans): Don't abort on just_syms_flag, instead call
668 bfd_link_just_syms.
669
670 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
671
672 * defilep.y (def_name, def_library): Combine into...
673 (def_image_name): New function. Strip name to basename,
674 with warning.
675
676 2005-01-12 Mark Kettenis <kettenis@gnu.org>
677
678 * configure.in: Be sure to invoke config.sub using the shell.
679 * configure: Regenerate.
680
681 2005-01-11 Alan Modra <amodra@bigpond.net.au>
682
683 * configure.host: Correct sed patterns for last change.
684
685 2005-01-10 Nick Clifton <nickc@redhat.com>
686
687 PR binutils/609
688 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
689 to determine whether config.make_executable should be set to FALSE in
690 conjunction with config.fatal_warnings.
691 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
692 (einfo): Pass TRUE as the extra argument.
693
694 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
695
696 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
697 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
698 (ia64-*-aix): Delete - this target is obsolete, and would be
699 broken by this patch.
700
701 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
702
703 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
704 (sparc64-sun-solaris2*): New host.
705
706 2005-01-06 Paul Brook <paul@codesourcery.com>
707
708 * Makefie.am: Add earmelf_vxworks.
709 * Makefile.in: Regenerate.
710 * configure.tgt: Make arm-*-vxworks a separate case.
711 * emulparams/armelf_vxworks.sh: New function.
712
713 2005-01-06 Alan Modra <amodra@bigpond.net.au>
714
715 * emultempl/ppc64elf.em (no_multi_toc): New var.
716 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
717 (OPTION_NO_MULTI_TOC): Define.
718 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
719 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
720
721 2005-01-05 Nick Clifton <nickc@redhat.com>
722
723 PR binutils/614
724 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
725 Standard's specification for parsable error messages.
726
727 2005-01-04 Paul Brook <paul@codesourcery.com>
728
729 * Makefile.am: Correct dependency for earmsymbian.c.
730 * Makefile.in: Regenerate.
731
732 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
733
734 * emultempl/pe.em (set_pe_subsystem): Change second arg to
735 lang_add_entry to FALSE.
736
737 2004-12-23 Nick Clifton <nickc@redhat.com>
738
739 PR 600
740 * emulparams/shelf.sh (.stack): Increase stack start address to
741 0x300000.
742
743 2004-12-20 Nick Clifton <nickc@redhat.com>
744
745 * ldmain.c (main): Issue an error message if -static and -shared
746 are used together.
747
748 2004-12-17 Jakub Jelinek <jakub@redhat.com>
749
750 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
751 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
752 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
753 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
754 PT_GNU_RELRO segment end.
755
756 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
757
758 * configure.tgt: Add s390x-ibm-tpf support.
759
760 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
761
762 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
763 BFD.
764
765 2004-12-07 Ben Elliston <bje@gnu.org>
766
767 * ldemul.h: Forward declare struct option.
768
769 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
770
771 * scripttempl/pe.sc (.data): Add .jcr subsection.
772
773 2004-11-30 Paul Brook <paul@codesourcery.com>
774
775 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
776
777 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
778
779 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
780 * Makefile.in: Regenerate.
781
782 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
783
784 * emultempl/pe.em: Add --subsystem:xbox as well as
785 --subsystem:%d.
786 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
787 and numeric subsystems.
788
789 2004-11-24 Alan Modra <amodra@bigpond.net.au>
790
791 * ldexp.c (fold_name): Correct PR 338 fix.
792
793 2004-11-19 Mark Mitchell <mark@codesourcery.com>
794
795 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
796 (earmelf_linux_eabi.c): New target.
797 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
798 * emulparams/armelf_linux_eabi.sh: New file.
799 * Makefile.in: Regenerated.
800
801 2004-11-19 Nick Clifton <nickc@redhat.com>
802
803 PR 518
804 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
805 LENGTH fields in the MEMORY command, to explicitly state that
806 symbols cannot be used in their expressions.
807
808 2004-11-19 Jon Beniston <jon@beniston.com>
809
810 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
811 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
812 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
813 which return the length and origin of a memory.
814 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
815 * NEWS: Mention support for ORIGIN and LENGTH operators.
816
817 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
818
819 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
820 a dynamic object for stubs.
821
822 2004-11-04 Paul Brook <paul@codesourcery.com>
823
824 * ld.texinfo: Document --default-imported-symver.
825 * ldmain.c (main): Set link_info.default_imported_symver.
826 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
827 (ld_options): Add --default-imported-symver.
828 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
829
830 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
831 Vineet Sharma <vineets@noida.hcltech.com>
832
833 * Makefile.am: Add entries for new maxq-coff target.
834 * Makefile.in: Regenerate.
835 * configure.tgt: Add support for maxq.
836 * emulparams/maxqcoff.sh: New File.
837 * scripttempl/maxqcoff.sc: New linker script for target maxq.
838 * NEWS: Mention the new target.
839
840 2004-11-04 Daniel Jacobowitz <dan@debian.org>
841
842 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
843 (earmelf_oabi.c): Remove rule.
844 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
845 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
846 * Makefile.in: Regenerated.
847
848 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
849
850 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
851 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
852 (FINI_START): Ditto.
853 (INIT_END): Remove emitted "jump [sp+]".
854 (FINI_END): Ditto.
855
856 2004-11-04 Alan Modra <amodra@bigpond.net.au>
857
858 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
859 (no_opd_opt, no_toc_opt): New static vars.
860 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
861 ppc64_elf_edit_toc.
862 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
863 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
864 (PARSE_AND_LIST_OPTIONS): Describe new options.
865 (PARSE_AND_LIST_ARGS_CASES): Handle them.
866
867 2004-10-27 Nick Clifton <nickc@redhat.com>
868
869 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
870 parameter to invocation of lang_section_start.
871 * emultempl/aix.em (_handle_option): Likewise.
872
873 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
874 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
875 * Makefile.in: Regenerate.
876
877 2004-10-26 Mark Mitchell <mark@codesourcery.com>
878
879 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
880 __exidx_{start,end} when not relocating.
881
882 2004-10-25 Mark Mitchell <mark@codesourcery.com>
883
884 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
885 * ldexp.h (segment_type): New type.
886 (segments): New variable.
887 * ldexp.c (segments): New variable.
888 (exp_print_token): Handle SEGMENT_START.
889 (fold_binary): Likewise.
890 * ldgram.y (SEGMENT_START): Declare it as a token.
891 (exp): Handle SEGMENT_START.
892 * ldlang.h (lang_address_statement_type): Add segment field.
893 (lang_section_start): Change prototype.
894 * ldlang.c (map_input_to_output_sections): Do not process section
895 assignments if a corresponding SEGMENT_START has already been
896 seen.
897 (lang_section_start): Add segment parameter.
898 * ldlex.l (SEGMENT_START): Add it.
899 * lexsup.c (seg_segment_start): New function.
900 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
901 * ld.texinfo (SEGMENT_START): Document it.
902 * emulparams/armsymbian.sh (EMBEDDED): Set it.
903 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
904 base addresses. Do not map relocations.
905 * NEWS: Mention SEGMENT_START.
906
907 2004-10-26 Paul Brook <paul@codesourcery.com>
908
909 * ld.texinfo: Document --default-symver.
910 * ldmain.c (main): Set link_info.create_default_symver.
911 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
912 (ld_options): Add default-symver.
913 (parse_args): Handle OPTION_DEFAULT_SYMVER.
914
915 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
916
917 * pe-dll.c (process_def_file): Don't export all symbols by default if
918 building a position-independent executable.
919
920 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
921
922 PR 463
923 * ldmain.c (reloc_overflow): Accept a pointer to struct
924 bfd_link_hash_entry. Report symbol location for relocation
925 overflow.
926
927 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
928
929 * genscripts.sh (libpath.exp): Really generate for first
930 emulation only.
931
932 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
933
934 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
935 comparison and replacement of filenames.
936
937 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
938
939 PR 459
940 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
941 option on linker script as the one for linker script.
942
943 2004-10-16 Daniel Jacobowitz <dan@debian.org>
944
945 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
946 (check_excluded_libs): New.
947 (load_symbols): Call check_excluded_libs.
948 * ldlang.h (add_excluded_libs): New prototype.
949 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
950 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
951 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
952 * ld.texinfo (Command Line Variables): Document --exclude-libs.
953 (Options Specific to i386 PE Targets): Remove --exclude-libs.
954
955 2004-10-15 Alan Modra <amodra@bigpond.net.au>
956
957 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
958 failing link script assert.
959
960 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
961
962 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
963
964 PR 445
965 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
966 (SMALL_DATA_DTOR): Set.
967 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
968 (SMALL_DATA_DTOR): Unset.
969 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
970 after .data. If SMALL_DATA_DTOR is set, move .dtors after
971 .data.
972
973 2004-10-14 Alan Modra <amodra@bigpond.net.au>
974
975 PR 63
976 * ldlang.h (lang_output_section_statement_type): Make "next" a
977 struct lang_output_section_statement_struct *.
978 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
979 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
980 * ldlang.c (lang_output_section_find_1): Adjust for changed
981 output_section_statement "next".
982 (strip_excluded_output_sections): Likewise.
983 (lang_record_phdrs): Likewise.
984 (lang_output_section_find_by_flags): New function.
985 (output_prev_sec_find): Move from pe.em. Adjust iterator.
986 (lang_insert_orphan): New function. Tail end of elf32.em's
987 place_orphan merged with that from pe.em. Allow bfd_section to
988 be placed first. New heuristic for placing new output section
989 statement in existing script, and accompanying split of __start
990 symbol alignment into a separate assignment to dot.
991 (lang_add_section): Consistently use output->bfd_section rather than
992 an alias, section->output_section.
993 (map_input_to_output_sections): Rename overly long arg. Move
994 initialization of data_statement output section to here..
995 (lang_check_section_addresses): ..from here.
996 (print_assignment): Correct printing of etree_assert.
997 (print_all_symbols): Don't bomb if userdata is NULL.
998 (IGNORE_SECTION): Rearrange.
999 * emultempl/elf32.em (output_rel_find): Adjust interator.
1000 (output_prev_sec_find): Delete.
1001 (struct orphan_save): Delete.
1002 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1003 flags without creating a duplicate output section statement.
1004 Revise code holding history of various orphan section placements.
1005 Allow orphan sections to place before script specified output
1006 sections. Call lang_output_section_find_by_flags when placement
1007 by name fails. Use lang_insert_orphan.
1008 * emultempl/mmo.em (output_prev_sec_find): Delete.
1009 (struct orphan_save): Delete.
1010 (mmo_place_orphan): Revise code holding history of orphan placement.
1011 Allow orphans to place before existing output sections. Use
1012 lang_insert_orphan.
1013 * emultempl/pe.em (output_prev_sec_find): Delete.
1014 (struct orphan_save): Delete.
1015 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1016 lang_insert_orphan.
1017
1018 2004-10-13 Mark Mitchell <mark@codesourcery.com>
1019
1020 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1021 loadable segment.
1022
1023 2004-10-13 Alan Modra <amodra@bigpond.net.au>
1024
1025 PR 44
1026 * ldcref.c (check_section_sym_xref): Delete.
1027 (check_local_sym_xref): New function.
1028 (check_nocrossrefs): Adjust call.
1029 * emultempl/pe.em (struct orphan_save): Add os_tail.
1030 (place_orphan): Backport assorted fixes from elf32.em.
1031
1032 2004-10-12 Bob Wilson <bob.wilson@acm.org>
1033
1034 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1035
1036 2004-10-11 Jakub Jelinek <jakub@redhat.com>
1037
1038 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1039 getline for portability.
1040
1041 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1042 (gld${EMULATION_NAME}_parse_ld_so_conf,
1043 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1044 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1045
1046 2004-10-11 Alan Modra <amodra@bigpond.net.au>
1047
1048 PR 423
1049 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1050 rejected when linking statically.
1051
1052 2004-10-08 Daniel Jacobowitz <dan@debian.org>
1053
1054 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1055
1056 2004-10-07 Bob Wilson <bob.wilson@acm.org>
1057
1058 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1059 assembler-generated longcall sequences. Describe new --size-opt
1060 option.
1061 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1062 * emultempl/xtensaelf.em (remove_section,
1063 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1064 elf_xtensa_after_open): New.
1065 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1066 OPTION_NO_LITERAL_MOVEMENT): Define.
1067 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1068 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1069 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1070 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1071 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1072 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1073 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1074 * Makefile.am (eelf32xtensa.c): Update dependencies.
1075 * Makefile.in: Regenerate.
1076
1077 2004-10-07 Jeff Baker <jbaker@qnx.com>
1078
1079 * lexsup.c: Handle --warn-shared-textrel option.
1080 (ld_options): Restore alpha sorting of options.
1081 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1082 * ld.texinfo: Add documentation for --warn-shared-textrel.
1083 * NEWS: Added mention of --warn-shared-textrel option.
1084
1085 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
1086
1087 * emultempl/crxelf.em (disable_relaxation): Add.
1088 (crxelf_before_allocation): Enable --relax option by default.
1089 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1090 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1091 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1092
1093 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
1094
1095 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1096 --sort-section name|alignment.
1097
1098 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1099 --sort-section name|alignment.
1100
1101 * ld.h (sort_type): New enum.
1102 (wildcard_spec): Change the type of `sorted' to sort_type.
1103
1104 * ldgram.y (SORT): Removed.
1105 (SORT_BY_NAME): Added.
1106 (SORT_BY_ALIGNMENT): Added.
1107 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1108 SORT_BY_ALIGNMENT.
1109 (input_section_spec_no_keep): Updated `sorted'.
1110 (statement): Replace SORT with SORT_BY_NAME.
1111
1112 * ldlang.c (compare_section): New function to compare 2
1113 sections with different sorting schemes.
1114 (wild_sort): Updated. Use compare_section.
1115 (update_wild_statements): New function.
1116 (lang_process): Call update_wild_statements before
1117 map_input_to_output_sections.
1118
1119 * ldlex.l (SORT_BY_NAME): New.
1120 (SORT_BY_ALIGNMENT): New.
1121 (SORT): Return SORT_BY_NAME.
1122
1123 * ldmain.c (sort_section): New. Defined.
1124 (main): Initialize it to none.
1125
1126 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1127 (ld_options): Add an entry for OPTION_SORT_SECTION.
1128 (parse_args): Handle OPTION_SORT_SECTION.
1129
1130 * mri.c (mri_draw_tree): Updated `sorted'.
1131
1132 2004-10-04 Jakub Jelinek <jakub@redhat.com>
1133
1134 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1135 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1136 argument.
1137 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1138 and . as second argument.
1139 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1140 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1141 (fold_binary): Add it here. Insert padding to make relro_end
1142 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
1143 exp_dataseg_relro_adjust phase just use previously computed
1144 exp_data_seg.base.
1145 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1146 relro_adjust here. Call lang_size_sections_1 once more if there
1147 was too big padding at DATA_SEGMENT_RELRO_END.
1148 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1149
1150 2004-10-01 Paul Brook <paul@codesourcery.com>
1151
1152 * emulparams/armelf.sh: Add unwinding table sections.
1153
1154 2004-09-30 Filip Navara <navaraf@reactos.com>
1155
1156 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1157 correct base address for position independant executables.
1158 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1159 executables as DLLs.
1160
1161 2004-09-30 Paul Brook <paul@codesourcery.com>
1162
1163 * ld.texinfo: Document --target2=abs.
1164 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1165
1166 2004-09-29 Nick Clifton <nickc@redhat.com>
1167
1168 * scripttempl/xstormy16.sc: Only perform the assignments to the
1169 ROM region when not performing a relocatable link. The ROM region
1170 does not start at address 0, but the sections will.
1171 * Makefile.am: Fix linker script dependency for the generation of
1172 eelf32xstormy16.c.
1173 * Makefile.in: Regenerate.
1174
1175 2004-09-18 Filip Navara <navaraf@reactos.com>
1176
1177 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1178 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1179 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1180 TARGET_PAGE_SIZE.
1181 * scripttempl/pe.sc: Make the virtual address and file offset synced if
1182 the alignment is lower than the target page size.
1183
1184 2004-09-27 Filip Navara <navaraf@reactos.com>
1185
1186 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1187 def_file_parse to handle pe_def_file if NULL and prevent crash with
1188 invalid .def files.
1189
1190 2004-09-27 Alan Modra <amodra@bigpond.net.au>
1191
1192 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1193 --emit-stub-syms automatically when --emit-relocs.
1194
1195 2004-09-24 Paul Brook <paul@codeosurcery.com>
1196
1197 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1198 .fini_array sections.
1199
1200 2004-09-19 Andreas Schwab <schwab@suse.de>
1201
1202 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1203 base so that relro end is suitably aligned.
1204
1205 2004-09-17 Paul Brook <paul@codesourcery.com>
1206
1207 * ld.texinfo: Rename arm-specific section. Document --target*
1208 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1209 * emulparams/armelf_linux.sh: Ditto.
1210 * emulparams/armelf_nbsd.sh: Ditto.
1211 * emultempl/armelf.em: Set default for TARGET2_TYPE.
1212 (target2_type): New variable.
1213 (arm_elf_before_allocation): Don't pass target1_type.
1214 (arm_elf_create_output_section_statements): New function.
1215 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1216 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1217 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1218 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1219 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1220 argument to bfd_elf32_arm_process_before_allocation.
1221
1222 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1223
1224 * ldexp.c (fold_name): Update u.undef.next refs.
1225 * emultempl/pe.em: Likewise.
1226 * emultempl/sunos.em: Likewise.
1227
1228 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1229
1230 * Makefile.am: Run "make dep-am".
1231 * Makefile.in: Regenerate.
1232 * config.in: Regenerate.
1233 * configure: Regenerate.
1234 * aclocal.m4: Regenerate.
1235 * po/ld.pot: Regenerate.
1236
1237 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
1238
1239 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1240 (.fini): Likewise.
1241 (.jcr): Likewise.
1242
1243 2004-09-16 Alan Modra <amodra@bigpond.net.au>
1244
1245 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1246 to bfd_elf32_arm_process_before_allocation call.
1247
1248 2004-09-13 Paul Brook <paul@codesourcery.com>
1249
1250 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1251 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
1252
1253 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
1254
1255 * configure: Regenerated with autconfig 2.13.
1256
1257 2004-09-07 Andreas Schwab <schwab@suse.de>
1258
1259 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1260 alignment before adjusting DATA_SEGMENT_RELRO_END.
1261
1262 2004-09-06 Mark Mitchell <mark@codesourcery.com>
1263
1264 * emulparams/armsymbian.sh: Use armbpabi script.
1265 * scripttempl/armbpabi.sc: New script.
1266
1267 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1268
1269 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1270 (earmsymbian.c): New target.
1271 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1272 * Makefile.in: Regenerated.
1273 * aclocal.m4: Likewise.
1274 * configure: Likewise.
1275 * emulparams/armsymbian.sh: New file.
1276
1277 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
1278
1279 * scripttempl/elf32crx.sc: Edit file with comments.
1280 (.init): Add new section.
1281 (.fini): Likewise.
1282 (.ctor): Control the linkage order.
1283 (.dtor): Likewise.
1284
1285 2004-08-27 Nick Clifton <nickc@redhat.com>
1286
1287 * emultempl/pe.em (after_open): Do not assume that either bfd is
1288 an archive.
1289
1290 2004-08-26 Alan Modra <amodra@bigpond.net.au>
1291
1292 * ldlang.c (lang_init): Don't compare with TRUE.
1293
1294 2004-08-25 Dmitry Diky <diwil@spec.ru>
1295
1296 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1297 * scripttempl/elf32msp430.sc: Add .profiler section definition.
1298
1299 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
1300
1301 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1302
1303 2004-08-19 Mark Mitchell <mark@codesourcery.com>
1304
1305 * configure.tgt (arm*-*-symbianelf*): New target.
1306 (arm*-*-eabi*): Likewise.
1307
1308 2004-08-19 Jakub Jelinek <jakub@redhat.com>
1309
1310 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1311 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1312 (OPTION_NON_OVERLAPPING_OPD): Define.
1313 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1314 --non-overlapping-opd option.
1315
1316 2004-08-18 Alan Modra <amodra@bigpond.net.au>
1317
1318 PR 338
1319 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1320 was already on the undefs list.
1321
1322 2004-08-17 Alan Modra <amodra@bigpond.net.au>
1323
1324 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1325 prefix the symbol field too.
1326
1327 2004-08-13 Alan Modra <amodra@bigpond.net.au>
1328
1329 * ldmain.c (link_callbacks): Remove "error_handler".
1330 * ldmisc.c: Include elf-bfd.h.
1331 (vfinfo): Sort comment. Handle %A. Use %A instead of
1332 bfd_get_section_indent.
1333 (error_handler): Delete.
1334 * ldmisc.h (error_handler): Delete declaration.
1335
1336 2004-08-10 Alan Modra <amodra@bigpond.net.au>
1337
1338 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1339 ppc64_elf_restore_symbols.
1340
1341 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1342
1343 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1344 .toc is too large on relocatable linking.
1345
1346 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1347
1348 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1349 (LDEMUL_AFTER_OPEN): Don't define.
1350
1351 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1352
1353 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1354
1355 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1356
1357 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1358 on power of 2.
1359
1360 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1361
1362 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1363
1364 2004-07-26 Dmitry Diky <diwil@spec.ru>
1365
1366 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1367 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1368 msp430xG439.
1369 * configure.tgt: Likewise.
1370 * emulparams/msp430all.sh: Likewise.
1371 * Makefile.in: Regenerate.
1372
1373 2004-07-23 Nick Clifton <nickc@redhat.com>
1374
1375 * emultempl/elf32.em (_place_orphan): Use an already existing
1376 section name if that section does not have any flags set.
1377
1378 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1379
1380 * ldlang.c (already_linked_hash_entry): Removed.
1381 (already_linked): Likewise.
1382 (already_linked_table): Likewise.
1383 (section_already_linked): Call bfd_section_already_linked.
1384 (lang_process): Replace already_linked_table_init with
1385 bfd_section_already_linked_table_init and check return. Replace
1386 already_linked_table_free with bfd_section_already_linked_table_free.
1387
1388 2004-07-21 Nick Clifton <nickc@redhat.com>
1389
1390 * ldlang.c (init_os): Make sure that the newly allocated userdata
1391 structure is zeroed out.
1392
1393 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1394
1395 * NEWS: Mention the new --add-needed/--no-add-needed and
1396 --as-needed/--no-as-needed options.
1397
1398 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1399
1400 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1401 check the add_needed field.
1402 (dt_needed): New struct.
1403 (gld${EMULATION_NAME}_try_needed): Change the first argument
1404 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1405 bit in the file where the DT_NEEDED entry comes from.
1406 (gld${EMULATION_NAME}_search_needed): Change the second
1407 argument to a pointer to struct dt_needed.
1408 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1409 (gld${EMULATION_NAME}_after_open): Likewise.
1410
1411 * ld.texinfo: Add --add-needed document.
1412 * ldlang.c (new_afile): Set p->add_needed.
1413 * ldlang.h (lang_input_statement_type): Add add_needed field.
1414 * ldmain.h (add_needed): Declare.
1415 * ldmain.c (add_needed): New global var.
1416 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1417 OPTION_NO_ADD_NEEDED.
1418 (ld_options): Likewise.
1419 (parse_args): Handle them.
1420
1421 2004-07-13 Christof Petig <christof@petig-baender.de>
1422
1423 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1424 for endian-ness of extracted addend.
1425
1426 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1427
1428 * pe-dll.c (auto_export): Filter on just the import prefix,
1429 "_imp_", not "_imp__".
1430
1431 2004-07-09 Nick Clifton <nickc@redhat.com>
1432
1433 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1434
1435 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1436
1437 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1438 (eelf32crx.c): New target.
1439 * Makefile.in: Regenerate.
1440 * configure.tgt: Handle crx-*-elf*.
1441 * emulparams/elf32crx.sh: New file.
1442 * emultempl/crxelf.em: New file.
1443 * scripttempl/elf32crx.sc: New file.
1444 * NEWS: Mention new target.
1445
1446 2004-07-06 Nick Clifton <nickc@redhat.com>
1447
1448 * Makefile.am: Add eshlsymbian.c.
1449 * Makefile.in: Regenerate.
1450 * configure.tgt: Add sh*-symbian-elf target.
1451 * emulparams/shlsymbian.sh: New file. Configure the
1452 sh-symbian-elf linker scripts.
1453 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1454 template for the sh-symbian-elf target.
1455
1456 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1457
1458 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1459 * emulparams/hppalinux.sh: Likewise.
1460 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1461 data segment and PLT_BEFORE_GOT is defined.
1462
1463 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1464
1465 * ld.texinfo (WIN32): Document PE weak symbols.
1466
1467 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1468
1469 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1470
1471 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1472
1473 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1474 the section.
1475
1476 2004-06-29 Alan Modra <amodra@bigpond.net.au>
1477
1478 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1479 size in rawsize.
1480
1481 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1482
1483 * ldlang.c (print_output_section_statement): Don't print size before
1484 relaxation.
1485 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1486
1487 * ldexp.c (fold_name): .. See below.
1488 * ldlang.c (section_already_linked, print_output_section_statement,
1489 print_input_section, insert_pad, size_input_section,
1490 lang_check_section_addresses, lang_size_sections_1,
1491 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1492 lang_one_common, lang_reset_memory_regions, lang_process,
1493 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1494 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1495 * pe-dll.c (process_def_file, generate_reloc): ..
1496 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1497 gld${EMULATION_NAME}_before_allocation): ..
1498 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1499 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1500 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1501 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1502 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1503 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1504 "size" instead of "_raw_size" and "_cooked_size". Expand
1505 bfd_section_size macro invocations.
1506
1507 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1508
1509 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1510 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1511 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1512 ___crt_xt_end__.
1513 (.tls): Define ___tls_start__ and ___tls_end__.
1514
1515 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1516
1517 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1518
1519 2004-06-18 Adam Nemet <anemet@lnxw.com>
1520
1521 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1522 * configure: Regenerate.
1523
1524 2004-06-15 Jakub Jelinek <jakub@redhat.com>
1525
1526 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1527 .gcc_except_table output sections lost accidentally with
1528 -z relro patch.
1529
1530 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1531
1532 * ldwrite.c (build_link_order): Use bfd_get_section_size
1533 instead of bfd_get_section_size_before_reloc or _raw_size.
1534 * pe-dll.c (process_def_file): Likewise.
1535
1536 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1537
1538 From Richard Wirth <r.wirth@wirthware.de>
1539 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1540
1541 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1542
1543 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1544 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1545
1546 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1547
1548 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1549 throughout file.
1550 * lexsup.c: Formatting. Wrap long lines.
1551 * ldwrite.c: Update copyright date.
1552
1553 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1554 (output_section_callback): Nor SEC_KEEP here.
1555 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1556 (lang_gc_wild): Delete. Fold into..
1557 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1558 collecting.
1559 (lang_process): Always call lang_gc_sections.
1560 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1561 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1562 SEC_EXCLUDE code.
1563
1564 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1565
1566 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1567 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1568 * ldlang.c (lang_add_section): Likewise.
1569
1570 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1571
1572 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1573 sections when doing a final link. Clear SEC_EXCLUDE when doing
1574 a relocable link, except for SEC_DEBUGGING sections.
1575 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1576 same condition here to drop SEC_EXCLUDE orphan sections.
1577
1578 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1579
1580 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1581 only when not a relocatable link.
1582 (print_input_section): Handle SEC_EXCLUDE sections.
1583 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1584 (lang_do_assignments_1): Likewise.
1585 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1586 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1587 * emultempl/hppaelf.em (build_section_lists): Likewise.
1588 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1589 (build_section_lists): Likewise.
1590
1591 2004-05-23 Andreas Schwab <schwab@suse.de>
1592
1593 * ld.texinfo (Options): Fix typo in last change.
1594
1595 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1596
1597 * ld.h (ld_config_type): Add new field: hash_table_size.
1598 * ldmain.c: Initialise the new field to zero. If it is non-zero
1599 after parsing the linker's command line call
1600 bfd_hash_set_default_size.
1601 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1602 (ld_options): Add hash-size.
1603 (parse_args): Parse --hash-size option. Allow
1604 --reduce-memory-overheads to set the default hash table size as
1605 well.
1606 * ld.texinfo: Document the new switch. Also mention that
1607 --reduce-memory-overheads can affect the hash table size.
1608 * NEWS: Mention the new feature.
1609
1610 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1611
1612 * NEWS: Mention new linker map file generation and the
1613 --reduce-memory-overheads option.
1614 * ld.texinfo: Document --reduce-memory-overheads option.
1615 * ld.h (map_symbol_def): New struct.
1616 (struct user_section_struct, section_userdata_type): Rename to:
1617 (struct lean_user_section_struct, lean_section_userdata_type).
1618 (struct fat_user_section_struct, fat_section_userdata_type): New.
1619 (SECTION_USERDATA_SIZE): Define.
1620 (args_type): New member reduce_memory_overheads.
1621 * ldlang.c (map_obstack): New static variable.
1622 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1623 (lang_map): Unless command_line.reduce_memory_overheads is set,
1624 initialize lists of defined symbols for each section.
1625 (print_input_section): Unless command_line.reduce_memory_overheads
1626 is set, use print_all_symbols.
1627 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1628 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1629 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1630 (ld_options): Add entry for --reduce-memory-overheads.
1631 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1632
1633 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1634
1635 * ldgram.y (sect_constraint): New.
1636 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1637 (section): Add sect_constraint. Pass additional argument
1638 to lang_enter_output_section_statement.
1639 * mri.c (mri_draw_tree): Pass additional argument to
1640 lang_enter_output_section_statement.
1641 * emultempl/pe.em (place_orphan): Likewise.
1642 (output_prev_sec_find): Disregard output section statements with
1643 constraint == -1.
1644 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1645 (mmo_place_orphan): Pass additional argument to
1646 lang_enter_output_section_statement.
1647 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1648 statements with constraint == -1.
1649 (place_orphan): Pass additional argument to
1650 lang_enter_output_section_statement.
1651 * ldlang.c (lang_enter_overlay_section): Likewise.
1652 (lang_output_section_find_1): New.
1653 (lang_output_section_find): Use it.
1654 (lang_output_section_statement_lookup_1): New.
1655 (lang_output_section_statement_lookup): Use it.
1656 (check_section_callback, check_input_sections): New.
1657 (map_input_to_output_sections): Check if all input sections
1658 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1659 (strip_excluded_output_sections): Disregard output section statements
1660 with constraint == -1.
1661 (lang_record_phdrs): Likewise.
1662 (lang_enter_output_section_statement): Add constraint argument.
1663 Use lang_output_section_statement_lookup_1.
1664 * ldlang.h (lang_output_section_statement_type): Add constraint
1665 and all_input_readonly fields.
1666 (lang_enter_output_section_statement): Adjust prototype.
1667 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1668 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1669 segment if all input sections are readonly.
1670
1671 2004-05-19 Adam Nemet <anemet@lnxw.com>
1672
1673 * scripttempl/i386lynx.sc: Remove file.
1674
1675 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1676
1677 * ld.texinfo (Output Section Address): Correct subsection name.
1678
1679 2004-05-17 Adam Nemet <anemet@lnxw.com>
1680
1681 * configure.tgt (powerpc-*-lynxos* case): New case.
1682 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1683 * emulparams/ppclynx.sh: New file.
1684 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1685 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1686 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1687 (eppclynx.c): New rule.
1688 * Makefile.in: Regenerate.
1689
1690 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1691
1692 * configure.tgt (or32-*-rtems*): Switch to elf and
1693 support versioned targets.
1694
1695 2004-05-13 Nick Clifton <nickc@redhat.com>
1696
1697 * po/fr.po: Updated French translation.
1698
1699 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1700
1701 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1702 for binaries, -shared and -pie.
1703 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1704 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1705 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1706 (OTHER_RELRO_SECTIONS): ... this.
1707 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1708 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1709 -z relro and -z norelro.
1710 (gld${EMULATION_NAME}_list_options): Add it to usage.
1711 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1712 -z relro scripts when appropriate.
1713 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1714 Create separate .got.plt section if SEPARATE_GOTPLT.
1715 Move sections which are only written during relocation handling
1716 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1717 before .data. Add DATA_SEGMENT_RELRO_END directive.
1718 Include OTHER_RELRO_SECTIONS.
1719 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1720 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1721 (fold_unary): Likewise.
1722 (fold_binary): Handle -z relro.
1723 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1724 exp_dataseg_relro_adjust phases. Add relro_end field.
1725 * ldmain.c (main): Initialize link_info.relro to FALSE.
1726 * ldlang.c (lang_size_sections): Handle -z relro.
1727
1728 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1729
1730 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1731
1732 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1733
1734 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1735 before printing it with %W.
1736
1737 2004-05-07 Brian Ford <ford@vss.fsi.com>
1738 DJ Delorie <dj@redhat.com>
1739
1740 * emultempl/pe.em (real_flags): New static.
1741 (OPTION_LARGE_ADDRESS_AWARE): New define.
1742 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1743 (gld_${EMULATION_NAME}_list_options): Likewise.
1744 (gld${EMULATION_NAME}_handle_option): Likewise.
1745 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1746 * ld.texinfo: Document it.
1747 * NEWS: Mention it.
1748
1749 2004-05-07 Brian Ford <ford@vss.fsi.com>
1750
1751 * NEWS: Mention DWARF 2 support for i386pe.
1752
1753 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1754
1755 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1756 elf32-frvfdpic.
1757
1758 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1759
1760 * ldlang.c (unique_section_p): Pass section parm, return true on
1761 group sections.
1762 (output_section_callback): Adjust.
1763 * ldlang.h (unique_section_p): Update prototype.
1764 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1765
1766 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1767
1768 * ld.texinfo (--gc-sections): Remove restriction for
1769 dynamic linking.
1770
1771 2004-04-29 Brian Ford <ford@vss.fsi.com>
1772
1773 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1774 for DWARF 2/3. Update stab section's syntax.
1775
1776 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1777
1778 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1779 (fill_edata): Correct pointer arithmetic.
1780
1781 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1782
1783 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1784 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1785 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1786 (EXTRA_EM_FILE): Use mipsecoff.em
1787 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1788 (EXTRA_EM_FILE): Use mipsecoff.em
1789 * emultempl/mipsecoff.em: Restructure to be included as an
1790 extra emulation file.
1791 (check_sections, gld${EMULATION_NAME}_after_open)
1792 (gld${EMULATION_NAME}_after_allocation)
1793 (gld${EMULATION_NAME}_get_script)
1794 (ld_${EMULATION_NAME}_emulation): Remove
1795 (gld${EMULATION_NAME}_before_parse): Rename to...
1796 (mipsecoff_before_parse): This.
1797 (LDEMUL_BEFORE_PARSE): Define.
1798 * emultempl/mipself.em: Remove file.
1799 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1800 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1801 these symbols.
1802 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1803 * Makefile.in: Regenerate.
1804
1805 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1806
1807 * ld.texinfo (synthesizing on H8/300): Information about linker
1808 relaxation support for bit manipulation instructions and system
1809 control instructions is added.
1810
1811 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1812
1813 * NEWS: Mention change in DEFINED semantics.
1814
1815 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1816
1817 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1818 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1819 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1820
1821 2004-04-21 Ben Elliston <bje@au.ibm.com>
1822
1823 * ld.texinfo (Simple Example): Add missing punctuation.
1824
1825 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1826
1827 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1828
1829 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1830
1831 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1832 specially.
1833
1834 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1835
1836 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1837 with default priority. Likewise for dtors.
1838
1839 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1840
1841 * configure.host: Remove mips*-dec-bsd* target.
1842 * configure.tgt: Likewise.
1843
1844 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1845
1846 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1847 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1848 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1849 * emultempl/irix.em: New file.
1850 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1851 dependencies.
1852 * Makefile.in: Regenerate.
1853
1854 2004-04-01 Paul Brook <paul@codesourcery.com>
1855
1856 * emultempl/armelf.em (byteswap_code): Add.
1857 (arm_elf_before_allocation): Pass extra parameter.
1858 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1859 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1860 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1861 * emultempl/armelf_oabi.em: Pass extra parameter.
1862 * ld.texinfo: Document --be8.
1863
1864 2004-03-30 Stan Shebs <shebs@apple.com>
1865
1866 Remove long-obsolete MPW support.
1867 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1868 * Makefile.am (mpw): Remove file-presynthesizing actions.
1869 * Makefile.in: Likewise.
1870 * ldfile.c (slash): Remove MPW case.
1871 * ldlex.l [MPW]: Remove unused definition.
1872
1873 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1874
1875 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1876 (eelf32cr16c.c): New target.
1877 * Makefile.in: Regenerate.
1878 * configure.tgt: Handle cr16c-*-elf*.
1879 * emulparams/elf32cr16c.sh: New file.
1880 * scripttempl/elfcr16c.sc: Likewise
1881 * NEWS: Mention support for new target.
1882
1883 2004-03-30 Nick Clifton <nickc@redhat.com>
1884
1885 * po/sv.po: Updated Swedish translation.
1886
1887 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1888
1889 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1890 * emultempl/hppaelf.em: Likewise.
1891 * emultempl/ppc64elf.em: Likewise.
1892 * emultempl/sh64elf.em: Likewise.
1893
1894 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1895
1896 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1897 size_dynamic_sections call.
1898
1899 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1900
1901 PR 51.
1902 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1903 link_info.wrap_char.
1904
1905 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1906
1907 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1908 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1909
1910 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1911
1912 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1913
1914 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1915
1916 * config.in: Regenerate.
1917 * po/ld.pot: Regenerate.
1918
1919 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1920
1921 * ld.texinfo: Add --as-needed doco.
1922 * ldmain.c (as_needed): New global var.
1923 * ldmain.h (as_needed): Declare.
1924 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1925 OPTION_NO_AS_NEEDED.
1926 (ld_options): Likewise.
1927 (parse_args): Handle them.
1928 * ldlang.h (lang_input_statement_type): Add as_needed field.
1929 * ldlang.c (new_afile): Set p->as_needed.
1930 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1931 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1932 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1933
1934 * ldlang.c (open_input_bfds): Remove useless cast.
1935 (lang_do_assignments_1): Likewise.
1936 (lang_for_each_input_section): Delete.
1937
1938 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1939
1940 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1941
1942 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1943
1944 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1945 private when building implib.
1946
1947 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1948
1949 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1950 SEC_THREAD_LOCAL.
1951 (IGNORE_SECTION): Ignore .tbss sections too.
1952 (lang_size_sections_1): .tbss sections do not advance dot.
1953
1954 2004-03-01 Andreas Schwab <schwab@suse.de>
1955
1956 * ld.texinfo (Options): Fix example for --wrap.
1957
1958 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1959
1960 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1961 not NULL.
1962
1963 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1964
1965 * ldlang.c (lang_check): Use %P, not %E, in error message.
1966
1967 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1968
1969 * ldlang.h (struct lang_output_section_state): Change processed
1970 field's type.
1971 * ldexp.c (check, invalid): Remove.
1972 (fold_name): Move valid_p assignments. Create undefined symbol
1973 when needed. Directly exampine section's processd flag.
1974 * ldlang.c (lang_output_section_statement_lookup): Adjust
1975 processed field init.
1976 (lang_size_sections_1): Allow LOADADDR when determining section's
1977 VMA. Adjust error message. Fold data statement's expr.
1978 (lang_size_sections): Correctly increment lang_statement_iteration.
1979
1980 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1981
1982 * ldexp.c (fold_tree): Follow indirect symbols.
1983
1984 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1985
1986 * ldgram.y (exp): Add two operand ALIGN.
1987 * ldexp.c (fold_binary): Add ALIGN_K case.
1988 * ld.texinfo (ALIGN): Document two operand version.
1989
1990 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1991
1992 * ldlang.c (map_input_to_output_sections): Initialize sections
1993 mentioned in a data statement expression.
1994 (lang_do_assignments_1): Add data statement's expression's
1995 section's vma.
1996
1997 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1998
1999 * ldgram.y (statement_anywhere): Add assert rule.
2000 * ldlang.c (exp_init_os): Add assert case.
2001
2002 2004-02-14 Andrew Cagney <cagney@redhat.com>
2003
2004 * ldmain.c (remove_output): Call bfd_cache_close.
2005
2006 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2007
2008 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2009 .MIPS.content* and .MIPS.events* sections.
2010
2011 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2012
2013 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2014 .note.gnu.arm.ident to after allocated sections. Mark its
2015 address as 0.
2016
2017 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2018
2019 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2020 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2021 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2022 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2023 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2024
2025 2004-02-05 Nick Clifton <nickc@redhat.com>
2026
2027 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2028
2029 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2030
2031 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2032
2033 2004-01-28 Alan Modra <amodra@bigpond.net.au>
2034
2035 * genscripts.sh: Fix typo.
2036
2037 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2038
2039 2004-01-24 Jakub Jelinek <jakub@redhat.com>
2040
2041 * emulparams/elf64_ia64.sh: Put .rela.opd into
2042 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2043
2044 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2045
2046 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2047 * ld.texinfo (--omagic): Note that writable text section
2048 does not conform to published PE-COFF specs.
2049 (--enable-auto-import): Likewise.
2050
2051 2004-01-15 Alan Modra <amodra@bigpond.net.au>
2052
2053 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2054
2055 2004-01-13 Nick Clifton <nickc@redhat.com>
2056
2057 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2058 which if true will prevent the LMA region being used as a
2059 replacement for a default VMA region.
2060 (lang_leave_output_section_statement): Pass extra parameter.
2061 (lang_leave_overlay): Likewise.
2062 * ld.texinfo (Output Section LMA): Document that the LMA
2063 region can be set to the VMA region if no VMA has been set.
2064 * ldlang.h (struct lang_output_section_phdr_list): Create a
2065 typedef for this type. Minor formatting fixes.
2066
2067 2004-01-13 Nick Clifton <nickc@redhat.com>
2068
2069 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2070 assume that the section should be allocated.
2071
2072 2004-01-13 Alan Modra <amodra@bigpond.net.au>
2073
2074 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2075 sections. Do ignore SEC_NEVER_LOAD sections.
2076 (lang_size_sections_1): Remove test made redundant with the above.
2077
2078 2004-01-09 Alan Modra <amodra@bigpond.net.au>
2079
2080 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2081 program_header_size.
2082
2083 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
2084
2085 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2086 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2087 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2088 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2089 (MAXPAGESIZE): Set to 64Kb.
2090 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2091 __ROFIXUP_END__. Don't map .rofixup.got any more.
2092 * emulparams/elf32frv.sh (NOP): Set.
2093 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2094 * configure.tgt: Add frv-*-*linux*.
2095 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2096 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2097 (eelf32frvfd.c): New.
2098 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2099 * emulparams/elf32frv.sh: Reverted previous two patches.
2100 * emulparams/elf32frvfd.sh: New.
2101 * Makefile.in: Rebuilt.
2102 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2103 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2104 .rofixup.got to .rofixup.
2105 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2106 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2107 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2108
2109 2004-01-05 Jakub Jelinek <jakub@redhat.com>
2110
2111 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2112 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2113
2114 2004-01-03 Alan Modra <amodra@bigpond.net.au>
2115
2116 * ldexp.c (align_n): Make static.
2117 * ldexp.h (align_n): Delete declaration.
2118 * ldlang.h (lang_enter_output_section_statement): Remove
2119 block_value param.
2120 * ldlang.c (lang_enter_output_section_statement): Likewise.
2121 (TO_ADDR, TO_SIZE): Define.
2122 (opb_shift): New var.
2123 (init_opb): New function.
2124 (print_input_section): Call init_opb and use TO_ADDR.
2125 (print_data_statement, print_reloc_statement): Likewise.
2126 (print_padding_statement): Likewise.
2127 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2128 (lang_check_section_addresses): Likewise.
2129 (lang_size_sections_1): Likewise.
2130 (lang_do_assignments_1): Likewise.
2131 (lang_set_startof): Likewise.
2132 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
2133 (lang_process): Call init_opb.
2134 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2135 (lang_enter_overlay_section): Adjust
2136 lang_enter_output_section_statement call.
2137 * ldgram.y: Likewise.
2138 * mri.c (mri_draw_tree): Likewise.
2139 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2140 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2141 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2142
2143 * ldfile.c (ldfile_set_output_arch): Add defarch param.
2144 * ldfile.h (ldfile_set_output_arch): Ditto.
2145 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2146 ldfile_set_output_arch.
2147 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2148 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2149 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2150 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2151 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2152 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2153 * ldgram.y: Adjust ldfile_set_output_arch call.
2154 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2155 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2156 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2157 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2158 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2159 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2160 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2161
2162 2004-01-02 Bernardo Innocenti <bernie@develer.com>
2163
2164 * configure.tgt: Add m68k-uClinux target.
2165
2166 For older changes see ChangeLog-0203
2167 \f
2168 Local Variables:
2169 mode: change-log
2170 left-margin: 8
2171 fill-column: 74
2172 version-control: never
2173 End:
This page took 0.07199 seconds and 3 git commands to generate.