1 2004-05-13 Nick Clifton <nickc@redhat.com>
3 * po/fr.po: Updated French translation.
5 2004-05-11 Jakub Jelinek <jakub@redhat.com>
7 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
8 for binaries, -shared and -pie.
9 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
10 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
11 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
12 (OTHER_RELRO_SECTIONS): ... this.
13 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
14 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
15 -z relro and -z norelro.
16 (gld${EMULATION_NAME}_list_options): Add it to usage.
17 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
18 -z relro scripts when appropriate.
19 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
20 Create separate .got.plt section if SEPARATE_GOTPLT.
21 Move sections which are only written during relocation handling
22 to the beginning of RW segment. If NO_SMALL_DATA, move .got
23 before .data. Add DATA_SEGMENT_RELRO_END directive.
24 Include OTHER_RELRO_SECTIONS.
25 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
26 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
27 (fold_unary): Likewise.
28 (fold_binary): Handle -z relro.
29 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
30 exp_dataseg_relro_adjust phases. Add relro_end field.
31 * ldmain.c (main): Initialize link_info.relro to FALSE.
32 * ldlang.c (lang_size_sections): Handle -z relro.
34 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
36 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
38 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
40 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
41 before printing it with %W.
43 2004-05-07 Brian Ford <ford@vss.fsi.com>
44 DJ Delorie <dj@redhat.com>
46 * emultempl/pe.em (real_flags): New static.
47 (OPTION_LARGE_ADDRESS_AWARE): New define.
48 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
49 (gld_${EMULATION_NAME}_list_options): Likewise.
50 (gld${EMULATION_NAME}_handle_option): Likewise.
51 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
52 * ld.texinfo: Document it.
55 2004-05-07 Brian Ford <ford@vss.fsi.com>
57 * NEWS: Mention DWARF 2 support for i386pe.
59 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
61 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
64 2004-04-30 Alan Modra <amodra@bigpond.net.au>
66 * ldlang.c (unique_section_p): Pass section parm, return true on
68 (output_section_callback): Adjust.
69 * ldlang.h (unique_section_p): Update prototype.
70 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
72 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
74 * ld.texinfo (--gc-sections): Remove restriction for
77 2004-04-29 Brian Ford <ford@vss.fsi.com>
79 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
80 for DWARF 2/3. Update stab section's syntax.
82 2004-04-29 Alan Modra <amodra@bigpond.net.au>
84 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
85 (fill_edata): Correct pointer arithmetic.
87 2004-04-21 Chris Demetriou <cgd@broadcom.com>
89 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
90 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
91 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
92 (EXTRA_EM_FILE): Use mipsecoff.em
93 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
94 (EXTRA_EM_FILE): Use mipsecoff.em
95 * emultempl/mipsecoff.em: Restructure to be included as an
97 (check_sections, gld${EMULATION_NAME}_after_open)
98 (gld${EMULATION_NAME}_after_allocation)
99 (gld${EMULATION_NAME}_get_script)
100 (ld_${EMULATION_NAME}_emulation): Remove
101 (gld${EMULATION_NAME}_before_parse): Rename to...
102 (mipsecoff_before_parse): This.
103 (LDEMUL_BEFORE_PARSE): Define.
104 * emultempl/mipself.em: Remove file.
105 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
106 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
108 * Makefile.am: Remove dependencies on emultempl/mipself.em.
109 * Makefile.in: Regenerate.
111 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
113 * ld.texinfo (synthesizing on H8/300): Information about linker
114 relaxation support for bit manipulation instructions and system
115 control instructions is added.
117 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
119 * NEWS: Mention change in DEFINED semantics.
121 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
123 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
124 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
125 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
127 2004-04-21 Ben Elliston <bje@au.ibm.com>
129 * ld.texinfo (Simple Example): Add missing punctuation.
131 2004-04-20 Chris Demetriou <cgd@broadcom.com>
133 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
135 2004-04-19 Jakub Jelinek <jakub@redhat.com>
137 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
140 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
142 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
143 with default priority. Likewise for dtors.
145 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
147 * configure.host: Remove mips*-dec-bsd* target.
148 * configure.tgt: Likewise.
150 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
152 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
153 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
154 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
155 * emultempl/irix.em: New file.
156 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
158 * Makefile.in: Regenerate.
160 2004-04-01 Paul Brook <paul@codesourcery.com>
162 * emultempl/armelf.em (byteswap_code): Add.
163 (arm_elf_before_allocation): Pass extra parameter.
164 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
165 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
166 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
167 * emultempl/armelf_oabi.em: Pass extra parameter.
168 * ld.texinfo: Document --be8.
170 2004-03-30 Stan Shebs <shebs@apple.com>
172 Remove long-obsolete MPW support.
173 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
174 * Makefile.am (mpw): Remove file-presynthesizing actions.
175 * Makefile.in: Likewise.
176 * ldfile.c (slash): Remove MPW case.
177 * ldlex.l [MPW]: Remove unused definition.
179 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
181 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
182 (eelf32cr16c.c): New target.
183 * Makefile.in: Regenerate.
184 * configure.tgt: Handle cr16c-*-elf*.
185 * emulparams/elf32cr16c.sh: New file.
186 * scripttempl/elfcr16c.sc: Likewise
187 * NEWS: Mention support for new target.
189 2004-03-30 Nick Clifton <nickc@redhat.com>
191 * po/sv.po: Updated Swedish translation.
193 2004-03-27 Alan Modra <amodra@bigpond.net.au>
195 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
196 * emultempl/hppaelf.em: Likewise.
197 * emultempl/ppc64elf.em: Likewise.
198 * emultempl/sh64elf.em: Likewise.
200 2004-03-25 Alan Modra <amodra@bigpond.net.au>
202 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
203 size_dynamic_sections call.
205 2004-03-23 Alan Modra <amodra@bigpond.net.au>
208 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
211 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
213 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
214 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
216 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
218 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
220 2004-03-19 Alan Modra <amodra@bigpond.net.au>
222 * config.in: Regenerate.
223 * po/ld.pot: Regenerate.
225 2004-03-18 Alan Modra <amodra@bigpond.net.au>
227 * ld.texinfo: Add --as-needed doco.
228 * ldmain.c (as_needed): New global var.
229 * ldmain.h (as_needed): Declare.
230 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
232 (ld_options): Likewise.
233 (parse_args): Handle them.
234 * ldlang.h (lang_input_statement_type): Add as_needed field.
235 * ldlang.c (new_afile): Set p->as_needed.
236 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
237 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
238 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
240 * ldlang.c (open_input_bfds): Remove useless cast.
241 (lang_do_assignments_1): Likewise.
242 (lang_for_each_input_section): Delete.
244 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
246 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
248 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
250 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
251 private when building implib.
253 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
255 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
257 (IGNORE_SECTION): Ignore .tbss sections too.
258 (lang_size_sections_1): .tbss sections do not advance dot.
260 2004-03-01 Andreas Schwab <schwab@suse.de>
262 * ld.texinfo (Options): Fix example for --wrap.
264 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
266 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
269 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
271 * ldlang.c (lang_check): Use %P, not %E, in error message.
273 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
275 * ldlang.h (struct lang_output_section_state): Change processed
277 * ldexp.c (check, invalid): Remove.
278 (fold_name): Move valid_p assignments. Create undefined symbol
279 when needed. Directly exampine section's processd flag.
280 * ldlang.c (lang_output_section_statement_lookup): Adjust
281 processed field init.
282 (lang_size_sections_1): Allow LOADADDR when determining section's
283 VMA. Adjust error message. Fold data statement's expr.
284 (lang_size_sections): Correctly increment lang_statement_iteration.
286 2004-02-23 Alan Modra <amodra@bigpond.net.au>
288 * ldexp.c (fold_tree): Follow indirect symbols.
290 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
292 * ldgram.y (exp): Add two operand ALIGN.
293 * ldexp.c (fold_binary): Add ALIGN_K case.
294 * ld.texinfo (ALIGN): Document two operand version.
296 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
298 * ldlang.c (map_input_to_output_sections): Initialize sections
299 mentioned in a data statement expression.
300 (lang_do_assignments_1): Add data statement's expression's
303 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
305 * ldgram.y (statement_anywhere): Add assert rule.
306 * ldlang.c (exp_init_os): Add assert case.
308 2004-02-14 Andrew Cagney <cagney@redhat.com>
310 * ldmain.c (remove_output): Call bfd_cache_close.
312 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
314 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
315 .MIPS.content* and .MIPS.events* sections.
317 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
319 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
320 .note.gnu.arm.ident to after allocated sections. Mark its
323 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
325 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
326 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
327 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
328 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
329 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
331 2004-02-05 Nick Clifton <nickc@redhat.com>
333 * emultempl/pe.em (_after_open): Fix typo in previous delta.
335 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
337 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
339 2004-01-28 Alan Modra <amodra@bigpond.net.au>
341 * genscripts.sh: Fix typo.
343 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
345 2004-01-24 Jakub Jelinek <jakub@redhat.com>
347 * emulparams/elf64_ia64.sh: Put .rela.opd into
348 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
350 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
352 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
353 * ld.texinfo (--omagic): Note that writable text section
354 does not conform to published PE-COFF specs.
355 (--enable-auto-import): Likewise.
357 2004-01-15 Alan Modra <amodra@bigpond.net.au>
359 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
361 2004-01-13 Nick Clifton <nickc@redhat.com>
363 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
364 which if true will prevent the LMA region being used as a
365 replacement for a default VMA region.
366 (lang_leave_output_section_statement): Pass extra parameter.
367 (lang_leave_overlay): Likewise.
368 * ld.texinfo (Output Section LMA): Document that the LMA
369 region can be set to the VMA region if no VMA has been set.
370 * ldlang.h (struct lang_output_section_phdr_list): Create a
371 typedef for this type. Minor formatting fixes.
373 2004-01-13 Nick Clifton <nickc@redhat.com>
375 * ldlang.c (lang_size_sections_1): If dot is advanced, then
376 assume that the section should be allocated.
378 2004-01-13 Alan Modra <amodra@bigpond.net.au>
380 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
381 sections. Do ignore SEC_NEVER_LOAD sections.
382 (lang_size_sections_1): Remove test made redundant with the above.
384 2004-01-09 Alan Modra <amodra@bigpond.net.au>
386 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
389 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
391 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
392 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
393 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
394 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
395 (MAXPAGESIZE): Set to 64Kb.
396 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
397 __ROFIXUP_END__. Don't map .rofixup.got any more.
398 * emulparams/elf32frv.sh (NOP): Set.
399 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
400 * configure.tgt: Add frv-*-*linux*.
401 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
402 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
403 (eelf32frvfd.c): New.
404 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
405 * emulparams/elf32frv.sh: Reverted previous two patches.
406 * emulparams/elf32frvfd.sh: New.
407 * Makefile.in: Rebuilt.
408 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
409 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
410 .rofixup.got to .rofixup.
411 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
412 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
413 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
415 2004-01-05 Jakub Jelinek <jakub@redhat.com>
417 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
418 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
420 2004-01-03 Alan Modra <amodra@bigpond.net.au>
422 * ldexp.c (align_n): Make static.
423 * ldexp.h (align_n): Delete declaration.
424 * ldlang.h (lang_enter_output_section_statement): Remove
426 * ldlang.c (lang_enter_output_section_statement): Likewise.
427 (TO_ADDR, TO_SIZE): Define.
428 (opb_shift): New var.
429 (init_opb): New function.
430 (print_input_section): Call init_opb and use TO_ADDR.
431 (print_data_statement, print_reloc_statement): Likewise.
432 (print_padding_statement): Likewise.
433 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
434 (lang_check_section_addresses): Likewise.
435 (lang_size_sections_1): Likewise.
436 (lang_do_assignments_1): Likewise.
437 (lang_set_startof): Likewise.
438 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
439 (lang_process): Call init_opb.
440 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
441 (lang_enter_overlay_section): Adjust
442 lang_enter_output_section_statement call.
443 * ldgram.y: Likewise.
444 * mri.c (mri_draw_tree): Likewise.
445 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
446 * emultempl/mmo.em (mmo_place_orphan): Likewise.
447 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
449 * ldfile.c (ldfile_set_output_arch): Add defarch param.
450 * ldfile.h (ldfile_set_output_arch): Ditto.
451 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
452 ldfile_set_output_arch.
453 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
454 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
455 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
456 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
457 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
458 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
459 * ldgram.y: Adjust ldfile_set_output_arch call.
460 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
461 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
462 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
463 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
464 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
465 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
466 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
468 2004-01-02 Bernardo Innocenti <bernie@develer.com>
470 * configure.tgt: Add m68k-uClinux target.
472 For older changes see ChangeLog-0203
478 version-control: never