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