d31157e88986a71bbcd1c4d038406abc09d25d6e
[external/binutils.git] / ld / ChangeLog
1 2007-06-11  Bob Wilson  <bob.wilson@acm.org>
2
3         * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Add ONLY_IF_RO
4         for .xt_except_table.
5         (OTHER_RELRO_SECTIONS): New.
6
7 2007-06-11  Sterling Augustine  <sterling@tensilica.com>
8             Bob Wilson  <bob.wilson@acm.org>
9         
10         * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use renamed
11         XTENSA_PROP_NO_TRANSFORM flag instead of XTENSA_PROP_INSN_NO_TRANSFORM.
12         
13 2007-06-01  Noah Misch  <noah@cs.caltech.edu>
14             Alan Modra  <amodra@bigpond.net.au>
15
16         * ldlang.c (ldlang_add_file): Use input_bfds_tail.
17         * ldmain.c (main): Init input_bfds_tail.  Sort link_info
18         initialization.
19
20 2007-05-29  Alan Modra  <amodra@bigpond.net.au>
21
22         * emultempl/spuelf.em (base_name): New function, split out from..
23         (embedded_spu_file) ..here.  Pass -fPIC or -fpie to embedspu
24         invocation if we deduce a shared lib or position independent
25         executable build by looking at ctrbegin* linker input files.
26
27 2007-05-29  Alan Modra  <amodra@bigpond.net.au>
28
29         * emultempl/spu_ovl.S (__rv_pattern, __cg_pattern): Set symbol
30         types and sizes.
31         * emultempl/spu_ovl.o: Regenerate.
32
33 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
34
35         * Makefile.in: Regnerate.
36         * configure: Regenerate.
37         * aclocal.m4: Regenerate.
38
39 2007-05-24  Nathan Sidwell  <nathan@codesourcery.com>
40
41         * ldlex.l: ASSERT is recognized in SCRIPT env.  NAMES cannot
42         contain commas in EXP env.
43         * ldgram.y (extern_name_list): Push to EXP env, move body to ...
44         (extern_name_list_body): ... here.
45         (script_file, ifile_list): Reformat.
46         (statement): Add ASSERT.
47
48 2007-05-22  Nick Clifton  <nickc@redhat.com>
49
50         * ld.texinfo: Use @copying around the copyright notice.
51         * ldint.texinfo: Likewise.
52
53 2007-05-18  Richard Sandiford  <richard@codesourcery.com>
54
55         * emulparams/elf32ebmipvxworks.sh (OTHER_READONLY_SECTIONS)
56         (OTHER_READWRITE_SECTIONS): Define.  Add .rdata sections.
57
58 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
59
60         * configure.in: Allow sysroots to be relocated under $prefix as
61         well as $exec_prefix.
62         * configure: Regenerate.
63
64 2007-05-14  Andreas Schwab  <schwab@suse.de>
65
66         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern):
67         Handle null pattern.
68
69 2007-05-11  Alan Modra  <amodra@bigpond.net.au>
70
71         * emultempl/ppc32elf.em (plt_style): New variable.
72         (old_plt): Delete.
73         (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
74         (PARSE_AND_LIST_PROLOGUE): Define OPTION_NEW_PLT, renumber
75         OPTION_OLD_PLT, OPTION_OLD_GOT and OPTION_STUBSYMS.
76         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add secure-plt.
77         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NEW_PLT.
78         * ld.texinfo (--secure-plt): Document.
79
80 2007-05-08  Alan Modra  <amodra@bigpond.net.au>
81
82         * ld.h (args_type, ld_config_type): Reorder fields.
83         * ldmain.c (main): Don't initialise a bunch of vars we know are
84         zero already.
85
86 2007-05-05  Anatoly Sokolov <aesok@post.ru>
87
88         * multempl/avrelf.em (PARSE_AND_LIST_ARGS_CASES): Add new value for 
89         "--pmem-wrap-around".
90         (PARSE_AND_LIST_OPTIONS): Describe new value for "--pmem-wrap-around".
91
92 2007-05-03  Bob Wilson  <bob.wilson@acm.org>
93
94         * scripttempl/elfxtensa.sc: Merge changes from elf.sc.
95
96 2007-05-03  Alan Modra  <amodra@bigpond.net.au>
97
98         * ld.texinfo (--no-warn-search-mismatch): Document.
99         * ldfile.c (ldfile_try_open_bfd): Don't warn about skipping
100         incompatible libraries if --no-warn-search-mismatch.
101         * ld.h (args_type): Add warn_search_mismatch.
102         * ldmain.c (main): Init it.
103         * lexsup.c (enum option_values): Add OPTION_NO_WARN_SEARCH_MISMATCH.
104         (ld_options): Add entry for --no-warn-search-mismatch.
105         (parse_args): Handle OPTION_NO_WARN_SEARCH_MISMATCH.
106
107 2007-05-03  Alan Modra  <amodra@bigpond.net.au>
108
109         * scripttempl/elf.sc: Add .debug_pubtypes and .debug_ranges.
110
111 2007-05-01  Robert Millan  <rmh@aybabtu.com>
112
113         * ldlang.c (lang_check): Error on architecture mismatch.
114
115 2007-04-30  Alan Modra  <amodra@bigpond.net.au>
116
117         * ldmain.c (link_callbacks): Init info and minfo fields.
118         * ldmisc.c (minfo): Do nothing if no map file.
119         * emultempl/spuelf.em (stack_analysis, emit_stack_syms): New vars.
120         (spu_after_open): Adjust spu_elf_create_sections call.
121         (spu_before_allocation): Likewise for spu_elf_size_stubs.
122         (OPTION_SPU_STACK_ANALYSIS, OPTION_SPU_STACK_SYMS): Define.
123         (PARSE_AND_LIST_LONGOPTS): Add new entries.
124         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
125         * gen-doc.texi: Add @set for SPU and other missing targets.
126         * ld.texinfo: Update man page selection to match gen-doc.texi.
127         Document SPU features.
128
129 2007-04-28  Alan Modra  <amodra@bigpond.net.au>
130
131         * ldcref.c (struct cref_hash_entry): Make "demangled" const.
132         (cref_fill_array): Adjust for changed demangler.
133         * ldlang.c (lang_one_common): Likewise.
134
135 2007-04-27  Nathan Froyd  <froydnj@codesourcery.com>
136
137         * emulparams/elf32_sparc.sh: Update comments.
138         * emulparams/elf32bmip.sh: Likewise.
139         * emulparams/elf32ppc.sh: Likewise.
140         * emulparams/vxworks.sh: Likewise.
141
142 2007-04-27  Alan Modra  <amodra@bigpond.net.au>
143
144         Many files: Include sysdep.h first.  Remove duplicate headers.
145         * Makefile.am: Run "make dep-am".
146         * Makefile.in: Regenerate.
147
148 2007-04-24  Alan Modra  <amodra@bigpond.net.au>
149
150         * Makefile.in: Regenerate.
151
152 2007-04-19  Alan Modra  <amodra@bigpond.net.au>
153
154         * ldcref.c (cref_fill_array): Call bfd_demangle rather than demangle.
155         * ldlang.c (lang_one_common): Likewise.
156         * ldmisc.c (vfinfo): Likewise.
157         (demangle): Delete.
158         * ldmisc.h (demangle): Delete.
159         * Makefile.am: Run "make dep-am".
160         * Makefile.in: Regenerate.
161
162 2007-04-18  Alan Modra  <amodra@bigpond.net.au>
163
164         * ldlang.h (enum section_type): Add overlay_section.
165         * ldlang.c (lang_add_section): Handle flags for overlay_section
166         as per normal_section.
167         (lang_size_sections_1): When setting lma, detect overlays by
168         os->sectype rather than by looking for overlapping vmas.
169         (lang_enter_overlay_section): Use overlay_section type.
170         (lang_leave_overlay): Set first overlay section to normal.
171
172 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
173
174         * Makefile.am: Add ACLOCAL_AMFLAGS.
175         * Makefile.in: Regenerate.
176
177 2007-04-12  Bob Wilson  <bob.wilson@acm.org>
178
179         * emulparams/elf32xtensa.sh (OTHER_SECTIONS): KEEP property sections.
180
181 2007-04-10  Richard Henderson  <rth@redhat.com>
182
183         * ldlang.c (relax_sections): Initialize and increment
184         link_info.relax_trip.
185
186 2007-04-04  Paul Brook  <paul@codesourcery.com>
187
188         * configure.tgt: Loosen checks for arm uclinux eabi targets.
189
190 2007-04-02  H.J. Lu  <hongjiu.lu@intel.com>
191
192         PR ld/4090
193         * ldexp.h (node_type): Add lineno.
194         * ldexp.c: Include "ldlex.h".
195         (exp_intop): Set the lineno field from lineno.
196         (exp_bigintop): Likewise.
197         (exp_relop): Likewise.
198         (exp_nameop): Likewise.
199         (exp_binop): Set the lineno field from lineno of lhs.
200         (exp_trinop): Likewise.
201         (exp_unop): Set the lineno field from lineno of child.
202         (exp_assop): Set the lineno field from lineno of src.
203         (exp_provide): Likewise.
204         (exp_assert): Set the lineno field from lineno of exp.
205         (exp_get_abs_int): Set lineno from lineno of nonconstant
206         expression when report problem.
207
208 2007-03-29  Richard Sandiford  <richard@codesourcery.com>
209             Daniel Jacobowitz  <dan@codesourcery.com>
210
211         * NEWS: Mention -l:foo.
212         * ld.texinfo: Document it.
213         * ldlang.c (new_afile): If a lang_input_file_is_l_enum
214         entry as a name beginning with a coloh, convert it to a
215         lang_input_file_is_search_file_enum entry without the colon.
216
217 2007-03-28  Richard Sandiford  <richard@codesourcery.com>
218
219         * ld.h (ld_config_type): Add rpath_separator.
220         * ldmain.c (main): Initialize it.
221         * lexsup.c (parse_args): Honor config.rpath_separator.
222         * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Likewise.
223         (gld${EMULATION_NAME}_add_sysroot): Likewise.
224         (gld${EMULATION_NAME}_parse_ld_so_conf): Use config.rpath_separator
225         rather than ':' when building the path.
226         * emultempl/vxworks.em (vxworks_before_parse): New function.
227         Override config.rpath_separator.
228         (LDEMUL_AFTER_OPEN): Do not change if EXTRA_EM_FILE has been
229         set to gld${EMULATION_NAME}_after_open; #define that identifier
230         to vxworks_foo instead.
231         (LDEMUL_BEFORE_PARSE): Override in the same way as LDEMUL_AFTER_OPEN.
232
233 2007-03-28  Richard Sandiford  <richard@codesourcery.com>
234             Phil Edwards  <phil@codesourcery.com>
235
236         * ld.texinfo: Put the contents after the title page rather
237         than at the end of the document.
238
239 2007-03-26  Alan Modra  <amodra@bigpond.net.au>
240
241         * Makefile.am: Add dependency on ldemul-list.h for powerpc and
242         spu target emul files.
243         * configure.in: Check for mkstemp and waitpid.
244         * Makefile.in: Regenerate.
245         * configure: Regenerate.
246         * config.in: Regenerate.
247         * ldlang.c (input_file_chain): Make global.
248         (lang_add_input_file): Don't set lang_has_input_file here.
249         * ldlang.h (input_file_chain): Declare.
250         * emultempl/ppc32elf.em (ppc_recognized_file): New function.
251         (LDEMUL_RECOGNIZED_FILE): Define.
252         * emultempl/ppc64elf.em (ppc64_recognized_file): New function.
253         (LDEMUL_RECOGNIZED_FILE): Define.
254         * emultempl/spuelf.em (struct tflist): New.
255         (tmp_file_list): New var.
256         (clean_tmp, embedded_spu_file): New functions.
257
258 2007-03-24  Alan Modra  <amodra@bigpond.net.au>
259
260         * ldlang.c (lang_insert_orphan): Provide start/stop loadaddr syms
261         rather than defining unconditionally.
262         (lang_leave_overlay_section): Likewise.
263         * ld.texinfo (Overlay Description): Update description and examples
264         for start/stop syms.
265
266 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
267
268         * ld.texinfo: Include VERSION_PACKAGE when reporting version.
269
270 2007-03-20  Paul Brook  <paul@codesourcery.com>
271
272         * emultempl/armelf.em (pic_veneer): New variable.
273         (PARSE_AND_LIST_PROLOGUE): Add OPTION_PIC_VENEER.
274         (PARSE_AND_LIST_ARGS_CASES): Ditto.
275         (PARSE_AND_LIST_LONGOPTS): Add "pic-veneer".
276         (PARSE_AND_LIST_OPTIONS): Ditto.
277         * ld.texinfo: Document --pic-veneer.
278
279 2007-03-18  Mark Shinwell  <shinwell@codesourcery.com>
280
281         * ld.texinfo: Document --no-enum-size-warning.
282         * emultempl/armelf.em (no_enum_size_warning): New.
283         (arm_elf_create_output_section_statements): Correct typo
284         in comment.  Pass no_enum_size_warning to
285         bfd_elf32_arm_set_target_relocs.
286         (PARSE_AND_LIST_PROLOGUE): Define OPTION_NO_ENUM_SIZE_WARNING.
287         (PARSE_AND_LIST_OPTIONS): Document --no-enum-size-warning.
288         (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_ENUM_SIZE_WARNING
289         case.
290
291 2007-03-19  Bernd Schmidt  <bernd.schmidt@analog.com>
292
293         * configure.tgt (bfin-*-elf, bfin-*-uclinux*): Add targ_extra_libpath.
294         (bfin-*-linux-uclibc*): New target.
295
296 2007-03-16  Kai Tietz  <Kai.Tietz@onevision.com>
297
298         * pe-dll.c (make_one): Use pc-relative relocation instead of an
299         absolute relocation for x86_64-pc-mingw32 target.
300
301 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
302
303         * Makefile.am (ld_TEXINFOS): Remove ldver.texi.
304         (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
305         (TEXI2DVI): Likewise.
306         (REPORT_BUGS_TO): Removed.
307         (INCLUDES): Remove -DREPORT_BUGS_TO.
308         (ldver.texi): Likewise.
309         (ld.1): Don't depend on ldver.texi.
310         (MOSTLYCLEANFILES): Remove ldver.texi.
311         * Makefile.in: Regenerated.
312
313         * configure.in (--with-bugurl): Removed.
314         * configure: Regenerated.
315
316         * lexsup.c: Include bfdver.h.
317
318         * ld.texinfo: Include bfdver.texi instead of ldver.texi.
319
320 2007-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
321
322         * emultempl/mmixelf.em: Remove incorrect '#line' directive.
323
324 2007-03-08  Alan Modra  <amodra@bigpond.net.au>
325
326         * ldlang.c (lang_size_sections_1): Correct backwards dot move
327         test to not trigger on overlays.  Only warn on backwards move
328         if non-default lma.
329
330 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
331
332         * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
333         bug-reporting URL.
334         * Makefile.am (ldver.texi): Define BUGURL.
335         * ld.texinfo: Use BUGURL.
336         * Makefile.in, configure: Regenerate.
337
338 2007-03-07  Nick Clifton  <nickc@redhat.com>
339
340         PR ld/4023
341         * emultempl/aix.em (..._before_allocation): Strip sysroot prefix
342         from any paths being inserted into the output binary's DT_RPATH.
343
344 2007-03-02  Nathan Sidwell  <nathan@codesourcery.com>
345
346         * emulparams/shelf_uclinux.sh: New. Missed in 2007-02-28 commit.
347
348 2007-03-01  Joseph Myers  <joseph@codesourcery.com>
349
350         * ldver.c (ldversion): Remove word "version" from output.  Update
351         copyright date.
352
353 2007-02-28  Nathan Sidwell  <nathan@codesourcery.com>
354
355         * Makefile.am (ALL_EMULATIONS): Add eshelf_uclinux.o
356         (eshelf_uclinux.c): New target.
357         * Makefile.in: Rebuilt.
358         * configure.tgt (sh-*-uclinux* | sh[12]-*-uclinux*): New stanza.
359         * emulparams/shelf_uclinux.sh: New.
360
361 2007-02-28  Alan Modra  <amodra@bigpond.net.au>
362
363         * configure.tgt: Fix type last change.
364         * configure.tgt (spu-*-elf*): Delete targ_extra_ofiles.
365
366 2007-02-27  Alan Modra  <amodra@bigpond.net.au>
367
368         * Makefile.am (ALL_EMUL_EXTRA_OFILES): Remove spu_inc.o.
369         (eelf32_spu.c): Adjust dependencies.
370         * Makefile.in: Regenerate.
371         * emultempl/spuelf.em (ovl_mgr): New array.  Insert spu_ovl.o
372         code using bin2c.
373         (_binary_spu_ovl_o_start, _binary_spu_ovl_o_end): Delete.
374         (ovl_mgr_stream): Update.
375         * emultempl/spu_inc.s: Delete.
376         * emultempl/spu_none.s: Delete.
377
378 2007-02-26  Alan Modra  <amodra@bigpond.net.au>
379
380         * emultempl/spuelf.em (_binary_builtin_ovl_mgr_start): Rename
381         to _binary_spu_ovl_o_start.
382         (_binary_builtin_ovl_mgr_end): Rename to _binary_spu_ovl_o_end.
383         (spu_elf_load_ovl_mgr): Fatal error on missing overlay manager.
384         * emultempl/spu_inc.s: Rename symbols.
385         * emultempl/spu_none.s: New file.
386         * emultempl/spu_ovl.S: Update copyright.
387         * Makefile.am (spu_inc.o): Try building with ld -r first, then
388         gas incbin, then build without overlay manager.
389         * Makefile.in: Regenerate.
390
391 2007-02-22  Joseph Myers  <joseph@codesourcery.com>
392
393         * configure.tgt (mips64*el-*-linux-*, mips64*-*-linux-*,
394         mips*el-*-linux-*, mips*-*-linux-*): Set
395         targ_extra_libpath=$targ_extra_emuls.
396
397 2007-02-21  Nick Clifton  <nickc@redhat.com>
398
399         * ldlang.c (ldlang_override_segment_assignment): New function.
400         * ldlang.h (ldlang_override_segment_assignment): Prototype.
401         * ldmain.c (link_callbacks): Add
402         ldlang_override_segment_assignment.
403
404 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
405
406         * ldexp.c (fold_name <LOADADDR>): Ensure result is always absolute.
407
408 2007-02-17  Mark Mitchell  <mark@codesourcery.com>
409             Nathan Sidwell  <nathan@codesourcery.com>
410             Vladimir Prus  <vladimir@codesourcery.com
411             Joseph Myers  <joseph@codesourcery.com>
412
413         * configure.in (--with-bugurl): New option.
414         * configure: Regenerate.
415         * Makefile.am (REPORT_BUGS_TO): Define.
416         (INCLUDES): Define REPORT_BUGS_TO.
417         Regenerate dependencies.
418         * Makefile.in: Regenerate.
419         * ld.h: Remove include of bin-bugs.h.
420         * lexsup.c (help): Don't print empty REPORT_BUGS_TO.
421
422 2007-02-17  Alan Modra  <amodra@bigpond.net.au>
423
424         * ldcref.c (check_reloc_refs): Compare section for local syms.
425
426 2007-02-13  Alan Modra  <amodra@bigpond.net.au>
427
428         * emultempl/spu_ovl.S (__ovly_return, __ovly_load): Set sym size.
429         (__ovly_load_event): Define.
430         (size): Rename to osize.
431         * emultempl/spu_ovl.o: Regenerate.
432
433 2007-02-13  Alan Modra  <amodra@bigpond.net.au>
434
435         * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Add ".branch_lt".
436         * emultempl/ppc64elf.em (ppc_add_stub_section): Create without
437         SEC_RELOC flag set.
438
439 2007-02-09  H.J. Lu  <hongjiu.lu@intel.com>
440
441         * configure.in (targ_extra_emuls): Add $targ64_extra_emuls if
442         want64 is true.
443         (targ_extra_libpath): Add $targ64_extra_libpath if want64 is
444         true
445         * configure: Regenerated.
446
447         * configure.tgt (targ_extra_libpath): Initialize.
448         (targ64_extra_emuls): New. Document. Initialize.
449         (targ64_extra_libpath): Likewise.
450         (i[3-7]86-*-linux-*): Set targ64_extra_emuls and
451         targ64_extra_libpath.
452         (powerpc*-*-linux*): Likewise.
453         (s390-*-linux*): Likewise.
454
455 2007-02-07  Paul Brook  <paul@codesourcery.com>
456
457         * configure.tgt: Add arm*-*-uclinux-*eabi.
458
459 2007-02-06  H.J. Lu  <hongjiu.lu@intel.com>
460
461         * ldlang.c (lang_size_sections_1): Add a missing `)'.
462
463 2007-02-06  Alan Modra  <amodra@bigpond.net.au>
464
465         PR ld/3966
466         * ldlang.c (lang_size_sections_1): Don't warn on backwards dot
467         move unless section size is non-zero.
468
469 2007-02-05  Dave Brolley  <brolley@redhat.com>
470
471         * Makefile.am (ALL_EMULATIONS): Add support for Toshiba MeP.
472         * configure.tgt: Likewise.
473         * scripttempl/mep.sc: New file.
474         * emulparams/elf32mep.sh: New file.
475         * Makefile.in: Regenerate.
476
477 2006-01-29  Julian Brown  <julian@codesourcery.com>
478
479         * NEWS: Mention --vfp11-denorm-fix option.
480         * ld.texinfo: Document above.
481         * emulparams/armelf_linux.sh (OTHER_TEXT_SECTIONS): Add
482         .vfp11_veneer section.
483         * emulparams/armelf.sh (OTHER_TEXT_SECTIONS): Likewise.
484         * emultempl/armelf.em (vfp11_denorm_fix): New static variable.
485         (arm_elf_before_allocation): Call bfd_elf32_arm_set_vfp11_fix,
486         bfd_elf32_arm_init_maps and bfd_elf32_arm_vfp11_erratum_scan.
487         (arm_elf_after_allocation): New function. Call
488         bfd_elf32_arm_vfp11_fix_veneer_locations for all input statements.
489         (arm_elf_create_output_section_statements): Pass vfp11 fix command
490         line option to BFD.
491         (OPTION_VFP11_DENORM_FIX): New option.
492         (PARSE_AND_LIST_LONGOPTS): Handle new option.
493         (PARSE_AND_LIST_OPTIONS): Likewise.
494         (PARSE_AND_LIST_ARGS_CASES): Likewise.
495         (LDEMUL_AFTER_ALLOCATION): Define.
496
497 2007-01-24  H.J. Lu  <hongjiu.lu@intel.com>
498
499         * ldgram.y (SIZEOF_HEADERS): Remove duplicated one.
500         (DEFSYMEND): Likewise.
501         (NAME): Likewise.
502         (LNAME): Likewise.
503
504 2007-01-19  Murali Vemulapati  <murali.vemulapati@gmail.com>
505
506         * pe-dll.c: (make_one) Conditionally include jump stubs.
507         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Identify
508         redundant jump stubs from import libraries and exclude them from
509         link.
510
511 2007-01-19  H.J. Lu  <hongjiu.lu@intel.com>
512
513         * ld.h (args_type): Add new symbolic and dynamic_list fields.
514
515         * ld.texinfo: Update -Bsymbolic-functions.
516
517         * ldmain.c (main): Initialize command_line.symbolic to
518         symbolic_unset and command_line.dynamic_list to
519         dynamic_list_unset.  Check -Bsymbolic, -Bsymbolic-functions and
520         --dynamic-list* before setting link_info.symbolic,
521         link_info.dynamic and link_info.dynamic_data.
522
523         * lexsup.c (option_values): Add OPTION_SYMBOLIC_FUNCTIONS.
524         (ld_options): Use OPTION_SYMBOLIC_FUNCTIONS with
525         -Bsymbolic-functions.
526         (parse_args): Handle -Bsymbolic-functions.  Don't set
527         link_info.dynamic, link_info.dynamic_data and link_info.symbolic
528         here.  Set command_line.symbolic for -Bsymbolic.  Set
529         command_line.dynamic_list and command_line.symbolic for
530         --dynamic-list-data, --dynamic-list-cpp-new,
531         --dynamic-list-cpp-typeinfo and --dynamic-list.
532
533 2007-01-19  Jakub Jelinek  <jakub@redhat.com>
534             H.J. Lu  <hongjiu.lu@intel.com>
535
536         * emultempl/elf32.em (handle_option): Make sure -z max-page-size
537         or -z common-page-size argument is a power of 2.  Call
538         bfd_emul_set_maxpagesize and bfd_emul_set_commonpagesize.
539
540 2007-01-19  H.J. Lu  <hongjiu.lu@intel.com>
541
542         * ldmain.c (main): Don't call bfd_emul_set_maxpagesize nor
543         bfd_emul_set_commonpagesize.
544
545 2007-01-19  H.J. Lu  <hongjiu.lu@intel.com>
546
547         * NEWS: Mention --default-script/-dT.
548
549         * ld.h (args_type): Add a default_script field.
550
551         * ld.texinfo: Document --default-script/-dT.
552
553         * ldmain.c (main): Handle command_line.default_script.
554
555         * lexsup.c (option_values): Add OPTION_DEFAULT_SCRIPT.
556         (ld_options): Add entries for --default-script and -dT.
557         (parse_args): Handle --default-script/-dT.
558
559 2007-01-16  H.J. Lu  <hongjiu.lu@intel.com>
560
561         PR ld/3831
562         * NEWS: Mention -Bsymbolic-functions, --dynamic-list-data and
563         --dynamic-list-cpp-new.
564
565         * ld.texinfo: Document -Bsymbolic-functions, --dynamic-list-data
566         and --dynamic-list-cpp-new.
567
568         * ldlang.c (lang_append_dynamic_list_cpp_new): New.
569         (lang_process): Change link_info.dynamic to
570         link_info.dynamic_list.
571         (lang_append_dynamic_list): Likewise.
572         * ldmain.c (main): Likewise.  Initialize link_info.dynamic and
573         link_info.dynamic_data to FALSE.
574
575         * ldlang.h (lang_append_dynamic_list_cpp_new): New.
576
577         * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST_DATA and
578         OPTION_DYNAMIC_LIST_CPP_NEW.
579         (ld_options): Add entries for -Bsymbolic-functions,
580         --dynamic-list-data and --dynamic-list-cpp-new.  Make
581         -Bsymbolic-functions an alias of --dynamic-list-data.
582         (parse_args): Change link_info.dynamic to link_info.dynamic_list.
583         Set link_info.dynamic to TRUE for --dynamic-list and
584         --dynamic-list-cpp-typeinfo.  Handle --dynamic-list-data and
585         --dynamic-list-cpp-new.
586
587 2007-01-11  Nathan Sidwell  <nathan@codesourcery.com>
588
589         * emultempl/elf-generic.em (gdl_map_segments): Only allow header
590         shrinkage for the first few iterations.
591
592 2007-01-08  Kai Tietz   <kai.tietz@onevision.com>
593
594         * configure.tgt: Renamed target x86_64-*-mingw64 to
595         x86_64-*-mingw*.
596
597 2007-01-08  Pedro Alves  <pedro_alves@portugalmail.pt>
598
599         * configure.host: Add i[3-7]86-*-mingw* case.
600
601 2007-01-08  Nick Clifton  <nickc@redhat.com>
602
603         * pep-dll.h (pep_bfd_is_dll): Add prototype.
604
605 2007-01-08  Aurelien Jarno  <aurelien@aurel32.net>
606
607         PR ld/3843
608         * configure.tgt (x86_64_[k]freebsd*): Add targ_extra_libpath and
609         tdir_elf_i386_fbsd.
610
611 2007-01-06  Nathan Sidwell  <nathan@codesourcery.com>
612
613         * ldexp.c (fold_name): Issue error on undefined sections.
614
615 2007-01-02  Alan Modra  <amodra@bigpond.net.au>
616
617         * pe-dll.c: Include pe-dll.h.
618         * pep-dll.c (pe_bfd_is_dll): Define.
619
620 For older changes see ChangeLog-2006
621 \f
622 Local Variables:
623 mode: change-log
624 left-margin: 8
625 fill-column: 74
626 version-control: never
627 End: