(md_apply_fix3:BFD_RELOC_ARM_IMMEDIATE): Do not allow values which have come
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
b602c853
L
12004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2
3 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
4 the section.
5
1a23a9e6
AM
62004-06-29 Alan Modra <amodra@bigpond.net.au>
7
8 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
9 size in rawsize.
10
eea6121a
AM
112004-06-24 Alan Modra <amodra@bigpond.net.au>
12
13 * ldlang.c (print_output_section_statement): Don't print size before
14 relaxation.
15 (IGNORE_SECTION): Remove bfd arg. Update all callers.
16
17 * ldexp.c (fold_name): .. See below.
18 * ldlang.c (section_already_linked, print_output_section_statement,
19 print_input_section, insert_pad, size_input_section,
20 lang_check_section_addresses, lang_size_sections_1,
21 lang_size_sections, lang_do_assignments_1, lang_set_startof,
22 lang_one_common, lang_reset_memory_regions, lang_process,
23 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
24 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
25 * pe-dll.c (process_def_file, generate_reloc): ..
26 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
27 gld${EMULATION_NAME}_before_allocation): ..
28 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
29 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
30 sh64_elf_${EMULATION_NAME}_after_allocation): ..
31 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
32 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
33 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
34 "size" instead of "_raw_size" and "_cooked_size". Expand
35 bfd_section_size macro invocations.
36
552f8272
CF
372004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
38
39 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
40 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
41 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
42 ___crt_xt_end__.
43 (.tls): Define ___tls_start__ and ___tls_end__.
44
aee6f5b4
AO
452004-06-21 Alexandre Oliva <aoliva@redhat.com>
46
47 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
48
eea6121a 492004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 50
eea6121a
AM
51 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
52 * configure: Regenerate.
f234d5fe 53
dfff4fbe
JJ
542004-06-15 Jakub Jelinek <jakub@redhat.com>
55
56 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
57 .gcc_except_table output sections lost accidentally with
58 -z relro patch.
59
a9e0c0c6
AM
602004-06-15 Alan Modra <amodra@bigpond.net.au>
61
62 * ldwrite.c (build_link_order): Use bfd_get_section_size
63 instead of bfd_get_section_size_before_reloc or _raw_size.
64 * pe-dll.c (process_def_file): Likewise.
65
7115639b
AM
662004-06-14 Alan Modra <amodra@bigpond.net.au>
67
68 From Richard Wirth <r.wirth@wirthware.de>
69 * ldlang.c (lang_finish): Don't free lang_definedness_table.
70
9ca57817
AM
712004-05-29 Alan Modra <amodra@bigpond.net.au>
72
73 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
74 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
75
f6f9408f
JR
762004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
77
78 * testsuite/ld-sh/arch/arch.exp: New test script.
79 * testsuite/ld-sh/arch/arch_expected.txt: New file.
80 * testsuite/ld-sh/arch/sh.s: New file.
81 * testsuite/ld-sh/arch/sh2.s: New file.
82 * testsuite/ld-sh/arch/sh-dsp.s: New file.
83 * testsuite/ld-sh/arch/sh2e.s: New file.
84 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
85 * testsuite/ld-sh/arch/sh3.s: New file.
86 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
87 * testsuite/ld-sh/arch/sh3e.s: New file.
88 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
89 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
90 * testsuite/ld-sh/arch/sh4.s: New file.
91 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
92 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
93 * testsuite/ld-sh/arch/sh4a.s: New file.
94
164e712d
AM
952004-05-28 Alan Modra <amodra@bigpond.net.au>
96
6feb9908
AM
97 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
98 throughout file.
99 * lexsup.c: Formatting. Wrap long lines.
100 * ldwrite.c: Update copyright date.
101
164e712d
AM
102 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
103 (output_section_callback): Nor SEC_KEEP here.
104 (gc_section_callback): Twiddle SEC_EXCLUDE here.
105 (lang_gc_wild): Delete. Fold into..
106 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
107 collecting.
108 (lang_process): Always call lang_gc_sections.
109 (lang_place_orphans): Handle SEC_EXCLUDE sections.
110 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
111 SEC_EXCLUDE code.
112
b3096250
L
1132004-05-26 H.J. Lu <hongjiu.lu@intel.com>
114
115 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
116 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
117 * ldlang.c (lang_add_section): Likewise.
118
e49f5022
AM
1192004-05-26 Alan Modra <amodra@bigpond.net.au>
120
121 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
122 sections when doing a final link. Clear SEC_EXCLUDE when doing
123 a relocable link, except for SEC_DEBUGGING sections.
124 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
125 same condition here to drop SEC_EXCLUDE orphan sections.
126
57ceae94
AM
1272004-05-25 Alan Modra <amodra@bigpond.net.au>
128
129 * ldlang.c (lang_process): Call bfd_merge_sections later, and
130 only when not a relocatable link.
131 (print_input_section): Handle SEC_EXCLUDE sections.
132 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
133 (lang_do_assignments_1): Likewise.
134 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
135 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
136 * emultempl/hppaelf.em (build_section_lists): Likewise.
137 * emultempl/ppc64elf.em (build_toc_list): Likewise.
138 (build_section_lists): Likewise.
139
a85785bc
AS
1402004-05-23 Andreas Schwab <schwab@suse.de>
141
142 * ld.texinfo (Options): Fix typo in last change.
143
2d643429
NC
1442004-05-21 Andy Chittenden <achittenden@bluearc.com>
145
146 * ld.h (ld_config_type): Add new field: hash_table_size.
147 * ldmain.c: Initialise the new field to zero. If it is non-zero
148 after parsing the linker's command line call
149 bfd_hash_set_default_size.
150 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
151 (ld_options): Add hash-size.
152 (parse_args): Parse --hash-size option. Allow
153 --reduce-memory-overheads to set the default hash table size as
154 well.
155 * ld.texinfo: Document the new switch. Also mention that
156 --reduce-memory-overheads can affect the hash table size.
157 * NEWS: Mention the new feature.
158
35835446
JR
1592004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
160
161 * NEWS: Mention new linker map file generation and the
162 --reduce-memory-overheads option.
163 * ld.texinfo: Document --reduce-memory-overheads option.
164 * ld.h (map_symbol_def): New struct.
165 (struct user_section_struct, section_userdata_type): Rename to:
166 (struct lean_user_section_struct, lean_section_userdata_type).
167 (struct fat_user_section_struct, fat_section_userdata_type): New.
168 (SECTION_USERDATA_SIZE): Define.
169 (args_type): New member reduce_memory_overheads.
170 * ldlang.c (map_obstack): New static variable.
171 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
172 (lang_map): Unless command_line.reduce_memory_overheads is set,
173 initialize lists of defined symbols for each section.
174 (print_input_section): Unless command_line.reduce_memory_overheads
175 is set, use print_all_symbols.
176 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
177 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
178 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
179 (ld_options): Add entry for --reduce-memory-overheads.
180 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
181
0841712e
JJ
1822004-05-19 Jakub Jelinek <jakub@redhat.com>
183
184 * ldgram.y (sect_constraint): New.
185 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
186 (section): Add sect_constraint. Pass additional argument
187 to lang_enter_output_section_statement.
188 * mri.c (mri_draw_tree): Pass additional argument to
189 lang_enter_output_section_statement.
190 * emultempl/pe.em (place_orphan): Likewise.
191 (output_prev_sec_find): Disregard output section statements with
192 constraint == -1.
193 * emultempl/mmo.em (output_prev_sec_find): Likewise.
194 (mmo_place_orphan): Pass additional argument to
195 lang_enter_output_section_statement.
196 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
197 statements with constraint == -1.
198 (place_orphan): Pass additional argument to
199 lang_enter_output_section_statement.
200 * ldlang.c (lang_enter_overlay_section): Likewise.
201 (lang_output_section_find_1): New.
202 (lang_output_section_find): Use it.
203 (lang_output_section_statement_lookup_1): New.
204 (lang_output_section_statement_lookup): Use it.
205 (check_section_callback, check_input_sections): New.
206 (map_input_to_output_sections): Check if all input sections
207 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
208 (strip_excluded_output_sections): Disregard output section statements
209 with constraint == -1.
210 (lang_record_phdrs): Likewise.
211 (lang_enter_output_section_statement): Add constraint argument.
212 Use lang_output_section_statement_lookup_1.
213 * ldlang.h (lang_output_section_statement_type): Add constraint
214 and all_input_readonly fields.
215 (lang_enter_output_section_statement): Adjust prototype.
216 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
217 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
218 segment if all input sections are readonly.
219
eea6121a 2202004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
221
222 * scripttempl/i386lynx.sc: Remove file.
223
2a16d82a
BW
2242004-05-17 Bob Wilson <bob.wilson@acm.org>
225
226 * ld.texinfo (Output Section Address): Correct subsection name.
227
eea6121a 2282004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
229
230 * configure.tgt (powerpc-*-lynxos* case): New case.
231 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
232 * emulparams/ppclynx.sh: New file.
233 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
234 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
235 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
236 (eppclynx.c): New rule.
237 * Makefile.in: Regenerate.
238
4b363073
NC
2392004-05-13 Joel Sherrill <joel@oarcorp.com>
240
241 * configure.tgt (or32-*-rtems*): Switch to elf and
242 support versioned targets.
243
9598fbe5
NC
2442004-05-13 Nick Clifton <nickc@redhat.com>
245
246 * po/fr.po: Updated French translation.
247
8c37241b
JJ
2482004-05-11 Jakub Jelinek <jakub@redhat.com>
249
250 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
251 for binaries, -shared and -pie.
252 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
253 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
254 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
255 (OTHER_RELRO_SECTIONS): ... this.
256 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
257 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
258 -z relro and -z norelro.
259 (gld${EMULATION_NAME}_list_options): Add it to usage.
260 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
261 -z relro scripts when appropriate.
262 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
263 Create separate .got.plt section if SEPARATE_GOTPLT.
264 Move sections which are only written during relocation handling
265 to the beginning of RW segment. If NO_SMALL_DATA, move .got
266 before .data. Add DATA_SEGMENT_RELRO_END directive.
267 Include OTHER_RELRO_SECTIONS.
268 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
269 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
270 (fold_unary): Likewise.
271 (fold_binary): Handle -z relro.
272 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
273 exp_dataseg_relro_adjust phases. Add relro_end field.
274 * ldmain.c (main): Initialize link_info.relro to FALSE.
275 * ldlang.c (lang_size_sections): Handle -z relro.
276
e21059f2
MM
2772004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
278
279 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
280
5f9b8920
JR
2812004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
282
283 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
284 before printing it with %W.
285
26d2d8a2 2862004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 287 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
288
289 * emultempl/pe.em (real_flags): New static.
290 (OPTION_LARGE_ADDRESS_AWARE): New define.
291 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
292 (gld_${EMULATION_NAME}_list_options): Likewise.
293 (gld${EMULATION_NAME}_handle_option): Likewise.
294 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
295 * ld.texinfo: Document it.
296 * NEWS: Mention it.
297
1b169501
BF
2982004-05-07 Brian Ford <ford@vss.fsi.com>
299
300 * NEWS: Mention DWARF 2 support for i386pe.
301
41cf0c62
AO
3022004-05-05 Alexandre Oliva <aoliva@redhat.com>
303
304 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
305 elf32-frvfdpic.
306
d0d6a25b
AM
3072004-04-30 Alan Modra <amodra@bigpond.net.au>
308
309 * ldlang.c (unique_section_p): Pass section parm, return true on
310 group sections.
311 (output_section_callback): Adjust.
312 * ldlang.h (unique_section_p): Update prototype.
313 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
314
755306be
EB
3152004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
316
eea6121a 317 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
318 dynamic linking.
319
8a7140c3
NC
3202004-04-29 Brian Ford <ford@vss.fsi.com>
321
322 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
323 for DWARF 2/3. Update stab section's syntax.
324
2f9636ba
AM
3252004-04-29 Alan Modra <amodra@bigpond.net.au>
326
327 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
328 (fill_edata): Correct pointer arithmetic.
329
23867d67
CD
3302004-04-21 Chris Demetriou <cgd@broadcom.com>
331
332 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
333 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
334 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
335 (EXTRA_EM_FILE): Use mipsecoff.em
336 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
337 (EXTRA_EM_FILE): Use mipsecoff.em
338 * emultempl/mipsecoff.em: Restructure to be included as an
339 extra emulation file.
340 (check_sections, gld${EMULATION_NAME}_after_open)
341 (gld${EMULATION_NAME}_after_allocation)
342 (gld${EMULATION_NAME}_get_script)
343 (ld_${EMULATION_NAME}_emulation): Remove
344 (gld${EMULATION_NAME}_before_parse): Rename to...
345 (mipsecoff_before_parse): This.
346 (LDEMUL_BEFORE_PARSE): Define.
347 * emultempl/mipself.em: Remove file.
348 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
349 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
350 these symbols.
351 * Makefile.am: Remove dependencies on emultempl/mipself.em.
352 * Makefile.in: Regenerate.
353
1502569c
NC
3542004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
355
356 * ld.texinfo (synthesizing on H8/300): Information about linker
357 relaxation support for bit manipulation instructions and system
358 control instructions is added.
359
c894ddfb
HPN
3602004-04-21 Hans-Peter Nilsson <hp@axis.com>
361
362 * NEWS: Mention change in DEFINED semantics.
363
a85bf78e
EB
3642004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
365
366 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
367 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
368 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
369
58434bc1
BE
3702004-04-21 Ben Elliston <bje@au.ibm.com>
371
372 * ld.texinfo (Simple Example): Add missing punctuation.
373
7a7f4e42
CD
3742004-04-20 Chris Demetriou <cgd@broadcom.com>
375
376 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
377
3737f867
JJ
3782004-04-19 Jakub Jelinek <jakub@redhat.com>
379
380 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
381 specially.
382
3c17e4f7
DS
3832004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
384
385 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
386 with default priority. Likewise for dtors.
387
279500de
TS
3882004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
389
390 * configure.host: Remove mips*-dec-bsd* target.
391 * configure.tgt: Likewise.
392
52f89c0a
RS
3932004-04-08 Richard Sandiford <rsandifo@redhat.com>
394
395 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
396 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
397 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
398 * emultempl/irix.em: New file.
399 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
400 dependencies.
401 * Makefile.in: Regenerate.
402
e489d0ae
PB
4032004-04-01 Paul Brook <paul@codesourcery.com>
404
405 * emultempl/armelf.em (byteswap_code): Add.
406 (arm_elf_before_allocation): Pass extra parameter.
407 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
408 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
409 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
410 * emultempl/armelf_oabi.em: Pass extra parameter.
411 * ld.texinfo: Document --be8.
412
7cc8057a
SS
4132004-03-30 Stan Shebs <shebs@apple.com>
414
415 Remove long-obsolete MPW support.
416 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
417 * Makefile.am (mpw): Remove file-presynthesizing actions.
418 * Makefile.in: Likewise.
419 * ldfile.c (slash): Remove MPW case.
420 * ldlex.l [MPW]: Remove unused definition.
421
0949843d
NC
4222004-03-30 Galit Heller <Galit.Heller@nsc.com>
423
424 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
425 (eelf32cr16c.c): New target.
426 * Makefile.in: Regenerate.
427 * configure.tgt: Handle cr16c-*-elf*.
428 * emulparams/elf32cr16c.sh: New file.
429 * scripttempl/elfcr16c.sc: Likewise
430 * NEWS: Mention support for new target.
431
0a159ef8
NC
4322004-03-30 Nick Clifton <nickc@redhat.com>
433
434 * po/sv.po: Updated Swedish translation.
435
7a945db6
AM
4362004-03-27 Alan Modra <amodra@bigpond.net.au>
437
438 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
439 * emultempl/hppaelf.em: Likewise.
440 * emultempl/ppc64elf.em: Likewise.
441 * emultempl/sh64elf.em: Likewise.
442
5a580b3a
AM
4432004-03-25 Alan Modra <amodra@bigpond.net.au>
444
445 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
446 size_dynamic_sections call.
447
b9cf773d
AM
4482004-03-23 Alan Modra <amodra@bigpond.net.au>
449
450 PR 51.
451 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
452 link_info.wrap_char.
453
59c2e50f
L
4542004-03-20 H.J. Lu <hongjiu.lu@intel.com>
455
456 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
457 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
458
44349745
AO
4592004-03-20 Alexandre Oliva <aoliva@redhat.com>
460
461 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
462
81359a70
AM
4632004-03-19 Alan Modra <amodra@bigpond.net.au>
464
465 * config.in: Regenerate.
466 * po/ld.pot: Regenerate.
467
4a43e768
AM
4682004-03-18 Alan Modra <amodra@bigpond.net.au>
469
470 * ld.texinfo: Add --as-needed doco.
471 * ldmain.c (as_needed): New global var.
472 * ldmain.h (as_needed): Declare.
473 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
474 OPTION_NO_AS_NEEDED.
475 (ld_options): Likewise.
476 (parse_args): Handle them.
477 * ldlang.h (lang_input_statement_type): Add as_needed field.
478 * ldlang.c (new_afile): Set p->as_needed.
479 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
480 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
481 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
482
483 * ldlang.c (open_input_bfds): Remove useless cast.
484 (lang_do_assignments_1): Likewise.
485 (lang_for_each_input_section): Delete.
486
9183ed4b
AM
4872004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
488
489 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
490
ee31fbd0
NC
4912004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
492
493 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
494 private when building implib.
495
e5caec89
NS
4962004-03-05 Nathan Sidwell <nathan@codesourcery.com>
497
498 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
499 SEC_THREAD_LOCAL.
500 (IGNORE_SECTION): Ignore .tbss sections too.
501 (lang_size_sections_1): .tbss sections do not advance dot.
502
cc2f008e
AS
5032004-03-01 Andreas Schwab <schwab@suse.de>
504
505 * ld.texinfo (Options): Fix example for --wrap.
506
f5a95868
DS
5072004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
508
509 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
510 not NULL.
511
177b729b
ILT
5122004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
513
514 * ldlang.c (lang_check): Use %P, not %E, in error message.
515
1b493742
NS
5162004-02-23 Nathan Sidwell <nathan@codesourcery.com>
517
518 * ldlang.h (struct lang_output_section_state): Change processed
519 field's type.
520 * ldexp.c (check, invalid): Remove.
521 (fold_name): Move valid_p assignments. Create undefined symbol
522 when needed. Directly exampine section's processd flag.
523 * ldlang.c (lang_output_section_statement_lookup): Adjust
524 processed field init.
525 (lang_size_sections_1): Allow LOADADDR when determining section's
526 VMA. Adjust error message. Fold data statement's expr.
527 (lang_size_sections): Correctly increment lang_statement_iteration.
528
5292004-02-23 Alan Modra <amodra@bigpond.net.au>
530
531 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 532
876f4090
NS
5332004-02-20 Nathan Sidwell <nathan@codesourcery.com>
534
535 * ldgram.y (exp): Add two operand ALIGN.
536 * ldexp.c (fold_binary): Add ALIGN_K case.
537 * ld.texinfo (ALIGN): Document two operand version.
538
384d938f
NS
5392004-02-19 Nathan Sidwell <nathan@codesourcery.com>
540
541 * ldlang.c (map_input_to_output_sections): Initialize sections
542 mentioned in a data statement expression.
543 (lang_do_assignments_1): Add data statement's expression's
544 section's vma.
545
b6ca8815
NS
5462004-02-18 Nathan Sidwell <nathan@codesourcery.com>
547
548 * ldgram.y (statement_anywhere): Add assert rule.
549 * ldlang.c (exp_init_os): Add assert case.
550
c92c35e7
AC
5512004-02-14 Andrew Cagney <cagney@redhat.com>
552
553 * ldmain.c (remove_output): Call bfd_cache_close.
554
9bf78c99
RS
5552004-02-14 Richard Sandiford <rsandifo@redhat.com>
556
557 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
558 .MIPS.content* and .MIPS.events* sections.
559
f3806916
DJ
5602004-02-09 Daniel Jacobowitz <drow@mvista.com>
561
562 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
563 .note.gnu.arm.ident to after allocated sections. Mark its
564 address as 0.
565
4c8e70d7
DJ
5662004-02-09 Daniel Jacobowitz <drow@mvista.com>
567
568 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
569 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
570 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
571 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
572 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
573
ff71f4f7
NC
5742004-02-05 Nick Clifton <nickc@redhat.com>
575
576 * emultempl/pe.em (_after_open): Fix typo in previous delta.
577
07a68a80
NC
5782004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
579
580 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
581
1dd3bf68
AM
5822004-01-28 Alan Modra <amodra@bigpond.net.au>
583
586196d5
AM
584 * genscripts.sh: Fix typo.
585
1dd3bf68
AM
586 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
587
13d9421f
JJ
5882004-01-24 Jakub Jelinek <jakub@redhat.com>
589
590 * emulparams/elf64_ia64.sh: Put .rela.opd into
591 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
592
4d8907ac
DS
5932004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
594
595 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
596 * ld.texinfo (--omagic): Note that writable text section
597 does not conform to published PE-COFF specs.
598 (--enable-auto-import): Likewise.
599
e5c60db5
AM
6002004-01-15 Alan Modra <amodra@bigpond.net.au>
601
602 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
603
6bdafbeb
NC
6042004-01-13 Nick Clifton <nickc@redhat.com>
605
606 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
607 which if true will prevent the LMA region being used as a
608 replacement for a default VMA region.
586196d5
AM
609 (lang_leave_output_section_statement): Pass extra parameter.
610 (lang_leave_overlay): Likewise.
611 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
612 region can be set to the VMA region if no VMA has been set.
613 * ldlang.h (struct lang_output_section_phdr_list): Create a
614 typedef for this type. Minor formatting fixes.
586196d5 615
9dfc8ab2
NC
6162004-01-13 Nick Clifton <nickc@redhat.com>
617
618 * ldlang.c (lang_size_sections_1): If dot is advanced, then
619 assume that the section should be allocated.
620
8325c4dd
AM
6212004-01-13 Alan Modra <amodra@bigpond.net.au>
622
623 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
624 sections. Do ignore SEC_NEVER_LOAD sections.
625 (lang_size_sections_1): Remove test made redundant with the above.
626
83490352
AM
6272004-01-09 Alan Modra <amodra@bigpond.net.au>
628
629 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
630 program_header_size.
631
005e1118
AO
6322004-01-06 Alexandre Oliva <aoliva@redhat.com>
633
634 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
635 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
636 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
637 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
638 (MAXPAGESIZE): Set to 64Kb.
639 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
640 __ROFIXUP_END__. Don't map .rofixup.got any more.
641 * emulparams/elf32frv.sh (NOP): Set.
642 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
643 * configure.tgt: Add frv-*-*linux*.
644 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
645 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
646 (eelf32frvfd.c): New.
647 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
648 * emulparams/elf32frv.sh: Reverted previous two patches.
649 * emulparams/elf32frvfd.sh: New.
650 * Makefile.in: Rebuilt.
651 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
652 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
653 .rofixup.got to .rofixup.
654 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
655 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
656 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
657
060feee5
JJ
6582004-01-05 Jakub Jelinek <jakub@redhat.com>
659
660 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
661 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
662
5e2f1575
AM
6632004-01-03 Alan Modra <amodra@bigpond.net.au>
664
e5caa5e0
AM
665 * ldexp.c (align_n): Make static.
666 * ldexp.h (align_n): Delete declaration.
667 * ldlang.h (lang_enter_output_section_statement): Remove
668 block_value param.
669 * ldlang.c (lang_enter_output_section_statement): Likewise.
670 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 671 (opb_shift): New var.
e5caa5e0
AM
672 (init_opb): New function.
673 (print_input_section): Call init_opb and use TO_ADDR.
674 (print_data_statement, print_reloc_statement): Likewise.
675 (print_padding_statement): Likewise.
c2df3ea5 676 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
677 (lang_check_section_addresses): Likewise.
678 (lang_size_sections_1): Likewise.
679 (lang_do_assignments_1): Likewise.
680 (lang_set_startof): Likewise.
c2df3ea5 681 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 682 (lang_process): Call init_opb.
c2df3ea5 683 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
684 (lang_enter_overlay_section): Adjust
685 lang_enter_output_section_statement call.
686 * ldgram.y: Likewise.
687 * mri.c (mri_draw_tree): Likewise.
688 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
689 * emultempl/mmo.em (mmo_place_orphan): Likewise.
690 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
691
5e2f1575
AM
692 * ldfile.c (ldfile_set_output_arch): Add defarch param.
693 * ldfile.h (ldfile_set_output_arch): Ditto.
694 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
695 ldfile_set_output_arch.
696 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
697 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
698 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
699 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
700 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
701 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
702 * ldgram.y: Adjust ldfile_set_output_arch call.
703 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
704 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
705 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
706 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
707 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
708 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
709 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
710
b50c15dc
NC
7112004-01-02 Bernardo Innocenti <bernie@develer.com>
712
713 * configure.tgt: Add m68k-uClinux target.
6edf0760 714
c9e214e5 715For older changes see ChangeLog-0203
252b5132
RH
716\f
717Local Variables:
718mode: change-log
719left-margin: 8
720fill-column: 74
721version-control: never
722End:
This page took 0.326953 seconds and 4 git commands to generate.