* ldlang.c (lang_insert_orphan): Skip first assignment to dot
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2005-11-24 Alan Modra <amodra@bigpond.net.au>
2
3 * ldlang.c (lang_insert_orphan): Skip first assignment to dot
4 in script when looking for place to insert orphan statements.
5
6 2005-11-18 Alan Modra <amodra@bigpond.net.au>
7
8 * emulparams/elf64ppc.sh (.tocbss): Use new section alignment scheme.
9 (.got, .toc1, .opd): Likewise.
10
11 2005-11-18 Alan Modra <amodra@bigpond.net.au>
12
13 * ldlang.c (lang_size_sections_1): Revert 2005-11-16 functional
14 changes to section alignment.
15 * ldmisc.c (vfinfo): Handle %ld and %lu.
16
17 2005-11-16 Mark Mitchell <mark@codesourcery.com>
18
19 * Makefile.am (configdoc.texi): Set top_srcdir in configdoc.texi..
20 * Makefile.in: Regenerated.
21 * ld.texinfo: Include configdoc.texi and ldver.texi in man pages.
22 Add @file documentation.
23
24 2005-11-17 Alan Modra <amodra@bigpond.net.au>
25
26 * ldlang.h (lang_input_section_type): Remove "ifile" field.
27 (lang_insert_orphan, lang_add_section): Update prototypes.
28 * ldlang.c (lang_insert_orphan): Remove "file" param.
29 (lang_add_section): Likewise. Update all callers.
30 (wild_sort): Get an input section's bfd via "section->owner".
31 (size_input_section): Access just_syms_flag via bfd usrdata.
32 (lang_place_orphans): Update ldemul_place_orphan call.
33 * ldemul.h (ldemul_place_orphan): Remove input_statement param.
34 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
35 * ldemul.c (ldemul_place_orphan): Likewise.
36 * ldwrite.c (build_link_order): Access just_syms_flag via bfd usrdata.
37 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
38 * emultempl/beos.em (sort_by_file_name): Access bfd by section->owner.
39 (sort_sections): Likewise.
40 (place_orphan): Remove "file" param. Adjust lang_add_section call.
41 * emultempl/elf32.em (place_orphan): Remove "file" param. Adjust
42 lang_add_section and lang_insert_orphan calls.
43 * emultempl/hppaelf.em (hppaelf_add_stub_section): Adjust
44 lang_add_section call.
45 (build_section_lists): Access just_syms_flag via bfd usrdata.
46 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Adjust
47 lang_add_section call.
48 * emultempl/mmo.em (mmo_place_orphan): Remove "file" param. Adjust
49 lang_add_section and lang_insert_orphan calls.
50 * emultempl/pe.em (place_orphan): Likewise. Access bfd via section
51 owner.
52 * emultempl/ppc64elf.em (ppc_add_stub_section): Adjust
53 lang_add_section call.
54 (build_toc_list): Access just_syms_flag via bfd usrdata.
55 (build_section_lists): Likewise.
56 * emultempl/xtensaelf.em (elf_xtensa_place_orphan): Remove "file"
57 param. Adjust place_orphan call.
58 (ld_build_required_section_dependence): Access bfd via section owner.
59
60 2005-11-16 Alan Modra <amodra@bigpond.net.au>
61
62 * ldlang.h (lang_output_section_statement_type): Add prev.
63 * ldlang.c (new_afile): Always init header.type.
64 (output_statement_newfunc): Set os.prev.
65 (output_prev_sec_find): Use os.prev.
66 (lang_enter_output_section_statement): Formatting.
67 (lang_final, lang_add_target, lang_add_fill): Likewise.
68 (lang_add_data, lang_add_reloc): Likewise.
69 (lang_add_attribute): Only alloc the header.
70
71 2005-11-16 Alan Modra <amodra@bigpond.net.au>
72
73 * ld.texinfo (Forced Output Alignment): Specify that this is an
74 alignment increase, not an override.
75 * ldlang.c (init_os): Set output section alignment here..
76 (lang_add_section): ..rather than here.
77 (lang_size_sections_1): Consolidate alignment code. Warn if section
78 alignment affects start address when explicit address given.
79
80 2005-11-07 Steve Ellcey <sje@cup.hp.com>
81
82 * configure: Regenerate after modifying bfd/warning.m4.
83
84 2005-11-07 Olaf Hering <olh@suse.de>
85
86 * ldmain.c (main): Add \n to error message.
87
88 2005-11-04 Alan Modra <amodra@bigpond.net.au>
89
90 * ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
91 (output_statement_newfunc): Rewrite.
92 (lang_output_section_find_1): Merge into..
93 (lang_output_section_find): ..here.
94 (lang_output_section_statement_lookup_1): Rewrite to handle
95 multiple sections with the same name.
96 (output_statement_table_init): Commonise error message.
97 (lang_init, open_output): Likewise.
98
99 2005-11-03 Paul Brook <paul@codesourcery.com>
100
101 * scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
102 * scripttempl/armbpabi.sc: Make init/fini array consistent with
103 elf.sc.
104 * scripttempl/elf32sh-symbian.sc: Ditto.
105 * scripttempl/elfxtensa.sc: Ditto.
106
107 2005-11-03 Alan Modra <amodra@bigpond.net.au>
108
109 * ldlang.h (lang_output_section_statement_type): Rearrange. Remove
110 memspec. Make "processed" a bitfield.
111 (lang_data_statement_type, lang_reloc_statement_type): Rename
112 output_vma to output_offset.
113 * ldlang.c (lang_output_section_statement_lookup_1): Init
114 all_input_readonly. Don't init memspec.
115 (init_os): Remove incorrect comment.
116 (print_data_statement, print_reloc_statement): Adjust for
117 lang_data_statement_type and lang_reloc_statement_type change.
118 (lang_size_sections_1, lang_add_reloc): Likewise.
119 * ldwrite.c (build_link_order): Likewise.
120
121 2005-10-30 Mark Mitchell <mark@codesourcery.com>
122
123 * lexsup.c (help): Document "@FILE".
124
125 2005-10-30 H.J. Lu <hongjiu.lu@intel.com>
126
127 * Makefile.am: Run "make dep-am".
128 * Makefile.in: Regenerated.
129
130 * dep-in.sed: Replace " ./" with " ".
131
132 2005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
133
134 * Makefile.am: Add support for Z80
135 * Makefile.in: Regenerated
136 * configure.tgt: Add z80-*-coff
137 * emulparams/z80.sh: New file.
138 * emultempl/z80.em: New file.
139 * scripttempl/z80.sc New file.
140 * NEWS: Mention this new support.
141
142 2005-10-25 Alan Modra <amodra@bigpond.net.au>
143
144 * po/ld.pot: Regenerate.
145
146 2005-10-25 Chris Metcalf <cdmetcalf@comcast.net>
147
148 * ld.texinfo (--reduce-memory-overheads): Fix typo.
149
150 2005-10-23 H.J. Lu <hongjiu.lu@intel.com>
151
152 PR ld/1487
153 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
154 bfd_match_sections_by_type to match section types.
155
156 * ldlang.c (init_os): Take the input section. Call
157 bfd_init_private_section_data if the input section isn't NULL.
158 (exp_init_os): Pass NULL to init_os.
159 (map_input_to_output_sections): Likewise.
160 (lang_add_section): Pass the input section to init_os.
161
162 2005-10-19 Paul Brook <paul@codesourcery.com>
163
164 * emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
165
166 2005-10-15 H.J. Lu <hongjiu.lu@intel.com>
167
168 PR ld/1467
169 * emultempl/elf32.em: Include "elf-bfd.h".
170 (gld${EMULATION_NAME}_place_orphan): Check section type and
171 don't use section name for ELF input sections.
172
173 * ld.texinfo: Document orphan section processing.
174
175 * ldlang.c (lang_output_section_find_by_flags): Match section
176 types by calling bfd_match_sections_by_type.
177
178 2005-10-13 Mark Mitchell <mark@codesourcery.com>
179
180 * ld.texino: Describe double-quoted string syntax for version
181 nodes.
182 * ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
183 * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
184 Adjust calls to lang_new_vers_pattern to pass literal_p argument.
185 * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
186 version nodes without a pattern.
187 (lang_new_vers_pattern): Add literal_p parameter.
188 (lang_do_version_exports_section): Pass it.
189
190 2005-10-12 Mark Mitchell <mark@codesourcery.com>
191
192 * NEWS: Mention @file.
193
194 2005-10-05 H.J. Lu <hongjiu.lu@intel.com>
195
196 PR ld/1396
197 * ldcref.c (check_refs): Accept bfd_boolean.
198 (check_local_sym_xref): Pass FALSE to check_refs.
199 (check_nocrossref): Pass TRUE to check_refs.
200 (check_refs_info): Add bfd_boolean.
201 (check_refs): Add bfd_boolean to check_refs_info.
202 (check_reloc_refs): Match relocations with proper symbols.
203
204 * ldmisc.c (vfinfo): Don't add extra ":\n".
205
206 2005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
207
208 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
209 default entry symbol to ENTRY here.
210 * scripttempl/pe.sc: Not here.
211
212 2005-09-30 James E Wilson <wilson@specifix.com>
213
214 * ldlang.c (lang_startup): Add missing ": " to einfo call.
215
216 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
217
218 * Makefile.am: Run "make dep-am".
219 * Makefile.in: Regenerated.
220 * aclocal.m4: Likewise.
221
222 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
223
224 * ldlang.c (output_statement_hash_entry): New type.
225 (output_statement_table): New variable for hash table.
226 (output_statement_newfunc): New function.
227 (output_statement_table_init): Likewise.
228 (output_statement_table_free): Likewise.
229 (lang_init): Call output_statement_table_init.
230 (lang_finish): Renamed to ...
231 (lang_end): This.
232 (lang_process): Updated.
233 (lang_finish): New function.
234 (lang_output_section_find_1): Use hash table.
235 (lang_output_section_statement_lookup_1): Likewise.
236
237 * ldlang.h (lang_finish): New.
238
239 * ldmain.c (main): Call lang_finish.
240
241 2005-09-30 Mark Mitchell <mark@codesourcery.com>
242
243 * ldmain.c (main): Use expandargv.
244
245 2005-09-30 Catherine Moore <clm@cm00re.com>
246
247 * Makefile.am: Bfin support.
248 * Makefile.in: Regenerated.
249 * aclocal.m4: Regenerated.
250 * configure.tgt: Bfin support.
251 * emulparams/bfin.sh: New file.
252 * emultempl/bfin.em: New file.
253
254 2005-09-30 Matthias Kurz <mk@baerlap.north.de>
255
256 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
257 version of <locale.h> when ENABLE_NLS is not defined.
258
259 2005-09-27 H.J. Lu <hongjiu.lu@intel.com>
260
261 * ld.texinfo (ALIGN): Document it as forcing output section
262 alignment.
263
264 * ldgram.y (ALIGN): Support it for forcing output section
265 alignment.
266
267 2005-09-20 Alan Modra <amodra@bigpond.net.au>
268
269 * ldlang.h (lang_output_section_statement_struct): Change type of
270 "processed" to bfd_boolean.
271 * ldexp.c (fold_name): Update references to os->processed.
272 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
273 (lang_size_sections_1): Likewise.
274 (lang_reset_memory_regions): Likewise.
275
276 PR ld/1353
277 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
278 so that unused output section statements affect dot.
279
280 2005-09-08 Jakub Jelinek <jakub@redhat.com>
281
282 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
283 and --eh-frame-hdr options.
284
285 2005-09-07 Alan Modra <amodra@bigpond.net.au>
286
287 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
288 (exp_fold_tree_1): Print assert message only in final stage of
289 linking. Trigger assertion failure if expression cannot be
290 evaluated.
291
292 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
293
294 PR ld/1263
295 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
296 --just-symbols on DSO.
297
298 2005-08-18 Alan Modra <amodra@bigpond.net.au>
299
300 * scripttempl/elf.sc: Remove commented out defines.
301
302 2005-08-18 Alan Modra <amodra@bigpond.net.au>
303
304 * emulparams/a29k.sh: Delete.
305 * emulparams/ebmon29k.sh: Delete.
306 * emulparams/sa29200.sh: Delete.
307 * Makefile.am: Remove a29k support.
308 * configure.tgt: Likewise.
309 * ld.texinfo: Likewise.
310 * Makefile.in: Regenerate.
311
312 2005-08-17 Jakub Jelinek <jakub@redhat.com>
313
314 * ldgram.y (vers_defns): Don't lose pattern list before
315 extern NAME {}. Handle global, local and extern symbol names.
316
317 2005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
318
319 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
320 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
321
322 2005-08-10 Nick Clifton <nickc@redhat.com>
323
324 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
325 before lang_size_sections.
326
327 2005-08-09 Alan Modra <amodra@bigpond.net.au>
328
329 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
330
331 2005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
332
333 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
334 Add rules to build these emulations.
335 * Makefile.in: Regenerate.
336 * configure.tgt (msp430): Add the new variants to the
337 targ_extra_emuls list.
338 * emulparams/msp430all.sh: Add entries for the msp430x21xx
339 variants.
340
341 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
342
343 * ld.texinfo: Document PROVIDE_HIDDEN.
344
345 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
346 (exp_provide): Add and set hidden.
347
348 * ldexp.h (etree_type): Add hidden to assign.
349
350 * ldgram.y (PROVIDE_HIDDEN): New.
351 * ldlex.l (PROVIDE_HIDDEN): Likewise.
352
353 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
354 symbols.
355
356 2005-08-05 Alan Modra <amodra@bigpond.net.au>
357
358 * emulparams/elf_x86_64.sh: Revert last change.
359 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
360
361 2005-08-05 Alan Modra <amodra@bigpond.net.au>
362
363 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
364 OTHER_END_SYMBOLS.
365 * emulparams/armelf_linux.sh: Likewise.
366 * emulparams/armnto.sh: Likewise.
367 * emulparams/criself.sh: Likewise.
368 * emulparams/elf32mcore.sh: Likewise.
369 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
370 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
371 (OTHER_END_SYMBOLS): Don't define.
372 * emulparams/elf32fr30.sh: Likewise.
373 * emulparams/elf64mmix.sh: Likewise.
374 * emulparams/hppa64linux.sh: Likewise.
375 * emulparams/m32relf.sh: Likewise.
376 * emulparams/vxworks.sh: Likewise.
377 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
378 (OTHER_BSS_END_SYMBOLS): Add.
379 (OTHER_END_SYMBOLS): Move before current end sym definitions.
380 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
381 * scripttempl/elf.sc: Likewise.
382 * scripttempl/elf32sh-symbian.sc: Likewise.
383 * scripttempl/elf_chaos.sc: Likewise.
384 * scripttempl/elfxtensa.sc: Likewise.
385 * scripttempl/iq2000.sc: Likewise.
386 * scripttempl/xstormy16.sc: Likewise.
387
388 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
389 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
390 (REL_LARGE, LARGE_SECTIONS): Add.
391 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
392 (REL_LARGE): Define.
393 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
394 (LARGE_SECTIONS): Define.
395 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
396 (LARGE_SECTIONS): Define.
397
398 2005-08-04 Alan Modra <amodra@bigpond.net.au>
399
400 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
401 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
402 (struct ld_emulation_xfer_struct): Remove do_assignments field.
403 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
404 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
405 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
406 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
407 * emultempl/armcoff.em: Likewise.
408 * emultempl/beos.em: Likewise.
409 * emultempl/generic.em: Likewise.
410 * emultempl/gld960.em: Likewise.
411 * emultempl/gld960c.em: Likewise.
412 * emultempl/linux.em: Likewise.
413 * emultempl/lnk960.em: Likewise.
414 * emultempl/m68kcoff.em: Likewise.
415 * emultempl/pe.em: Likewise.
416 * emultempl/sunos.em: Likewise.
417 * emultempl/ticoff.em: Likewise.
418 * emultempl/vanilla.em: Likewise.
419 * emultempl/elf32.em: Likewise.
420 (gld*_provide_bound_symbols): Delete.
421 (gld*_provide_init_fini_syms): Delete.
422 (gld*_before_allocation): Don't call ldemul_do_assignments.
423 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
424 (LDEMUL_DO_ASSIGNMENTS): Delete.
425 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
426 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
427
428 2005-08-04 Alan Modra <amodra@bigpond.net.au>
429
430 * Makefile.am (eelf32m32c.c): Fix dependencies.
431 * Makefile.in: Regenerate.
432
433 2005-08-04 Alan Modra <amodra@bigpond.net.au>
434
435 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
436 (finish_default): New function.
437 * ldemul.h (finish_default): Declare.
438 * emultempl/aix.em (gld*_before_allocation): Call
439 before_allocation_default rather than strip_excluded_output_sections.
440 (ld_*_emulation): Init finish field to finish_default.
441 * emultempl/armcoff.em: Likewise.
442 * emultempl/beos.em: Likewise.
443 * emultempl/elf32.em: Likewise.
444 * emultempl/generic.em: Likewise.
445 * emultempl/gld960.em: Likewise.
446 * emultempl/gld960c.em: Likewise.
447 * emultempl/hppaelf.em: Likewise.
448 * emultempl/linux.em: Likewise.
449 * emultempl/lnk960.em: Likewise.
450 * emultempl/m68kcoff.em: Likewise.
451 * emultempl/mmo.em: Likewise.
452 * emultempl/pe.em: Likewise.
453 * emultempl/ppc64elf.em: Likewise.
454 * emultempl/sunos.em: Likewise.
455 * emultempl/ticoff.em: Likewise.
456 * emultempl/vanilla.em: Likewise.
457
458 2005-08-03 Alan Modra <amodra@bigpond.net.au>
459
460 * ldlang.c (exp_init_os): Handle etree_provide.
461 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
462 (OTHER_BSS_END_SYMBOLS): ..this.
463 * emulparams/armelf_linux.sh: Likewise.
464 * emulparams/armnto.sh: Likewise.
465 * emulparams/criself.sh: Likewise.
466 * emulparams/crislinux.sh: Likewise.
467 * emulparams/elf32frv.sh: Likewise.
468 * emulparams/elf32mcore.sh: Likewise.
469 * emulparams/elf32ppc.sh: Likewise.
470 * emulparams/elf32ppclinux.sh: Likewise.
471 * emulparams/hppa64linux.sh: Likewise.
472 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
473 $OTHER_BSS_END_SYMBOLS.
474 * scripttempl/elf32sh-symbian.sc: Likewise.
475 * scripttempl/elf_chaos.sc: Likewise.
476 * scripttempl/iq2000.sc: Likewise.
477 * scripttempl/xstormy16.sc: Likewise.
478 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
479 * scripttempl/elfxtensa.sc: Likewise.
480
481 2005-07-29 Nick Clifton <nickc@redhat.com>
482
483 * ldmain.c (main): Allow -shared and -static to be used together.
484 * ld.texinfo (-static): Mention that it is allowed with -shared.
485
486 2005-07-28 DJ Delorie <dj@redhat.com>
487
488 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
489 unary & address operator, as that breaks GCC's strict aliasing
490 rules.
491
492 2005-07-25 Jan Hubicka <jh@suse.cz>
493 H.J. Lu <hongjiu.lu@intel.com>
494
495 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
496
497 * scripttempl/elf.sc: Updated for large section support.
498
499 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
500
501 * configure.tgt: Remove i[3-7]86-*-rtemself*.
502 Remove sparc-*-rtemself*.
503
504 2005-07-21 Ben Elliston <bje@gnu.org>
505
506 * ldgram.y (ldgram_want_filename): Remove unused static.
507
508 2005-07-20 DJ Delorie <dj@redhat.com>
509
510 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
511 (EXTRA_EM_FILE): New.
512
513 2005-07-19 H.J. Lu <hongjiu.lu@intel.com>
514
515 * ldmain.c (main): Reindent.
516
517 2005-07-19 Paul Brook <paul@codesourcery.com>
518
519 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
520 to determine dynamic linker name.
521
522 2005-07-18 Nick Clifton <nickc@redhat.com>
523
524 * configure.tgt: Restore alpha ordering to list of arches.
525
526 2005-07-16 Alan Modra <amodra@bigpond.net.au>
527
528 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
529 (gld*_before_allocation): Call ldemul_do_assignments rather than
530 gld*_provide_init_fini_syms directly.
531 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
532 (ppc_do_assignments): New function.
533 (LDEMUL_AFTER_ALLOCATION): Don't define.
534 (LDEMUL_DO_ASSIGNMENTS): Define.
535
536 2005-07-16 Alan Modra <amodra@bigpond.net.au>
537
538 * Makefile.am: Run "make dep-am".
539 (emipsidt.c, emipsidtl.c): Depend on generic.em.
540 * Makefile.in: Regenerate.
541
542 2005-07-15 Alan Modra <amodra@bigpond.net.au>
543
544 * ldemul.c (ldemul_do_assignments): New function.
545 (do_assignments_default): New function.
546 * ldemul.h (ldemul_do_assignments): Declare.
547 (do_assignments_default): Declare.
548 (struct ld_emulation_xfer_struct): Add do_assignments.
549 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
550 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
551 * emultempl/armcoff.em: Likewise.
552 * emultempl/beos.em: Likewise.
553 * emultempl/generic.em: Likewise.
554 * emultempl/gld960.em: Likewise.
555 * emultempl/gld960c.em: Likewise.
556 * emultempl/linux.em: Likewise.
557 * emultempl/lnk960.em: Likewise.
558 * emultempl/m68kcoff.em: Likewise.
559 * emultempl/pe.em: Likewise.
560 * emultempl/sunos.em: Likewise.
561 * emultempl/ticoff.em: Likewise.
562 * emultempl/vanilla.em: Likewise.
563 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
564 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
565
566 2005-07-14 Jim Blandy <jimb@redhat.com>
567
568 Add support for the Renesas M32C and M16C.
569 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
570 (eelf32m32c.c): New target.
571 * Makefile.in: Regenerated.
572 * configure.tgt: Add case for m32c-*-elf.
573 * emulparams/elf32m32c.sh: New file.
574
575 2005-07-14 Alan Modra <amodra@bigpond.net.au>
576
577 * ldlang.c (strip_excluded_output_sections): Don't call
578 bfd_gc_sections.
579 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
580 (gld*_provide_init_fini_syms): Move.
581 (gld*_before_allocation): Call the above from here..
582 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
583 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
584 * emultempl/ppc64elf.em (ppc_finish): Likewise.
585
586 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
587
588 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
589 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
590 powerpcle-*-rtems*.
591
592 2005-07-09 Christopher Faylor <cgf@timesys.com>
593
594 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
595 relocation by default.
596 (compute_dll_image_base): Avoid linking into cygwin dll address space.
597
598 2005-07-08 Alan Modra <amodra@bigpond.net.au>
599
600 * ldlang.c (wild_sort): Formatting.
601 (strip_excluded_output_sections): Strip zero size sections here.
602 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
603 (gld*_finish): Don't call the above.
604 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
605 * emultempl/ppc64elf.em (ppc_finish): Likewise.
606
607 2005-07-05 Paul Brook <paul@codesourcery.com>
608
609 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
610 (eelf32ppcvxworks.o): Add dependencies.
611 * Makefile.in: Regenerate.
612 * configure.tgt: Add entry for powerpc-vxworks.
613 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
614 * emulparams/elf32ppcvxworks.sh: New file.
615 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
616 (is_ppc_elf32_vec): New function.
617 (ppc_after_open, ppc_before_allocation,
618 gld${EMULATION_NAME}_after_allocation): Use it.
619
620 2005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
621
622 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
623 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
624
625 2005-07-04 Mike Frysinger <vapier@gentoo.org>
626
627 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
628 name.
629
630 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
631
632 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
633
634 2005-07-04 Aurelien Jarno <aurel32@debian.org>
635
636 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
637
638 2005-07-01 Alan Modra <amodra@bigpond.net.au>
639
640 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
641
642 2005-06-30 Ben Elliston <bje@gnu.org>
643
644 * Makefile.am (check-DEJAGNU): Don't search for expect.
645 * Makefile.in: Regenerate.
646
647 2005-06-30 Ben Elliston <bje@gnu.org>
648
649 * Makefile.am (EXPECT): Set to expect.
650 (RUNTEST): Likewise, set to runtest.
651 * Makefile.in: Regenerate.
652
653 2005-06-16 Alexander Klimov <alserkli@inbox.ru>
654
655 * emultempl/armelf.em: Add quotes to avoid a null test
656 expression.
657
658 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
659
660 * ld.texinfo (Command Line Options): Add @item for --hash-size.
661
662 2005-06-10 Alan Modra <amodra@bigpond.net.au>
663
664 * scripttempt/elf.sc (.bss): Align tail in a way that allows
665 empty section pruning.
666
667 2005-06-09 Steve Ellcey <sje@cup.hp.com>
668
669 * configure.in (AM_BINUTILS_WARNINGS): Add.
670 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
671 * config.in: Regenerate.
672 * configure: Regenerate.
673 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
674 * ldmain.c: Ditto.
675
676 2005-06-09 Alan Modra <amodra@bigpond.net.au>
677
678 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
679
680 2005-06-09 Alan Modra <amodra@bigpond.net.au>
681
682 * ld.h (lang_phase_type): Move to..
683 * ldexp.h: ..here. Add lang_mark_phase_enum.
684 (node_type): Remove etree_undef and etree_unspec.
685 (exp_data_seg): Delete.
686 (struct ldexp_control, expld): New.
687 (invalid, exp_mark_used_section): Delete.
688 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
689 exp_get_abs_int): Update prototypes.
690 * ldexp.c (assigning_to_dot): Delete.
691 (expld): Define.
692 (make_abs): Operate directly on expld.result. Update all callers.
693 (new_abs): Likewise. Return void.
694 (new_rel_from_abs): Rename from new_rel_from_section.
695 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
696 Update all callers.
697 (fold_unary): Operate on expld.result and return void. Remove
698 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
699 params. Update all callers.
700 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
701 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
702 (fold_unary <ABSOLUTE>): Use make_abs.
703 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
704 allocating_phase.
705 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
706 (fold_binary <'%','/'>): Don't error if marking.
707 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
708 marking.
709 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
710 error when marking.
711 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
712 (exp_fold_tree_1): Don't error when marking.
713 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
714 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
715 current section, instead check for NULL dotp.
716 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
717 source unless the symbol is referenced and undefined.
718 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
719 params to expld.
720 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
721 and "mark_used" params. Save params to expld. Update all callers.
722 (exp_assop): Do without temp var.
723 (exp_print_tree <etree_undef>): Delete code.
724 (exp_get_vma): Remove "allocation_done" param. Correct error return.
725 (exp_get_fill, exp_get_abs_int): Likewise.
726 (exp_get_value_int): Remove "allocation_done" param.
727 (exp_mark_used_section): Delete.
728 * ldgram.y (fill_exp): Update exp_get_fill call.
729 (origin_spec, length_spec): Update exp_get_vma call.
730 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
731 (lang_mark_used_section_1, lang_mark_used_section): Delete.
732 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
733 marking mode. Merge old lang_mark_used_section code. Correct handling
734 of output sections with excluded input sections and data statements.
735 Don't drop non-zero sized sections. Don't zap os->bfd_section.
736 Do set SEC_EXCLUDE when appropriate.
737 (print_output_section_statement): Update for changed ldexp.c
738 interface.
739 (print_assignment, lang_size_sections_1): Likewise.
740 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
741 (lang_new_phdr, lang_record_phdrs): Likewise.
742 (lang_size_sections): Likewise.
743 (insert_pad): Use following statement if it is a pad, rather than
744 creating a new one.
745 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
746 process ignored output section to set vma and lma, but don't
747 update dot for these sections. Don't error if marking.
748 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
749 update dot for ignored sections.
750 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
751 section with SEC_ALLOC.
752 (one_lang_size_sections_pass): New function.
753 (lang_size_sections): Remove first five params. Set expld.phase on
754 entry and exit. Use one_lang_size_sections_pass.
755 (lang_do_assignments): Remove all params. Update all callers.
756 (lang_reset_memory_regions): Clear os->processed for all output
757 section statements.
758 * ldlang.h (lang_do_assignments): Update prototype.
759 (lang_size_sections): Likewise.
760 (one_lang_size_sections_pass): Declare.
761 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
762 lang_size_sections and lang_do_assignments calls.
763 * emultempl/elf32.em (layout_sections_again): Likewise.
764 * emultempl/ppc64elf.em (ppc_before_allocation): Use
765 one_lang_size_sections_pass.
766
767 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
768
769 * emulparams/elf32ms1.sh: New.
770
771 2005-06-07 Eric Christopher <echristo@redhat.com>
772
773 * Makefile.am (eelf32ms1.c): Use tab.
774 * Makefile.in: Regenerate.
775
776 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
777 Michael Snyder <msnyder@redhat.com>
778 Stan Cox <scox@redhat.com>
779
780 * configure.tgt: Same.
781
782 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
783 (eelf32ms1.c): Add eelf32ms1.c rule.
784
785 * Makefile.in: Regenerate.
786
787 2005-06-06 Alan Modra <amodra@bigpond.net.au>
788
789 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
790 ppc64_elf_edit_opd.
791
792 2005-06-05 H.J. Lu <hongjiu.lu@intel.com>
793
794 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
795 section only if the symbol will be defined.
796
797 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
798
799 PR 992
800 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
801 section for etree_assign, etree_provide and etree_provided.
802 Call fold_binary on etree_binary.
803
804 * ldlang.c (lang_mark_used_section_1): Handle load base.
805
806 2005-06-03 Alan Modra <amodra@bigpond.net.au>
807
808 * ldmain.c (link_callbacks): Add einfo.
809 (add_archive_element): Use passed info, not link_info.
810 (constructor_callback): Likewise.
811 (reloc_overflow): Don't handle null bfd specially.
812 (reloc_dangerous, unattached_reloc): Likewise.
813 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
814 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
815
816 2005-06-02 Alan Modra <amodra@bigpond.net.au>
817
818 * ldexp.h (etree_value_type): Use "asection *" in place of
819 "struct lang_output_section_statement_struct *" for "section".
820 (exp_fold_tree): Likewise.
821 (exp_mark_used_section): Likewise.
822 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
823 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
824 exp_mark_used_section): Likewise for "current_section" param.
825 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
826 exp_get_abs_int): Adjust for above changes.
827 * ldlang.c (lang_mark_used_section_1, print_assignment,
828 lang_size_sections_1, lang_do_assignments_1): Likewise.
829 * ldexp.c (fold_name): Init entire result struct.
830
831 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
832
833 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
834
835 2005-05-31 Zack Weinberg <zack@codesourcery.com>
836
837 * ldlang.c (entry_symbol_default): New file-scope global.
838 (lang_finish): Use it, not a hardwired "start".
839 (lang_default_entry): Set it.
840 * ldlang.h: Declare lang_default_entry.
841 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
842 not lang_add_entry, to override default entry point symbol.
843
844 2005-05-29 Richard Henderson <rth@redhat.com>
845
846 * emulparams/elf64alpha.sh (PLT): New.
847 (TEXT_PLT): New.
848 * emultempl/alphaelf.em (disable_relaxation): New.
849 (limit_32bit): Rename from elf64alpha_32bit; update all users.
850 (elf64_alpha_use_secureplt): Declare.
851 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
852 (alpha_after_open): New.
853 (alpha_before_allocation): New.
854 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
855 (PARSE_AND_LIST_LONGOPTS): Include them.
856 (PARSE_AND_LIST_OPTIONS): Likewise.
857 (PARSE_AND_LIST_ARGS_CASES): Likewise.
858 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
859 * scripttempl/elf.sc (TEXT_PLT): New.
860 (PLT): Use it.
861
862 2005-05-27 Andreas Schwab <schwab@suse.de>
863
864 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
865
866 2005-05-24 Alan Modra <amodra@bigpond.net.au>
867
868 * emultempl/ppc32elf.em (after_allocation): Don't call
869 ppc_elf_set_sdata_syms when relocatable.
870
871 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
872
873 * Makefile.am (ld.1): Revert the last 2 changes.
874 (info-recursive): Depend on ld.1.
875 * Makefile.in: Regenerated.
876
877 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
878
879 * Makefile.am (ld.1): Depend on "info" instead of
880 "configdoc.texi ldver.texi".
881 * Makefile.in: Regenerated.
882
883 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
884
885 * Makefile.am (ld.1): Depend on "info".
886 * Makefile.in: Regenerated.
887
888 2005-05-19 Zack Weinberg <zack@codesourcery.com>
889
890 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
891 * Makefile.in: Regenerate.
892
893 2005-05-17 Zack Weinberg <zack@codesourcery.com>
894
895 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
896
897 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
898
899 * Makefile.am (ldver.texi): Don't use $<.
900 * Makefile.in: Regenerated.
901
902 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
903
904 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
905 $(srcdir) before $(BFDDIR)/doc.
906 * Makefile.in: Regenerated.
907
908 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
909
910 PR 797
911 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
912 take take a bfd_boolean, mark_used. Ignore assert failure if
913 mark_used is TRUE.
914 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
915 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
916 mark_used and pass down.
917 (fold_unary): Likewise.
918 (fold_binary): Likewise.
919 (fold_trinary): Likewise.
920 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
921 (exp_trinop): Likewise.
922 (exp_unop): Likewise.
923 (exp_nameop): Likewise.
924 (exp_get_vma): Likewise.
925 (exp_get_fill): Likewise.
926 (exp_get_abs_int): Likewise.
927 (fold_name): Likewise. Set SEC_KEEP in output section flags.
928 (exp_mark_used_section): New.
929
930 * ldexp.h (exp_mark_used_section): New.
931
932 * ldlang.c (lang_output_section_statement_lookup_1): Set the
933 ignored field to FALSE.
934 (lang_mark_used_section_1): New.
935 (lang_mark_used_section): Call lang_mark_used_section_1.
936 (strip_excluded_output_sections): Call lang_mark_used_section
937 and check for unused sections.
938 (lang_size_sections_1): Skip an output section if it should
939 be ignored.
940 (lang_do_assignments_1): Likewise.
941 (lang_process): Don't call lang_mark_used_section here.
942
943 * ldlang.h (lang_output_section_statement_type): Change
944 all_input_readonly to bitfield. Add ignored.
945
946 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
947 Peter S. Mazinger" <ps.m@gmx.net>
948
949 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
950 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
951
952 2005-05-17 Julian Brown <julian@codesourcery.com>
953
954 * ldlang.c (print_assignment): Do not rely upon a valid result
955 having a section associated with it.
956
957 2005-05-17 Nick Clifton <nickc@redhat.com>
958
959 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
960 see if the same value is being used on the rhs as on the lhs.
961 (print_assignment): Call scan_for_self_assignment and if it
962 returns true, do no display the result of the computation but
963 instead just the final value of the symbol on the lhs.
964 * ld.texinfo: Document this behaviour and provide an example of
965 when it will happen.
966
967 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
968
969 * Makefile.am (AM_MAKEINFOFLAGS): Define.
970 (TEXI2DVI): Define.
971 (ldver.texi): Depend on distributed files instead of built files.
972 (ld.info): Include $(srcdir) in the rule target. Remove actions.
973 (ld.dvi): Remove actions.
974 (MAINTAINERCLEANFILES): Add configdoc.texi.
975 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
976 (install-data-local): Renamed from install.
977 (Makefile): Remove explicit dependency.
978 * acinclude.m4: Remove obsolete code.
979 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
980 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
981
982 2005-05-11 Bob Wilson <bob.wilson@acm.org>
983
984 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
985 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
986
987 2005-05-11 Alan Modra <amodra@bigpond.net.au>
988
989 * ldgram.y: Add SPECIAL token.
990 (sect_constraint): Handle SPECIAL.
991 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
992 (map_input_to_output_sections): Likewise.
993 * ldlex.l (SPECIAL): Define.
994 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
995 GOT, PLT, GOTPLT): Define.
996 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
997 (ppc_after_open): New function.
998 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
999 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
1000 (PARSE_AND_LIST_OPTIONS): Document them.
1001 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1002 (LDEMUL_AFTER_OPEN): Define.
1003 * scripttempl/elf.sc (PLT): Don't override existing define.
1004 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
1005 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
1006
1007 2005-05-10 Alan Modra <amodra@bigpond.net.au>
1008
1009 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
1010 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
1011 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
1012 DATA_SEGMENT_RELRO_END in script.
1013
1014 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1015
1016 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1017 Don't use a removed section.
1018
1019 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1020
1021 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
1022 is defined in the ABS section.
1023
1024 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1025
1026 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1027 Put back !link_info.relocatable.
1028
1029 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1030
1031 PR 878
1032 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1033 Just check link_info.executable.
1034
1035 2005-05-06 Nick Clifton <nickc@redhat.com>
1036
1037 * Update the address and phone number of the FSF organization in
1038 the GPL notices in the following files:
1039 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
1040 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
1041 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
1042 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
1043 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
1044 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
1045 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
1046 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
1047 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
1048 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
1049 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
1050 emultempl/m68kcoff.em, emultempl/m68kelf.em,
1051 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
1052 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
1053 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
1054 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
1055 emultempl/vanilla.em, emultempl/xtensaelf.em
1056
1057 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1058
1059 * scripttempl/elf.sc: Document the usage of __bss_start.
1060
1061 2005-05-05 Paul Brook <paul@codesourcery.com>
1062
1063 * Makefile.am: Add eelf_i386_vxworks.
1064 * Makefile.in: Regenerate.
1065 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
1066 * emulparams/elf_i386_vxworks.sh: New file.
1067 * emulparams/vxworks.sh: New file.
1068 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
1069
1070 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1071
1072 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1073 Call _bfd_elf_provide_section_bound_symbols.
1074
1075 2005-05-04 Alan Modra <amodra@bigpond.net.au>
1076
1077 * ldemul.c: Include bfdlink.h.
1078 (ldemul_before_allocation): Assume before_allocation is non-zero.
1079 (before_allocation_default): Call strip_excluded_output_sections.
1080 * ldlang.c (stripped_excluded_sections): New variable.
1081 (lang_add_section): Build input section list for each output
1082 section, attached via map_head and map_tail pointers.
1083 (strip_excluded_output_sections): Make global. Traverse the
1084 input section lists to find which output sections can go. Clear
1085 link_order pointers and set stripped_excluded_sections.
1086 (lang_process): Call strip_excluded_output_sections.
1087 * ldlang.h (strip_excluded_output_sections): Declare.
1088 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
1089 * emultempl/aix.em (before_allocation): Call
1090 strip_excluded_output_sections.
1091 * emultempl/armcoff.em (before_allocation): Likewise.
1092 * emultempl/beos.em (before_allocation): Likewise.
1093 * emultempl/linux.em (before_allocation): Likewise.
1094 * emultempl/pe.em (before_allocation): Likewise.
1095 * emultempl/sunos.em (before_allocation): Likewise.
1096 * emultempl/elf32.em (before_allocation): Likewise. Call
1097 bfd_elf_size_dynsym_hash_dynstr too.
1098 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
1099 (ld_lnk960): Use before_allocation_default.
1100
1101 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1102
1103 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
1104 Updated for bfd_section_list_remove change.
1105 * ldlang.c (lang_insert_orphan): Likewise.
1106 (strip_excluded_output_sections): Likewise.
1107 (sort_sections_by_lma): New.
1108 (lang_check_section_addresses): Sort the sections before
1109 checking addresses.
1110
1111 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1112
1113 * configure.tgt: Add h8300*-*-rtemscoff.
1114 Switch h8300*-*-rtems* to elf.
1115
1116 2005-04-29 Ben Elliston <bje@au.ibm.com>
1117
1118 * ldgram.y (lang_memory_region_type): Make static.
1119 (ldgram_want_filename): Likewise.
1120 * ldemul.c (ld_emulation): Make static.
1121 * ldfile.h (ldfile_find_command_file): Remove extern.
1122 * ldfile.c (ldfile_find_command_file): Make static.
1123 * ldlang.h (unique_section_list): Remove extern declaration.
1124 * ldlang.c (unique_section_list): Make static.
1125 * mri.h (symbol_truncate): Remove extern declaration.
1126 * mri.c (symbol_truncate): Make static.
1127 (order, only_load, address, alias): Likewise.
1128 (alignment, subalignment): Likewise.
1129
1130 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
1131
1132 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1133 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
1134 last SEC_ALLOC section if such a section doesn't exist.
1135
1136 2005-04-24 Mark Kettenis <kettenis@gnu.org>
1137
1138 * configure.host: Add *-*-openbsd support.
1139
1140 2005-04-15 Julian Brown <julian@codesourcery.com>
1141
1142 * ld.texinfo: Document --use-blx.
1143 * emultempl/armelf.em (use_blx): New variable.
1144 (arm_elf_create_output_section_statements): Communicate value of
1145 use_blx to bfd.
1146 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
1147 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
1148 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
1149
1150 2005-04-14 Alan Modra <amodra@bigpond.net.au>
1151
1152 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1153 * configure.in: Include ../bfd/warning.m4 contents.
1154 * Makefile.in: Regenerate.
1155 * configure: Regenerate.
1156
1157 2005-04-12 Alan Modra <amodra@bigpond.net.au>
1158
1159 * Makefile.am: Run "make dep-am".
1160 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
1161 * Makefile.in: Regenerate.
1162 * config.in: Regenerate.
1163
1164 2005-04-11 Alan Modra <amodra@bigpond.net.au>
1165
1166 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
1167 as_needed libs that were not needed.
1168 (gld${EMULATION_NAME}_check_needed): Likewise.
1169
1170 2005-04-07 Nick Clifton <nickc@redhat.com>
1171
1172 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
1173 ldfile.h can use the lang_input_statement type.
1174
1175 2005-04-06 Jakub Jelinek <jakub@redhat.com>
1176
1177 * ldlang.c: Formatting.
1178 (walk_wild_consider_section): Remember return value from wildcardp.
1179 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
1180 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
1181
1182 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
1183
1184 * ld.h (lean_section_userdata_type): Remove.
1185 (fat_section_userdata_type): Remove file field.
1186 (SECTION_USERDATA_SIZE): Remove.
1187 * ldlang.c (init_os): Eliminate initialization of unused
1188 lean_section_userdata_type.
1189
1190 * ldlang.h (callback_t, walk_wild_section_handler_t): New
1191 typedefs.
1192 (struct lang_wild_statement_struct): Add walk_wild_section_handler
1193 and handler_data fields.
1194 * ldlang.c (callback_t): Removed.
1195 (walk_wild_consider_section, walk_wild_section_general,
1196 section_iterator_callback, find_section, is_simple_wild,
1197 match_simple_wild, walk_wild_section_specs1_wild0,
1198 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
1199 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
1200 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
1201 functions.
1202 (lang_add_wild): Call analyze_walk_wild_section_handler.
1203 (walk_wild_section): Renamed to walk_wild_section_general and
1204 created a wrapper function.
1205 (section_iterator_callback_data): New typedef.
1206
1207 2005-04-04 Nick Clifton <nickc@redhat.com>
1208
1209 * configure.in: Add a check for <unistd.h> providing a prototype
1210 for getopt() which is compatible with the one in
1211 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1212 * configure: Regenerate.
1213 * config.in (HAVE_DECL_GETOPT): Add.
1214 * ldemul.c: Include config.h
1215 * lexsup.c: Likewise.
1216 * emultempl/elf32.sc: Likewise.
1217
1218 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1219
1220 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1221 New function, extracted from static void gld${EMULATION_NAME}_finish.
1222 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1223 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1224 * emultempl/ppc64elf.em: Revert last change.
1225 (ppc_layout_sections_again): Use
1226 gld${EMULATION_NAME}_layout_sections_again.
1227 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
1228 gld${EMULATION_NAME}_strip_empty_sections and
1229 gld${EMULATION_NAME}_provide_init_fini_syms.
1230 * emultempl/hppaelf.em: Similarly.
1231
1232 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1233
1234 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
1235 (ppc_finish): Don't call bfd_elf_discard_info.
1236 * emultempl/hppaelf.em: Similarly.
1237
1238 2005-03-24 Nick Clifton <nickc@redhat.com>
1239
1240 * po/fr.po: Updated French translation.
1241
1242 2005-03-23 Mike Frysinger <vapier@gentoo.org>
1243 Nick Clifton <nickc@redhat.com>
1244
1245 * configure.host: Accept any C library to accompany a GNU Linux
1246 implementation, not just the GNU C library.
1247 * configure.tgt: Likewise.
1248 * emultempl/elf32.em: Likewise.
1249
1250 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
1251
1252 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1253 (gld${EMULATION_NAME}_finish): Call
1254 gld${EMULATION_NAME}_provide_bound_symbols to provide
1255 __preinit_array_start, __preinit_array_end, __init_array_start,
1256 __init_array_end, __fini_array_start and __fini_array_end.
1257
1258 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1259 __preinit_array_end, __init_array_start, __init_array_end,
1260 __fini_array_start nor __fini_array_end.
1261
1262 2005-03-23 Alan Modra <amodra@bigpond.net.au>
1263
1264 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1265 SEC_EXCLUDE on .gnu.warning sections.
1266
1267 2005-03-22 Alan Modra <amodra@bigpond.net.au>
1268
1269 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1270
1271 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1272
1273 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1274 function.
1275 (LDEMUL_AFTER_ALLOCATION): Define.
1276
1277 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1278
1279 * emultempl/ppc64elf.em (ppc_finish): Rename from
1280 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1281 (LDEMUL_FINISH): Update.
1282 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1283 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1284
1285 2005-03-18 Julian Brown <julian@codesourcery.com>
1286
1287 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1288 .rel.fini_array.
1289 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1290 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1291
1292 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1293
1294 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1295 bfd_section when removing unused empty output sections for
1296 non-relocatable link.
1297
1298 2005-03-19 Alan Modra <amodra@bigpond.net.au>
1299
1300 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1301 traversing the bfd section list to find pointer to new section.
1302
1303 2005-03-18 Alan Modra <amodra@bigpond.net.au>
1304
1305 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1306 input sections into .sdata and .sbss output respectively.
1307
1308 2005-03-16 David Heine <dlheine@tensilica.com>
1309 Bob Wilson <bob.wilson@acm.org>
1310
1311 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1312 (lang_check_section_addresses): Ignore zero size sections here.
1313
1314 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1315
1316 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1317 unused empty output sections for non-relocatable link.
1318
1319 * ld.h (args_type): Remove gc_sections.
1320
1321 * ldlang.c (lang_mark_used_section): New.
1322 (lang_gc_sections): Use link_info.gc_sections instead of
1323 command_line.gc_sections.
1324 * ldmain.c (main): Likewise.
1325 * lexsup.c (parse_args): Likewise.
1326 * ldlang.c (lang_process): Call lang_mark_used_section.
1327
1328 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1329
1330 2005-03-16 Nick Clifton <nickc@redhat.com>
1331 Ben Elliston <bje@au.ibm.com>
1332
1333 * configure.in (werror): New switch: Add -Werror to the
1334 compiler command line. Enabled by default. Disable via
1335 --disable-werror.
1336 * configure: Regenerate.
1337
1338 2005-03-16 Alan Modra <amodra@bigpond.net.au>
1339
1340 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1341 (OTHER_RELRO_SECTIONS): Set this instead.
1342
1343 2005-03-15 Nick Clifton <nickc@redhat.com>
1344
1345 * NEWS: Add cutoff for changes in 2.16 release.
1346
1347 2005-03-15 Mikkel Krautz <krautz@gmail.com>
1348
1349 * configure.tgt (x86_64-elf): Add target.
1350
1351 2005-03-15 Alan Modra <amodra@bigpond.net.au>
1352
1353 * po/es.po: Commit new Spanish translation.
1354
1355 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1356
1357 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1358 Tidy etree_assert case.
1359
1360 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1361
1362 * po/tr.po: Commit new Turkish translation.
1363
1364 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1365
1366 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1367 * Makefile.in: Regenerated.
1368 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1369
1370 2005-03-07 Nick Clifton <nickc@redhat.com>
1371
1372 * po/fr.po: Updated translation.
1373
1374 2005-03-05 Alan Modra <amodra@bigpond.net.au>
1375
1376 * po/ld.pot: Regenerate.
1377
1378 2005-03-02 Jan Beulich <jbeulich@novell.com>
1379
1380 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1381 * pe-dll.c (pe_dll_generate_implib): Likewise.
1382
1383 2005-02-24 Ben Elliston <bje@au.ibm.com>
1384
1385 * ldfile.c: Remove GNU960 conditional code.
1386 * emultempl/gld960.em: Likewise.
1387 * emultempl/gld960c.em: Likewise.
1388 * emultempl/lnk960.em: Likewise.
1389
1390 2005-02-24 Nick Clifton <nickc@redhat.com>
1391
1392 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1393 empty string from calls to concat.
1394
1395 2005-02-23 Nick Clifton <nickc@redhat.com>
1396
1397 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1398 arguments passed to concat() with a NULL.
1399
1400 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1401 define types needed by ldfile.h
1402
1403 2005-02-23 Alan Modra <amodra@bigpond.net.au>
1404
1405 * pe-dll.c: Warning fixes.
1406 * emultempl/sunos.em: Likewise.
1407
1408 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1409
1410 * ldlang.c (section_already_linked): Don't call
1411 bfd_section_already_linked for dynamic objects.
1412
1413 2005-02-22 Alan Modra <amodra@bigpond.net.au>
1414
1415 * ldexp.c: Warning fixes.
1416 * ldwrite.c: Likewise.
1417 * emultempl/elf32.em: Likewise.
1418
1419 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1420
1421 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1422 tic54x input only.
1423 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1424 and ECOFF output only.
1425
1426 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1427
1428 * config.in: Regenerate.
1429 * configure: Regenerate.
1430
1431 2005-02-17 Zack Weinberg <zack@codesourcery.com>
1432
1433 * ldexp.c (assigning_to_dot): New global flag.
1434 (fold_name): If assigning_to_dot is true, object immediately to
1435 an undefined symbol.
1436 (exp_fold_tree): Set and clear assigning_to_dot around the
1437 recursive call to exp_fold_tree to process the right-hand side
1438 of an assignment to the location counter.
1439
1440 2005-02-17 Paul Brook <paul@codesourcery.com>
1441
1442 * scripttempl/armbpabi.sc: Add dummy name to version block.
1443
1444 2005-02-17 Alan Modra <amodra@bigpond.net.au>
1445
1446 * ldexp.c (new_abs): Init new.str.
1447
1448 2005-02-15 Mark Mitchell <mark@codesourcery.com>
1449
1450 * configure.in (AC_CHECK_FUNCS): Add glob.
1451 * configure: Regenerated.
1452 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1453 not defined.
1454 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1455 if HAVE_GLOB is not defined.
1456
1457 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1458
1459 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1460 lib_path if NATIVE is yes.
1461
1462 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1463
1464 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1465 an error creating fake bfd fatal.
1466 (ppc_before_allocation): Continue on after errors.
1467 (gld${EMULATION_NAME}_finish): Likewise.
1468
1469 2005-02-15 Nick Clifton <nickc@redhat.com>
1470
1471 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1472 not declared. It is not used and its presence causes a compile
1473 time warning.
1474
1475 2005-02-11 Zack Weinberg <zack@codesourcery.com>
1476
1477 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1478 If st.st_ino is zero, do not treat the library as a duplicate.
1479
1480 2005-02-10 Jakub Jelinek <jakub@redhat.com>
1481
1482 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1483 Set BFD_LINKER_CREATED on the stubs bfd.
1484 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1485 Likewise.
1486
1487 2005-02-08 Mark Mitchell <mark@codesourcery.com>
1488
1489 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1490 local.
1491 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1492 (Image$$ER_RO$$Limit): Likewise.
1493 (SHT$$INIT_ARRAY$$Base): Likewise.
1494 (SHT$$INIT_ARRAY$$Limit): Likeise.
1495
1496 2005-02-10 Ben Elliston <bje@au.ibm.com>
1497
1498 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1499
1500 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
1501
1502 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1503 to include o32 and n64 emulations.
1504 (mips64*-*-linux-gnu*): Likewise.
1505
1506 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
1507
1508 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1509 "warning: " to warning messages.
1510
1511 2005-02-04 Alan Modra <amodra@bigpond.net.au>
1512
1513 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1514 look up symbol for etree_provide here.
1515
1516 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1517
1518 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1519
1520 2005-02-01 Edward Welbourne <eddy@opera.com>
1521 Nick Clifton <nickc@redhat.com>
1522
1523 * ld.texinfo (Source Code Reference): New node describing how to
1524 access linker script defined variables from source code.
1525
1526 2005-02-01 Alan Modra <amodra@bigpond.net.au>
1527
1528 * ld.texinfo: Clarify --as-needed operation.
1529
1530 2005-01-31 Andrew Cagney <cagney@gnu.org>
1531
1532 * configure: Regenerate to track ../gettext.m4.
1533
1534 2005-01-31 Nick Clifton <nickc@redhat.com>
1535
1536 * ldver.c (ldversion): Bump reported copyright date to 2005.
1537
1538 2005-01-31 Nick Clifton <nickc@redhat.com>
1539
1540 * configure.tgt: Remove obsolete targets m68k-lynxos and
1541 sparc-lynxos.
1542
1543 2005-01-28 Julian Brown <julian@codesourcery.com>
1544
1545 * emultempl/armelf.em (fix_v4bx): New variable.
1546 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1547 value to bfd.
1548 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1549 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1550 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1551 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1552 * NEWS: Mention --fix-v4bx.
1553 * ld.texinfo: Document --fix-v4bx.
1554
1555 2005-01-25 Mark Mitchell <mark@codesourcery.com>
1556
1557 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1558 as to include .ARM.exidx$${Base,Limit}.
1559 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1560 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1561 Put .init_array, .fini_array, etc. into the read-only data
1562 segment.
1563
1564 2005-01-25 Alan Modra <amodra@bigpond.net.au>
1565
1566 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1567 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1568 only needed by an as-needed lib that didn't get linked.
1569
1570 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1571
1572 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1573 __DTOR_LIST__ description.
1574
1575 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1576
1577 * ld.texinfo (Location Counter <dot outside sections>): Document
1578 effects of orphan section placement, and ". = ." workaround.
1579 * Makefile.in: Regenerate.
1580
1581 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
1582
1583 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1584 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1585
1586 2005-01-21 Jakub Jelinek <jakub@redhat.com>
1587
1588 * ldgram.y (AS_NEEDED): New token.
1589 (input_list): Handle AS_NEEDED ( input_list ).
1590 * ldlex.l (AS_NEEDED): Add.
1591 * ld.texinfo: Document AS_NEEDED ().
1592 * NEWS: Mention AS_NEEDED ().
1593
1594 2005-01-21 Ben Elliston <bje@au.ibm.com>
1595
1596 * ldlang.c (lang_reasonable_defaults): Remove.
1597 (lang_process): Don't call lang_reasonable_defaults.
1598
1599 * ldexp.c (exp_assop): Remove #if 0'd code.
1600 (exp_print_tree): Likewise.
1601 * ldlang.c (lang_memory_region_lookup): Likewise.
1602 (open_output): Likewise.
1603 (lang_do_assignments_1): Likewise.
1604 (lang_place_orphans): Likewise.
1605 (lang_enter_output_section_statement): Likewise.
1606 (lang_reasonable_defaults): Likewise.
1607 * ldlang.h (struct lang_input_statement_struct): Likewise.
1608 * mri.c (mri_draw_tree): Likewise.
1609 (mri_load): Likewise.
1610 * pe-dll.c (generate_reloc): Likewise.
1611 (make_import_fixup_entry): Likewise.
1612 (pe_as16): Likewise.
1613 * emultempl/beos.em (set_pe_subsystem): Likewise.
1614 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1615 * emultempl/pe.em: Likewise.
1616 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1617
1618 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1619
1620 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1621 (earmelfb_linux_eabi.c): New target.
1622 * Makefile.in: Regenerated.
1623 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1624 * emulparams/armelfb_linux_eabi.sh: New file.
1625
1626 2005-01-20 Nick Hudson <skrll@netbsd.org>
1627
1628 PR ld/676
1629 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1630 Handle bfd_elf32_hppa_nbsd_vec.
1631
1632 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
1633
1634 * ldmain.h (ld_sysroot): Change type to a constant string.
1635 * ldmain.c (ld_sysroot): Likewise.
1636 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1637 support for changing the sysroot.
1638 (main): Call the new functions.
1639 * lexsup.c (OPTION_SYSROOT): New.
1640 (ld_options): Add --sysroot.
1641 (parse_args): Add a dummy handler for it.
1642 * ld.texinfo (--sysroot): Document.
1643 * NEWS: Mention the new --sysroot option.
1644
1645 2005-01-18 Alan Modra <amodra@bigpond.net.au>
1646
1647 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1648 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1649 bfd_link_just_syms.
1650
1651 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1652
1653 * defilep.y (def_name, def_library): Combine into...
1654 (def_image_name): New function. Strip name to basename,
1655 with warning.
1656
1657 2005-01-12 Mark Kettenis <kettenis@gnu.org>
1658
1659 * configure.in: Be sure to invoke config.sub using the shell.
1660 * configure: Regenerate.
1661
1662 2005-01-11 Alan Modra <amodra@bigpond.net.au>
1663
1664 * configure.host: Correct sed patterns for last change.
1665
1666 2005-01-10 Nick Clifton <nickc@redhat.com>
1667
1668 PR binutils/609
1669 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1670 to determine whether config.make_executable should be set to FALSE in
1671 conjunction with config.fatal_warnings.
1672 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1673 (einfo): Pass TRUE as the extra argument.
1674
1675 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
1676
1677 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1678 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1679 (ia64-*-aix): Delete - this target is obsolete, and would be
1680 broken by this patch.
1681
1682 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1683
1684 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1685 (sparc64-sun-solaris2*): New host.
1686
1687 2005-01-06 Paul Brook <paul@codesourcery.com>
1688
1689 * Makefie.am: Add earmelf_vxworks.
1690 * Makefile.in: Regenerate.
1691 * configure.tgt: Make arm-*-vxworks a separate case.
1692 * emulparams/armelf_vxworks.sh: New function.
1693
1694 2005-01-06 Alan Modra <amodra@bigpond.net.au>
1695
1696 * emultempl/ppc64elf.em (no_multi_toc): New var.
1697 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1698 (OPTION_NO_MULTI_TOC): Define.
1699 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1700 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1701
1702 2005-01-05 Nick Clifton <nickc@redhat.com>
1703
1704 PR binutils/614
1705 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1706 Standard's specification for parsable error messages.
1707
1708 2005-01-04 Paul Brook <paul@codesourcery.com>
1709
1710 * Makefile.am: Correct dependency for earmsymbian.c.
1711 * Makefile.in: Regenerate.
1712
1713 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1714
1715 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1716 lang_add_entry to FALSE.
1717
1718 2004-12-23 Nick Clifton <nickc@redhat.com>
1719
1720 PR 600
1721 * emulparams/shelf.sh (.stack): Increase stack start address to
1722 0x300000.
1723
1724 2004-12-20 Nick Clifton <nickc@redhat.com>
1725
1726 * ldmain.c (main): Issue an error message if -static and -shared
1727 are used together.
1728
1729 2004-12-17 Jakub Jelinek <jakub@redhat.com>
1730
1731 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1732 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1733 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1734 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1735 PT_GNU_RELRO segment end.
1736
1737 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1738
1739 * configure.tgt: Add s390x-ibm-tpf support.
1740
1741 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1742
1743 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1744 BFD.
1745
1746 2004-12-07 Ben Elliston <bje@gnu.org>
1747
1748 * ldemul.h: Forward declare struct option.
1749
1750 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1751
1752 * scripttempl/pe.sc (.data): Add .jcr subsection.
1753
1754 2004-11-30 Paul Brook <paul@codesourcery.com>
1755
1756 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1757
1758 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1759
1760 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1761 * Makefile.in: Regenerate.
1762
1763 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1764
1765 * emultempl/pe.em: Add --subsystem:xbox as well as
1766 --subsystem:%d.
1767 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1768 and numeric subsystems.
1769
1770 2004-11-24 Alan Modra <amodra@bigpond.net.au>
1771
1772 * ldexp.c (fold_name): Correct PR 338 fix.
1773
1774 2004-11-19 Mark Mitchell <mark@codesourcery.com>
1775
1776 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1777 (earmelf_linux_eabi.c): New target.
1778 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1779 * emulparams/armelf_linux_eabi.sh: New file.
1780 * Makefile.in: Regenerated.
1781
1782 2004-11-19 Nick Clifton <nickc@redhat.com>
1783
1784 PR 518
1785 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1786 LENGTH fields in the MEMORY command, to explicitly state that
1787 symbols cannot be used in their expressions.
1788
1789 2004-11-19 Jon Beniston <jon@beniston.com>
1790
1791 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1792 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1793 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1794 which return the length and origin of a memory.
1795 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1796 * NEWS: Mention support for ORIGIN and LENGTH operators.
1797
1798 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1799
1800 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1801 a dynamic object for stubs.
1802
1803 2004-11-04 Paul Brook <paul@codesourcery.com>
1804
1805 * ld.texinfo: Document --default-imported-symver.
1806 * ldmain.c (main): Set link_info.default_imported_symver.
1807 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1808 (ld_options): Add --default-imported-symver.
1809 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1810
1811 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1812 Vineet Sharma <vineets@noida.hcltech.com>
1813
1814 * Makefile.am: Add entries for new maxq-coff target.
1815 * Makefile.in: Regenerate.
1816 * configure.tgt: Add support for maxq.
1817 * emulparams/maxqcoff.sh: New File.
1818 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1819 * NEWS: Mention the new target.
1820
1821 2004-11-04 Daniel Jacobowitz <dan@debian.org>
1822
1823 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1824 (earmelf_oabi.c): Remove rule.
1825 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1826 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1827 * Makefile.in: Regenerated.
1828
1829 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
1830
1831 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1832 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1833 (FINI_START): Ditto.
1834 (INIT_END): Remove emitted "jump [sp+]".
1835 (FINI_END): Ditto.
1836
1837 2004-11-04 Alan Modra <amodra@bigpond.net.au>
1838
1839 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1840 (no_opd_opt, no_toc_opt): New static vars.
1841 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1842 ppc64_elf_edit_toc.
1843 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1844 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1845 (PARSE_AND_LIST_OPTIONS): Describe new options.
1846 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1847
1848 2004-10-27 Nick Clifton <nickc@redhat.com>
1849
1850 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1851 parameter to invocation of lang_section_start.
1852 * emultempl/aix.em (_handle_option): Likewise.
1853
1854 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1855 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1856 * Makefile.in: Regenerate.
1857
1858 2004-10-26 Mark Mitchell <mark@codesourcery.com>
1859
1860 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1861 __exidx_{start,end} when not relocating.
1862
1863 2004-10-25 Mark Mitchell <mark@codesourcery.com>
1864
1865 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1866 * ldexp.h (segment_type): New type.
1867 (segments): New variable.
1868 * ldexp.c (segments): New variable.
1869 (exp_print_token): Handle SEGMENT_START.
1870 (fold_binary): Likewise.
1871 * ldgram.y (SEGMENT_START): Declare it as a token.
1872 (exp): Handle SEGMENT_START.
1873 * ldlang.h (lang_address_statement_type): Add segment field.
1874 (lang_section_start): Change prototype.
1875 * ldlang.c (map_input_to_output_sections): Do not process section
1876 assignments if a corresponding SEGMENT_START has already been
1877 seen.
1878 (lang_section_start): Add segment parameter.
1879 * ldlex.l (SEGMENT_START): Add it.
1880 * lexsup.c (seg_segment_start): New function.
1881 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1882 * ld.texinfo (SEGMENT_START): Document it.
1883 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1884 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1885 base addresses. Do not map relocations.
1886 * NEWS: Mention SEGMENT_START.
1887
1888 2004-10-26 Paul Brook <paul@codesourcery.com>
1889
1890 * ld.texinfo: Document --default-symver.
1891 * ldmain.c (main): Set link_info.create_default_symver.
1892 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1893 (ld_options): Add default-symver.
1894 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1895
1896 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1897
1898 * pe-dll.c (process_def_file): Don't export all symbols by default if
1899 building a position-independent executable.
1900
1901 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1902
1903 PR 463
1904 * ldmain.c (reloc_overflow): Accept a pointer to struct
1905 bfd_link_hash_entry. Report symbol location for relocation
1906 overflow.
1907
1908 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1909
1910 * genscripts.sh (libpath.exp): Really generate for first
1911 emulation only.
1912
1913 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1914
1915 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1916 comparison and replacement of filenames.
1917
1918 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1919
1920 PR 459
1921 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1922 option on linker script as the one for linker script.
1923
1924 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1925
1926 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1927 (check_excluded_libs): New.
1928 (load_symbols): Call check_excluded_libs.
1929 * ldlang.h (add_excluded_libs): New prototype.
1930 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1931 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1932 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1933 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1934 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1935
1936 2004-10-15 Alan Modra <amodra@bigpond.net.au>
1937
1938 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1939 failing link script assert.
1940
1941 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1942
1943 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1944
1945 PR 445
1946 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1947 (SMALL_DATA_DTOR): Set.
1948 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1949 (SMALL_DATA_DTOR): Unset.
1950 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1951 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1952 .data.
1953
1954 2004-10-14 Alan Modra <amodra@bigpond.net.au>
1955
1956 PR 63
1957 * ldlang.h (lang_output_section_statement_type): Make "next" a
1958 struct lang_output_section_statement_struct *.
1959 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1960 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1961 * ldlang.c (lang_output_section_find_1): Adjust for changed
1962 output_section_statement "next".
1963 (strip_excluded_output_sections): Likewise.
1964 (lang_record_phdrs): Likewise.
1965 (lang_output_section_find_by_flags): New function.
1966 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1967 (lang_insert_orphan): New function. Tail end of elf32.em's
1968 place_orphan merged with that from pe.em. Allow bfd_section to
1969 be placed first. New heuristic for placing new output section
1970 statement in existing script, and accompanying split of __start
1971 symbol alignment into a separate assignment to dot.
1972 (lang_add_section): Consistently use output->bfd_section rather than
1973 an alias, section->output_section.
1974 (map_input_to_output_sections): Rename overly long arg. Move
1975 initialization of data_statement output section to here..
1976 (lang_check_section_addresses): ..from here.
1977 (print_assignment): Correct printing of etree_assert.
1978 (print_all_symbols): Don't bomb if userdata is NULL.
1979 (IGNORE_SECTION): Rearrange.
1980 * emultempl/elf32.em (output_rel_find): Adjust interator.
1981 (output_prev_sec_find): Delete.
1982 (struct orphan_save): Delete.
1983 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1984 flags without creating a duplicate output section statement.
1985 Revise code holding history of various orphan section placements.
1986 Allow orphan sections to place before script specified output
1987 sections. Call lang_output_section_find_by_flags when placement
1988 by name fails. Use lang_insert_orphan.
1989 * emultempl/mmo.em (output_prev_sec_find): Delete.
1990 (struct orphan_save): Delete.
1991 (mmo_place_orphan): Revise code holding history of orphan placement.
1992 Allow orphans to place before existing output sections. Use
1993 lang_insert_orphan.
1994 * emultempl/pe.em (output_prev_sec_find): Delete.
1995 (struct orphan_save): Delete.
1996 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1997 lang_insert_orphan.
1998
1999 2004-10-13 Mark Mitchell <mark@codesourcery.com>
2000
2001 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
2002 loadable segment.
2003
2004 2004-10-13 Alan Modra <amodra@bigpond.net.au>
2005
2006 PR 44
2007 * ldcref.c (check_section_sym_xref): Delete.
2008 (check_local_sym_xref): New function.
2009 (check_nocrossrefs): Adjust call.
2010 * emultempl/pe.em (struct orphan_save): Add os_tail.
2011 (place_orphan): Backport assorted fixes from elf32.em.
2012
2013 2004-10-12 Bob Wilson <bob.wilson@acm.org>
2014
2015 * emultempl/xtensaelf.em: Use ISO C90 formatting.
2016
2017 2004-10-11 Jakub Jelinek <jakub@redhat.com>
2018
2019 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
2020 getline for portability.
2021
2022 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
2023 (gld${EMULATION_NAME}_parse_ld_so_conf,
2024 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
2025 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
2026
2027 2004-10-11 Alan Modra <amodra@bigpond.net.au>
2028
2029 PR 423
2030 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
2031 rejected when linking statically.
2032
2033 2004-10-08 Daniel Jacobowitz <dan@debian.org>
2034
2035 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
2036
2037 2004-10-07 Bob Wilson <bob.wilson@acm.org>
2038
2039 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
2040 assembler-generated longcall sequences. Describe new --size-opt
2041 option.
2042 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
2043 * emultempl/xtensaelf.em (remove_section,
2044 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
2045 elf_xtensa_after_open): New.
2046 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
2047 OPTION_NO_LITERAL_MOVEMENT): Define.
2048 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
2049 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
2050 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
2051 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
2052 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
2053 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
2054 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
2055 * Makefile.am (eelf32xtensa.c): Update dependencies.
2056 * Makefile.in: Regenerate.
2057
2058 2004-10-07 Jeff Baker <jbaker@qnx.com>
2059
2060 * lexsup.c: Handle --warn-shared-textrel option.
2061 (ld_options): Restore alpha sorting of options.
2062 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
2063 * ld.texinfo: Add documentation for --warn-shared-textrel.
2064 * NEWS: Added mention of --warn-shared-textrel option.
2065
2066 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
2067
2068 * emultempl/crxelf.em (disable_relaxation): Add.
2069 (crxelf_before_allocation): Enable --relax option by default.
2070 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
2071 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
2072 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
2073
2074 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
2075
2076 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
2077 --sort-section name|alignment.
2078
2079 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
2080 --sort-section name|alignment.
2081
2082 * ld.h (sort_type): New enum.
2083 (wildcard_spec): Change the type of `sorted' to sort_type.
2084
2085 * ldgram.y (SORT): Removed.
2086 (SORT_BY_NAME): Added.
2087 (SORT_BY_ALIGNMENT): Added.
2088 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
2089 SORT_BY_ALIGNMENT.
2090 (input_section_spec_no_keep): Updated `sorted'.
2091 (statement): Replace SORT with SORT_BY_NAME.
2092
2093 * ldlang.c (compare_section): New function to compare 2
2094 sections with different sorting schemes.
2095 (wild_sort): Updated. Use compare_section.
2096 (update_wild_statements): New function.
2097 (lang_process): Call update_wild_statements before
2098 map_input_to_output_sections.
2099
2100 * ldlex.l (SORT_BY_NAME): New.
2101 (SORT_BY_ALIGNMENT): New.
2102 (SORT): Return SORT_BY_NAME.
2103
2104 * ldmain.c (sort_section): New. Defined.
2105 (main): Initialize it to none.
2106
2107 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
2108 (ld_options): Add an entry for OPTION_SORT_SECTION.
2109 (parse_args): Handle OPTION_SORT_SECTION.
2110
2111 * mri.c (mri_draw_tree): Updated `sorted'.
2112
2113 2004-10-04 Jakub Jelinek <jakub@redhat.com>
2114
2115 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
2116 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
2117 argument.
2118 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
2119 and . as second argument.
2120 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
2121 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
2122 (fold_binary): Add it here. Insert padding to make relro_end
2123 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
2124 exp_dataseg_relro_adjust phase just use previously computed
2125 exp_data_seg.base.
2126 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
2127 relro_adjust here. Call lang_size_sections_1 once more if there
2128 was too big padding at DATA_SEGMENT_RELRO_END.
2129 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
2130
2131 2004-10-01 Paul Brook <paul@codesourcery.com>
2132
2133 * emulparams/armelf.sh: Add unwinding table sections.
2134
2135 2004-09-30 Filip Navara <navaraf@reactos.com>
2136
2137 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
2138 correct base address for position independant executables.
2139 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
2140 executables as DLLs.
2141
2142 2004-09-30 Paul Brook <paul@codesourcery.com>
2143
2144 * ld.texinfo: Document --target2=abs.
2145 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
2146
2147 2004-09-29 Nick Clifton <nickc@redhat.com>
2148
2149 * scripttempl/xstormy16.sc: Only perform the assignments to the
2150 ROM region when not performing a relocatable link. The ROM region
2151 does not start at address 0, but the sections will.
2152 * Makefile.am: Fix linker script dependency for the generation of
2153 eelf32xstormy16.c.
2154 * Makefile.in: Regenerate.
2155
2156 2004-09-18 Filip Navara <navaraf@reactos.com>
2157
2158 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
2159 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
2160 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
2161 TARGET_PAGE_SIZE.
2162 * scripttempl/pe.sc: Make the virtual address and file offset synced if
2163 the alignment is lower than the target page size.
2164
2165 2004-09-27 Filip Navara <navaraf@reactos.com>
2166
2167 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
2168 def_file_parse to handle pe_def_file if NULL and prevent crash with
2169 invalid .def files.
2170
2171 2004-09-27 Alan Modra <amodra@bigpond.net.au>
2172
2173 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
2174 --emit-stub-syms automatically when --emit-relocs.
2175
2176 2004-09-24 Paul Brook <paul@codeosurcery.com>
2177
2178 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
2179 .fini_array sections.
2180
2181 2004-09-19 Andreas Schwab <schwab@suse.de>
2182
2183 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
2184 base so that relro end is suitably aligned.
2185
2186 2004-09-17 Paul Brook <paul@codesourcery.com>
2187
2188 * ld.texinfo: Rename arm-specific section. Document --target*
2189 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
2190 * emulparams/armelf_linux.sh: Ditto.
2191 * emulparams/armelf_nbsd.sh: Ditto.
2192 * emultempl/armelf.em: Set default for TARGET2_TYPE.
2193 (target2_type): New variable.
2194 (arm_elf_before_allocation): Don't pass target1_type.
2195 (arm_elf_create_output_section_statements): New function.
2196 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
2197 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
2198 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
2199 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
2200 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
2201 argument to bfd_elf32_arm_process_before_allocation.
2202
2203 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2204
2205 * ldexp.c (fold_name): Update u.undef.next refs.
2206 * emultempl/pe.em: Likewise.
2207 * emultempl/sunos.em: Likewise.
2208
2209 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2210
2211 * Makefile.am: Run "make dep-am".
2212 * Makefile.in: Regenerate.
2213 * config.in: Regenerate.
2214 * configure: Regenerate.
2215 * aclocal.m4: Regenerate.
2216 * po/ld.pot: Regenerate.
2217
2218 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
2219
2220 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2221 (.fini): Likewise.
2222 (.jcr): Likewise.
2223
2224 2004-09-16 Alan Modra <amodra@bigpond.net.au>
2225
2226 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2227 to bfd_elf32_arm_process_before_allocation call.
2228
2229 2004-09-13 Paul Brook <paul@codesourcery.com>
2230
2231 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2232 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2233
2234 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
2235
2236 * configure: Regenerated with autconfig 2.13.
2237
2238 2004-09-07 Andreas Schwab <schwab@suse.de>
2239
2240 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2241 alignment before adjusting DATA_SEGMENT_RELRO_END.
2242
2243 2004-09-06 Mark Mitchell <mark@codesourcery.com>
2244
2245 * emulparams/armsymbian.sh: Use armbpabi script.
2246 * scripttempl/armbpabi.sc: New script.
2247
2248 2004-09-02 Mark Mitchell <mark@codesourcery.com>
2249
2250 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2251 (earmsymbian.c): New target.
2252 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2253 * Makefile.in: Regenerated.
2254 * aclocal.m4: Likewise.
2255 * configure: Likewise.
2256 * emulparams/armsymbian.sh: New file.
2257
2258 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2259
2260 * scripttempl/elf32crx.sc: Edit file with comments.
2261 (.init): Add new section.
2262 (.fini): Likewise.
2263 (.ctor): Control the linkage order.
2264 (.dtor): Likewise.
2265
2266 2004-08-27 Nick Clifton <nickc@redhat.com>
2267
2268 * emultempl/pe.em (after_open): Do not assume that either bfd is
2269 an archive.
2270
2271 2004-08-26 Alan Modra <amodra@bigpond.net.au>
2272
2273 * ldlang.c (lang_init): Don't compare with TRUE.
2274
2275 2004-08-25 Dmitry Diky <diwil@spec.ru>
2276
2277 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2278 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2279
2280 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2281
2282 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2283
2284 2004-08-19 Mark Mitchell <mark@codesourcery.com>
2285
2286 * configure.tgt (arm*-*-symbianelf*): New target.
2287 (arm*-*-eabi*): Likewise.
2288
2289 2004-08-19 Jakub Jelinek <jakub@redhat.com>
2290
2291 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2292 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2293 (OPTION_NON_OVERLAPPING_OPD): Define.
2294 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2295 --non-overlapping-opd option.
2296
2297 2004-08-18 Alan Modra <amodra@bigpond.net.au>
2298
2299 PR 338
2300 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2301 was already on the undefs list.
2302
2303 2004-08-17 Alan Modra <amodra@bigpond.net.au>
2304
2305 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2306 prefix the symbol field too.
2307
2308 2004-08-13 Alan Modra <amodra@bigpond.net.au>
2309
2310 * ldmain.c (link_callbacks): Remove "error_handler".
2311 * ldmisc.c: Include elf-bfd.h.
2312 (vfinfo): Sort comment. Handle %A. Use %A instead of
2313 bfd_get_section_indent.
2314 (error_handler): Delete.
2315 * ldmisc.h (error_handler): Delete declaration.
2316
2317 2004-08-10 Alan Modra <amodra@bigpond.net.au>
2318
2319 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2320 ppc64_elf_restore_symbols.
2321
2322 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2323
2324 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2325 .toc is too large on relocatable linking.
2326
2327 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2328
2329 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2330 (LDEMUL_AFTER_OPEN): Don't define.
2331
2332 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2333
2334 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2335
2336 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2337
2338 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2339 on power of 2.
2340
2341 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2342
2343 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2344
2345 2004-07-26 Dmitry Diky <diwil@spec.ru>
2346
2347 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2348 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2349 msp430xG439.
2350 * configure.tgt: Likewise.
2351 * emulparams/msp430all.sh: Likewise.
2352 * Makefile.in: Regenerate.
2353
2354 2004-07-23 Nick Clifton <nickc@redhat.com>
2355
2356 * emultempl/elf32.em (_place_orphan): Use an already existing
2357 section name if that section does not have any flags set.
2358
2359 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2360
2361 * ldlang.c (already_linked_hash_entry): Removed.
2362 (already_linked): Likewise.
2363 (already_linked_table): Likewise.
2364 (section_already_linked): Call bfd_section_already_linked.
2365 (lang_process): Replace already_linked_table_init with
2366 bfd_section_already_linked_table_init and check return. Replace
2367 already_linked_table_free with bfd_section_already_linked_table_free.
2368
2369 2004-07-21 Nick Clifton <nickc@redhat.com>
2370
2371 * ldlang.c (init_os): Make sure that the newly allocated userdata
2372 structure is zeroed out.
2373
2374 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2375
2376 * NEWS: Mention the new --add-needed/--no-add-needed and
2377 --as-needed/--no-as-needed options.
2378
2379 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2380
2381 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2382 check the add_needed field.
2383 (dt_needed): New struct.
2384 (gld${EMULATION_NAME}_try_needed): Change the first argument
2385 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2386 bit in the file where the DT_NEEDED entry comes from.
2387 (gld${EMULATION_NAME}_search_needed): Change the second
2388 argument to a pointer to struct dt_needed.
2389 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2390 (gld${EMULATION_NAME}_after_open): Likewise.
2391
2392 * ld.texinfo: Add --add-needed document.
2393 * ldlang.c (new_afile): Set p->add_needed.
2394 * ldlang.h (lang_input_statement_type): Add add_needed field.
2395 * ldmain.h (add_needed): Declare.
2396 * ldmain.c (add_needed): New global var.
2397 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2398 OPTION_NO_ADD_NEEDED.
2399 (ld_options): Likewise.
2400 (parse_args): Handle them.
2401
2402 2004-07-13 Christof Petig <christof@petig-baender.de>
2403
2404 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2405 for endian-ness of extracted addend.
2406
2407 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2408
2409 * pe-dll.c (auto_export): Filter on just the import prefix,
2410 "_imp_", not "_imp__".
2411
2412 2004-07-09 Nick Clifton <nickc@redhat.com>
2413
2414 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2415
2416 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2417
2418 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2419 (eelf32crx.c): New target.
2420 * Makefile.in: Regenerate.
2421 * configure.tgt: Handle crx-*-elf*.
2422 * emulparams/elf32crx.sh: New file.
2423 * emultempl/crxelf.em: New file.
2424 * scripttempl/elf32crx.sc: New file.
2425 * NEWS: Mention new target.
2426
2427 2004-07-06 Nick Clifton <nickc@redhat.com>
2428
2429 * Makefile.am: Add eshlsymbian.c.
2430 * Makefile.in: Regenerate.
2431 * configure.tgt: Add sh*-symbian-elf target.
2432 * emulparams/shlsymbian.sh: New file. Configure the
2433 sh-symbian-elf linker scripts.
2434 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2435 template for the sh-symbian-elf target.
2436
2437 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2438
2439 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2440 * emulparams/hppalinux.sh: Likewise.
2441 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2442 data segment and PLT_BEFORE_GOT is defined.
2443
2444 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2445
2446 * ld.texinfo (WIN32): Document PE weak symbols.
2447
2448 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2449
2450 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2451
2452 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2453
2454 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2455 the section.
2456
2457 2004-06-29 Alan Modra <amodra@bigpond.net.au>
2458
2459 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2460 size in rawsize.
2461
2462 2004-06-24 Alan Modra <amodra@bigpond.net.au>
2463
2464 * ldlang.c (print_output_section_statement): Don't print size before
2465 relaxation.
2466 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2467
2468 * ldexp.c (fold_name): .. See below.
2469 * ldlang.c (section_already_linked, print_output_section_statement,
2470 print_input_section, insert_pad, size_input_section,
2471 lang_check_section_addresses, lang_size_sections_1,
2472 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2473 lang_one_common, lang_reset_memory_regions, lang_process,
2474 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2475 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2476 * pe-dll.c (process_def_file, generate_reloc): ..
2477 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2478 gld${EMULATION_NAME}_before_allocation): ..
2479 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2480 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2481 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2482 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2483 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2484 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2485 "size" instead of "_raw_size" and "_cooked_size". Expand
2486 bfd_section_size macro invocations.
2487
2488 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2489
2490 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2491 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2492 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2493 ___crt_xt_end__.
2494 (.tls): Define ___tls_start__ and ___tls_end__.
2495
2496 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
2497
2498 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2499
2500 2004-06-18 Adam Nemet <anemet@lnxw.com>
2501
2502 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2503 * configure: Regenerate.
2504
2505 2004-06-15 Jakub Jelinek <jakub@redhat.com>
2506
2507 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2508 .gcc_except_table output sections lost accidentally with
2509 -z relro patch.
2510
2511 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2512
2513 * ldwrite.c (build_link_order): Use bfd_get_section_size
2514 instead of bfd_get_section_size_before_reloc or _raw_size.
2515 * pe-dll.c (process_def_file): Likewise.
2516
2517 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2518
2519 From Richard Wirth <r.wirth@wirthware.de>
2520 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2521
2522 2004-05-29 Alan Modra <amodra@bigpond.net.au>
2523
2524 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2525 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2526
2527 2004-05-28 Alan Modra <amodra@bigpond.net.au>
2528
2529 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2530 throughout file.
2531 * lexsup.c: Formatting. Wrap long lines.
2532 * ldwrite.c: Update copyright date.
2533
2534 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2535 (output_section_callback): Nor SEC_KEEP here.
2536 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2537 (lang_gc_wild): Delete. Fold into..
2538 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2539 collecting.
2540 (lang_process): Always call lang_gc_sections.
2541 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2542 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2543 SEC_EXCLUDE code.
2544
2545 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2546
2547 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2548 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2549 * ldlang.c (lang_add_section): Likewise.
2550
2551 2004-05-26 Alan Modra <amodra@bigpond.net.au>
2552
2553 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2554 sections when doing a final link. Clear SEC_EXCLUDE when doing
2555 a relocable link, except for SEC_DEBUGGING sections.
2556 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2557 same condition here to drop SEC_EXCLUDE orphan sections.
2558
2559 2004-05-25 Alan Modra <amodra@bigpond.net.au>
2560
2561 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2562 only when not a relocatable link.
2563 (print_input_section): Handle SEC_EXCLUDE sections.
2564 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2565 (lang_do_assignments_1): Likewise.
2566 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2567 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2568 * emultempl/hppaelf.em (build_section_lists): Likewise.
2569 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2570 (build_section_lists): Likewise.
2571
2572 2004-05-23 Andreas Schwab <schwab@suse.de>
2573
2574 * ld.texinfo (Options): Fix typo in last change.
2575
2576 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
2577
2578 * ld.h (ld_config_type): Add new field: hash_table_size.
2579 * ldmain.c: Initialise the new field to zero. If it is non-zero
2580 after parsing the linker's command line call
2581 bfd_hash_set_default_size.
2582 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2583 (ld_options): Add hash-size.
2584 (parse_args): Parse --hash-size option. Allow
2585 --reduce-memory-overheads to set the default hash table size as
2586 well.
2587 * ld.texinfo: Document the new switch. Also mention that
2588 --reduce-memory-overheads can affect the hash table size.
2589 * NEWS: Mention the new feature.
2590
2591 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2592
2593 * NEWS: Mention new linker map file generation and the
2594 --reduce-memory-overheads option.
2595 * ld.texinfo: Document --reduce-memory-overheads option.
2596 * ld.h (map_symbol_def): New struct.
2597 (struct user_section_struct, section_userdata_type): Rename to:
2598 (struct lean_user_section_struct, lean_section_userdata_type).
2599 (struct fat_user_section_struct, fat_section_userdata_type): New.
2600 (SECTION_USERDATA_SIZE): Define.
2601 (args_type): New member reduce_memory_overheads.
2602 * ldlang.c (map_obstack): New static variable.
2603 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2604 (lang_map): Unless command_line.reduce_memory_overheads is set,
2605 initialize lists of defined symbols for each section.
2606 (print_input_section): Unless command_line.reduce_memory_overheads
2607 is set, use print_all_symbols.
2608 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2609 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2610 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2611 (ld_options): Add entry for --reduce-memory-overheads.
2612 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2613
2614 2004-05-19 Jakub Jelinek <jakub@redhat.com>
2615
2616 * ldgram.y (sect_constraint): New.
2617 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2618 (section): Add sect_constraint. Pass additional argument
2619 to lang_enter_output_section_statement.
2620 * mri.c (mri_draw_tree): Pass additional argument to
2621 lang_enter_output_section_statement.
2622 * emultempl/pe.em (place_orphan): Likewise.
2623 (output_prev_sec_find): Disregard output section statements with
2624 constraint == -1.
2625 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2626 (mmo_place_orphan): Pass additional argument to
2627 lang_enter_output_section_statement.
2628 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2629 statements with constraint == -1.
2630 (place_orphan): Pass additional argument to
2631 lang_enter_output_section_statement.
2632 * ldlang.c (lang_enter_overlay_section): Likewise.
2633 (lang_output_section_find_1): New.
2634 (lang_output_section_find): Use it.
2635 (lang_output_section_statement_lookup_1): New.
2636 (lang_output_section_statement_lookup): Use it.
2637 (check_section_callback, check_input_sections): New.
2638 (map_input_to_output_sections): Check if all input sections
2639 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2640 (strip_excluded_output_sections): Disregard output section statements
2641 with constraint == -1.
2642 (lang_record_phdrs): Likewise.
2643 (lang_enter_output_section_statement): Add constraint argument.
2644 Use lang_output_section_statement_lookup_1.
2645 * ldlang.h (lang_output_section_statement_type): Add constraint
2646 and all_input_readonly fields.
2647 (lang_enter_output_section_statement): Adjust prototype.
2648 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2649 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2650 segment if all input sections are readonly.
2651
2652 2004-05-19 Adam Nemet <anemet@lnxw.com>
2653
2654 * scripttempl/i386lynx.sc: Remove file.
2655
2656 2004-05-17 Bob Wilson <bob.wilson@acm.org>
2657
2658 * ld.texinfo (Output Section Address): Correct subsection name.
2659
2660 2004-05-17 Adam Nemet <anemet@lnxw.com>
2661
2662 * configure.tgt (powerpc-*-lynxos* case): New case.
2663 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2664 * emulparams/ppclynx.sh: New file.
2665 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2666 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2667 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2668 (eppclynx.c): New rule.
2669 * Makefile.in: Regenerate.
2670
2671 2004-05-13 Joel Sherrill <joel@oarcorp.com>
2672
2673 * configure.tgt (or32-*-rtems*): Switch to elf and
2674 support versioned targets.
2675
2676 2004-05-13 Nick Clifton <nickc@redhat.com>
2677
2678 * po/fr.po: Updated French translation.
2679
2680 2004-05-11 Jakub Jelinek <jakub@redhat.com>
2681
2682 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2683 for binaries, -shared and -pie.
2684 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2685 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2686 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2687 (OTHER_RELRO_SECTIONS): ... this.
2688 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2689 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2690 -z relro and -z norelro.
2691 (gld${EMULATION_NAME}_list_options): Add it to usage.
2692 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2693 -z relro scripts when appropriate.
2694 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2695 Create separate .got.plt section if SEPARATE_GOTPLT.
2696 Move sections which are only written during relocation handling
2697 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2698 before .data. Add DATA_SEGMENT_RELRO_END directive.
2699 Include OTHER_RELRO_SECTIONS.
2700 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2701 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2702 (fold_unary): Likewise.
2703 (fold_binary): Handle -z relro.
2704 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2705 exp_dataseg_relro_adjust phases. Add relro_end field.
2706 * ldmain.c (main): Initialize link_info.relro to FALSE.
2707 * ldlang.c (lang_size_sections): Handle -z relro.
2708
2709 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2710
2711 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2712
2713 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2714
2715 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2716 before printing it with %W.
2717
2718 2004-05-07 Brian Ford <ford@vss.fsi.com>
2719 DJ Delorie <dj@redhat.com>
2720
2721 * emultempl/pe.em (real_flags): New static.
2722 (OPTION_LARGE_ADDRESS_AWARE): New define.
2723 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2724 (gld_${EMULATION_NAME}_list_options): Likewise.
2725 (gld${EMULATION_NAME}_handle_option): Likewise.
2726 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2727 * ld.texinfo: Document it.
2728 * NEWS: Mention it.
2729
2730 2004-05-07 Brian Ford <ford@vss.fsi.com>
2731
2732 * NEWS: Mention DWARF 2 support for i386pe.
2733
2734 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
2735
2736 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2737 elf32-frvfdpic.
2738
2739 2004-04-30 Alan Modra <amodra@bigpond.net.au>
2740
2741 * ldlang.c (unique_section_p): Pass section parm, return true on
2742 group sections.
2743 (output_section_callback): Adjust.
2744 * ldlang.h (unique_section_p): Update prototype.
2745 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2746
2747 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2748
2749 * ld.texinfo (--gc-sections): Remove restriction for
2750 dynamic linking.
2751
2752 2004-04-29 Brian Ford <ford@vss.fsi.com>
2753
2754 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2755 for DWARF 2/3. Update stab section's syntax.
2756
2757 2004-04-29 Alan Modra <amodra@bigpond.net.au>
2758
2759 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2760 (fill_edata): Correct pointer arithmetic.
2761
2762 2004-04-21 Chris Demetriou <cgd@broadcom.com>
2763
2764 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2765 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2766 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2767 (EXTRA_EM_FILE): Use mipsecoff.em
2768 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2769 (EXTRA_EM_FILE): Use mipsecoff.em
2770 * emultempl/mipsecoff.em: Restructure to be included as an
2771 extra emulation file.
2772 (check_sections, gld${EMULATION_NAME}_after_open)
2773 (gld${EMULATION_NAME}_after_allocation)
2774 (gld${EMULATION_NAME}_get_script)
2775 (ld_${EMULATION_NAME}_emulation): Remove
2776 (gld${EMULATION_NAME}_before_parse): Rename to...
2777 (mipsecoff_before_parse): This.
2778 (LDEMUL_BEFORE_PARSE): Define.
2779 * emultempl/mipself.em: Remove file.
2780 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2781 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2782 these symbols.
2783 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2784 * Makefile.in: Regenerate.
2785
2786 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2787
2788 * ld.texinfo (synthesizing on H8/300): Information about linker
2789 relaxation support for bit manipulation instructions and system
2790 control instructions is added.
2791
2792 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
2793
2794 * NEWS: Mention change in DEFINED semantics.
2795
2796 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2797
2798 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2799 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2800 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2801
2802 2004-04-21 Ben Elliston <bje@au.ibm.com>
2803
2804 * ld.texinfo (Simple Example): Add missing punctuation.
2805
2806 2004-04-20 Chris Demetriou <cgd@broadcom.com>
2807
2808 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2809
2810 2004-04-19 Jakub Jelinek <jakub@redhat.com>
2811
2812 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2813 specially.
2814
2815 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2816
2817 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2818 with default priority. Likewise for dtors.
2819
2820 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2821
2822 * configure.host: Remove mips*-dec-bsd* target.
2823 * configure.tgt: Likewise.
2824
2825 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
2826
2827 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2828 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2829 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2830 * emultempl/irix.em: New file.
2831 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2832 dependencies.
2833 * Makefile.in: Regenerate.
2834
2835 2004-04-01 Paul Brook <paul@codesourcery.com>
2836
2837 * emultempl/armelf.em (byteswap_code): Add.
2838 (arm_elf_before_allocation): Pass extra parameter.
2839 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2840 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2841 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2842 * emultempl/armelf_oabi.em: Pass extra parameter.
2843 * ld.texinfo: Document --be8.
2844
2845 2004-03-30 Stan Shebs <shebs@apple.com>
2846
2847 Remove long-obsolete MPW support.
2848 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2849 * Makefile.am (mpw): Remove file-presynthesizing actions.
2850 * Makefile.in: Likewise.
2851 * ldfile.c (slash): Remove MPW case.
2852 * ldlex.l [MPW]: Remove unused definition.
2853
2854 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
2855
2856 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2857 (eelf32cr16c.c): New target.
2858 * Makefile.in: Regenerate.
2859 * configure.tgt: Handle cr16c-*-elf*.
2860 * emulparams/elf32cr16c.sh: New file.
2861 * scripttempl/elfcr16c.sc: Likewise
2862 * NEWS: Mention support for new target.
2863
2864 2004-03-30 Nick Clifton <nickc@redhat.com>
2865
2866 * po/sv.po: Updated Swedish translation.
2867
2868 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2869
2870 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2871 * emultempl/hppaelf.em: Likewise.
2872 * emultempl/ppc64elf.em: Likewise.
2873 * emultempl/sh64elf.em: Likewise.
2874
2875 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2876
2877 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2878 size_dynamic_sections call.
2879
2880 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2881
2882 PR 51.
2883 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2884 link_info.wrap_char.
2885
2886 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2887
2888 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2889 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2890
2891 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
2892
2893 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2894
2895 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2896
2897 * config.in: Regenerate.
2898 * po/ld.pot: Regenerate.
2899
2900 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2901
2902 * ld.texinfo: Add --as-needed doco.
2903 * ldmain.c (as_needed): New global var.
2904 * ldmain.h (as_needed): Declare.
2905 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2906 OPTION_NO_AS_NEEDED.
2907 (ld_options): Likewise.
2908 (parse_args): Handle them.
2909 * ldlang.h (lang_input_statement_type): Add as_needed field.
2910 * ldlang.c (new_afile): Set p->as_needed.
2911 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2912 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2913 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2914
2915 * ldlang.c (open_input_bfds): Remove useless cast.
2916 (lang_do_assignments_1): Likewise.
2917 (lang_for_each_input_section): Delete.
2918
2919 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2920
2921 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2922
2923 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2924
2925 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2926 private when building implib.
2927
2928 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2929
2930 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2931 SEC_THREAD_LOCAL.
2932 (IGNORE_SECTION): Ignore .tbss sections too.
2933 (lang_size_sections_1): .tbss sections do not advance dot.
2934
2935 2004-03-01 Andreas Schwab <schwab@suse.de>
2936
2937 * ld.texinfo (Options): Fix example for --wrap.
2938
2939 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2940
2941 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2942 not NULL.
2943
2944 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2945
2946 * ldlang.c (lang_check): Use %P, not %E, in error message.
2947
2948 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2949
2950 * ldlang.h (struct lang_output_section_state): Change processed
2951 field's type.
2952 * ldexp.c (check, invalid): Remove.
2953 (fold_name): Move valid_p assignments. Create undefined symbol
2954 when needed. Directly exampine section's processd flag.
2955 * ldlang.c (lang_output_section_statement_lookup): Adjust
2956 processed field init.
2957 (lang_size_sections_1): Allow LOADADDR when determining section's
2958 VMA. Adjust error message. Fold data statement's expr.
2959 (lang_size_sections): Correctly increment lang_statement_iteration.
2960
2961 2004-02-23 Alan Modra <amodra@bigpond.net.au>
2962
2963 * ldexp.c (fold_tree): Follow indirect symbols.
2964
2965 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2966
2967 * ldgram.y (exp): Add two operand ALIGN.
2968 * ldexp.c (fold_binary): Add ALIGN_K case.
2969 * ld.texinfo (ALIGN): Document two operand version.
2970
2971 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2972
2973 * ldlang.c (map_input_to_output_sections): Initialize sections
2974 mentioned in a data statement expression.
2975 (lang_do_assignments_1): Add data statement's expression's
2976 section's vma.
2977
2978 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2979
2980 * ldgram.y (statement_anywhere): Add assert rule.
2981 * ldlang.c (exp_init_os): Add assert case.
2982
2983 2004-02-14 Andrew Cagney <cagney@redhat.com>
2984
2985 * ldmain.c (remove_output): Call bfd_cache_close.
2986
2987 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2988
2989 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2990 .MIPS.content* and .MIPS.events* sections.
2991
2992 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2993
2994 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2995 .note.gnu.arm.ident to after allocated sections. Mark its
2996 address as 0.
2997
2998 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2999
3000 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
3001 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
3002 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
3003 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
3004 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
3005
3006 2004-02-05 Nick Clifton <nickc@redhat.com>
3007
3008 * emultempl/pe.em (_after_open): Fix typo in previous delta.
3009
3010 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
3011
3012 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
3013
3014 2004-01-28 Alan Modra <amodra@bigpond.net.au>
3015
3016 * genscripts.sh: Fix typo.
3017
3018 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
3019
3020 2004-01-24 Jakub Jelinek <jakub@redhat.com>
3021
3022 * emulparams/elf64_ia64.sh: Put .rela.opd into
3023 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
3024
3025 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
3026
3027 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
3028 * ld.texinfo (--omagic): Note that writable text section
3029 does not conform to published PE-COFF specs.
3030 (--enable-auto-import): Likewise.
3031
3032 2004-01-15 Alan Modra <amodra@bigpond.net.au>
3033
3034 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
3035
3036 2004-01-13 Nick Clifton <nickc@redhat.com>
3037
3038 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
3039 which if true will prevent the LMA region being used as a
3040 replacement for a default VMA region.
3041 (lang_leave_output_section_statement): Pass extra parameter.
3042 (lang_leave_overlay): Likewise.
3043 * ld.texinfo (Output Section LMA): Document that the LMA
3044 region can be set to the VMA region if no VMA has been set.
3045 * ldlang.h (struct lang_output_section_phdr_list): Create a
3046 typedef for this type. Minor formatting fixes.
3047
3048 2004-01-13 Nick Clifton <nickc@redhat.com>
3049
3050 * ldlang.c (lang_size_sections_1): If dot is advanced, then
3051 assume that the section should be allocated.
3052
3053 2004-01-13 Alan Modra <amodra@bigpond.net.au>
3054
3055 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
3056 sections. Do ignore SEC_NEVER_LOAD sections.
3057 (lang_size_sections_1): Remove test made redundant with the above.
3058
3059 2004-01-09 Alan Modra <amodra@bigpond.net.au>
3060
3061 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
3062 program_header_size.
3063
3064 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
3065
3066 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
3067 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
3068 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
3069 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
3070 (MAXPAGESIZE): Set to 64Kb.
3071 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
3072 __ROFIXUP_END__. Don't map .rofixup.got any more.
3073 * emulparams/elf32frv.sh (NOP): Set.
3074 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
3075 * configure.tgt: Add frv-*-*linux*.
3076 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
3077 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
3078 (eelf32frvfd.c): New.
3079 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
3080 * emulparams/elf32frv.sh: Reverted previous two patches.
3081 * emulparams/elf32frvfd.sh: New.
3082 * Makefile.in: Rebuilt.
3083 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
3084 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
3085 .rofixup.got to .rofixup.
3086 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3087 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
3088 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
3089
3090 2004-01-05 Jakub Jelinek <jakub@redhat.com>
3091
3092 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
3093 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
3094
3095 2004-01-03 Alan Modra <amodra@bigpond.net.au>
3096
3097 * ldexp.c (align_n): Make static.
3098 * ldexp.h (align_n): Delete declaration.
3099 * ldlang.h (lang_enter_output_section_statement): Remove
3100 block_value param.
3101 * ldlang.c (lang_enter_output_section_statement): Likewise.
3102 (TO_ADDR, TO_SIZE): Define.
3103 (opb_shift): New var.
3104 (init_opb): New function.
3105 (print_input_section): Call init_opb and use TO_ADDR.
3106 (print_data_statement, print_reloc_statement): Likewise.
3107 (print_padding_statement): Likewise.
3108 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
3109 (lang_check_section_addresses): Likewise.
3110 (lang_size_sections_1): Likewise.
3111 (lang_do_assignments_1): Likewise.
3112 (lang_set_startof): Likewise.
3113 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
3114 (lang_process): Call init_opb.
3115 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
3116 (lang_enter_overlay_section): Adjust
3117 lang_enter_output_section_statement call.
3118 * ldgram.y: Likewise.
3119 * mri.c (mri_draw_tree): Likewise.
3120 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3121 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3122 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3123
3124 * ldfile.c (ldfile_set_output_arch): Add defarch param.
3125 * ldfile.h (ldfile_set_output_arch): Ditto.
3126 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
3127 ldfile_set_output_arch.
3128 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3129 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
3130 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
3131 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3132 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
3133 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3134 * ldgram.y: Adjust ldfile_set_output_arch call.
3135 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3136 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
3137 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
3138 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
3139 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
3140 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3141 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3142
3143 2004-01-02 Bernardo Innocenti <bernie@develer.com>
3144
3145 * configure.tgt: Add m68k-uClinux target.
3146
3147 For older changes see ChangeLog-0203
3148 \f
3149 Local Variables:
3150 mode: change-log
3151 left-margin: 8
3152 fill-column: 74
3153 version-control: never
3154 End:
This page took 0.091451 seconds and 5 git commands to generate.