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