]> Git Repo - binutils.git/blame - bfd/ChangeLog
* elf-bfd.h (enum elf_reloc_type_class): New.
[binutils.git] / bfd / ChangeLog
CommitLineData
db6751f2
JJ
12001-08-23 Jakub Jelinek <[email protected]>
2
3 * elf-bfd.h (enum elf_reloc_type_class): New.
4 (struct elf_backend_data): Add elf_backend_reloc_type_class.
5 (_bfd_elf_reloc_type_class): New.
6 * elfxx-target.h (elf_backend_reloc_type_class): Define.
7 (elfNN_bed): Add elf_backend_reloc_type_class.
8 * elf.c (_bfd_elf_reloc_type_class): New.
9 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
10 is against read-only section.
11 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
12 looking up section names for DT_TEXTREL.
13 (elf_i386_reloc_type_class): New.
14 (elf_backend_reloc_type_class): Define.
15 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
16 reloc is against read-only section.
17 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
18 looking up section names for DT_TEXTREL.
19 (elf32_sparc_reloc_type_class): New.
20 (elf_backend_reloc_type_class): Define.
21 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
22 reloc is against read-only section.
23 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
24 looking up section names for DT_TEXTREL.
25 (sparc64_elf_reloc_type_class): New.
26 (elf_backend_reloc_type_class): Define.
27 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
28 (elfNN_ia64_hash_table_create): Clear ia64_info.
29 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
30 section.
31 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
32 instead of looking up section names for DT_TEXTREL.
33 (elfNN_ia64_reloc_type_class): New.
34 (elf_backend_reloc_type_class): Define.
35 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
36 (struct elf_link_sort_rela): New.
37 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
38 (elf_bfd_final_link): Call elf_link_sort_relocs.
39 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
40 necessary.
41
7e3b3466
NC
422001-08-23 Nick Clifton <[email protected]>
43
44 * configure.in (x86-bsdi): No corefile support.
45 * configure: Regenerate.
46
26cd54bf
NC
472001-08-22 Nick Clifton <[email protected]>
48
49 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
50 comma.
51
a7bda527
DD
522001-08-21 Mark Elbrecht <[email protected]>
53
4f6fbb1a
DD
54 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
55 the alignment of dwarf2 linkonce sections to 0.
a7bda527
DD
56 * coff-sto32.c: Likewise.
57
5a65713f
AJ
582001-08-20 Andreas Jaeger <[email protected]>
59
60 * coff-sparc.c: Add missing prototypes.
61 * elf32-s390.c: Likewise.
62 * elf32-i960.c: Likewise.
63 * aout-target.h: Likewise.
64
4e89ac30
L
652001-08-20 H.J. Lu <[email protected]>
66
67 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
68 (elf_num_section_syms): New for num_section_syms.
69
70 * elf.c (elf_map_symbols): Set num_section_syms.
71 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
72 the section symbol index.
73
28db233b
NC
742001-08-20 Nick Clifton <[email protected]>
75
76 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
77 select the generic has table creator. All elf backends need elf
78 specific fields in the hash table.
79
ba3ef70e
AM
802001-08-20 Alan Modra <[email protected]>
81
82 * archive.c (offsetof): Remove define.
83 * elf.c: Likewise.
84 * oasys.c: Likewise
85 * sysdep.h (offsetof): Define.
86
c0846b23
AM
872001-08-17 Alan Modra <[email protected]>
88
89 * bfd.c (bfd_get_gp_size): Return an unsigned int.
90 (bfd_set_gp_size): Make param unsigned.
91 * bfd-in2.h: Regenerate.
92 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
93 than calling bfd_get_gp_size.
94 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
95 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
96
0ac450b6
AM
972001-08-17 Alan Modra <[email protected]>
98
99 * linker.c (default_fill_link_order): Handle four byte fill value.
100
3619ad04
AM
1012001-08-17 Alan Modra <[email protected]>
102
5d964dfa
AM
103 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
104 prototype.
105 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
106
5e572849
AM
107 * elf64-mips.c (UNUSED_RELOC): Define.
108 (mips_elf64_howto_table_rel): Use it.
109 (mips_elf64_howto_table_rela): Here too.
110 (mips_elf64_write_relocs): Fix signed/unsigned warning.
111
cea4409c
AM
112 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
113 silence warning.
114 * coffgen.c (coff_print_symbol): Fix warnings.
115 (coff_find_nearest_line): Likewise.
116 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
117 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
118 * format.c (bfd_check_format_matches): Likewise.
119 (bfd_set_format): Likewise.
120 * coff-ia64.c: Add missing prototypes.
121 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
122 signed to silence warnings.
123 (elf64_alpha_relocate_section): Likewise.
124 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
125 (elf64_alpha_add_symbol_hook): Likewise.
126 (elf64_alpha_final_link): Likewise.
127 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
128 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
129 (elf64_alpha_size_got_sections): Likewise.
130 * elfxx-ia64.c: Add missing prototypes.
131 (elfNN_ia64_relocate_section): Fix warning.
132 (elfNN_ia64_unwind_entry_compare): Make params const.
133
0ac450b6
AM
1342001-08-17 Alan Modra <[email protected]>
135
e9e69f5a
AM
136 * config.bfd (targ64_selvecs): New.
137 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
138
69263e90
AM
139 * bfd-in.h (BFD_VERSION): Remove wrong comment.
140 (BFD_DEFAULT_TARGET_SIZE): New.
141 (BFD_ARCH_SIZE): Comment.
142 * configure.in (target_size): New. Set instead of target64 in
143 selvecs case statement. Set target64 from it.
144 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
145 * bfd-in2.h: Regenerate.
146 * configure: Regenerate.
147
0ac450b6
AM
1482001-08-17 Alan Modra <[email protected]>
149
3619ad04
AM
150 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
151 (bfd_errmsgs): Add corresponding message.
152 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
153 finding an archive that contains different format object files.
154 Return bfd_error_wrong_object_format for this case.
155 * format.c: Formatting fixes. s/CONST/const/.
156 (bfd_check_format_matches): Accept archives that give
157 bfd_error_wrong_object_format if no full match is found. Tidy
158 code handling matching_vector. Don't return a pointer to freed
159 memory in `matching'. Handle ambiguous matches as for partial
160 archive matches.
161 * bfd-in2.h: Regenerate.
162
47fda0d3
AM
1632001-08-15 Alan Modra <[email protected]>
164
165 * libieee.h (common_header_type): Add last_byte field.
166
167 * ieee.c: Add missing prototypes. Some format fixes.
168 (struct output_buffer_struct): Move for availability to prototypes.
169 (ieee_part_after): New function.
170 (ieee_slurp_debug): Use it here.
171 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
172 ieee_part_after to set last_byte to one past end of current part.
173 Update callers.
174 (ieee_pos): Pass in ieee_data_struct rather than bfd.
175 Update callers.
176 (parse_expression): Don't go beyond the end of the current part.
177 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
178 (ieee_get_symtab_upper_bound, ieee_get_symtab,
179 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
180 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
181 ieee_set_section_contents, ieee_write_object_contents,
182 ieee_make_empty_symbol): Make static.
183 (ieee_archive_p): Correct comments regarding bfd_read.
184 (ieee_object_p): Similarly.
185 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
186 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
187 input_bfd, output_bfd, output_buffer.
188 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
189 do_with_relocs, ie. as a symbol for relocatable files.
190 (ieee_vec): Add comments showing functions referenced by macros.
5a65713f 191
1725a96e
NC
1922001-08-14 Nick Clifton <[email protected]>
193
194 * aout-tic30.c: Add missing prototypes. Fix formatting.
195 * aout-ns32k.c: Add missing prototypes. Fix formatting.
196 * peXXigen.c: Add missining prototypes. Fix formatting.
197 * aout-adobe.c: Add missining prototypes. Fix formatting.
198
fa645acb
NC
1992001-08-13 Nick Clifton <[email protected]>
200
201 * elf32-v850.c: Add missing function prototypes.
202 Fix some formatting.
1725a96e 203
fa645acb
NC
204 * cpu-v850.c: Add missing function prototype.
205 Fix some formatting.
206
4e771d61
NC
2072001-08-11 Nick Clifton <[email protected]>
208
209 * elf-bfd.h (struct elf_backend_data): Add new fields
210 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
211 (bfd_elf_sprintf_vma): Rename function prototype to
212 '_bfd_elf_sprintf_vma'.
213 (bfd_elf_fprintf_vma): Rename function prototype to
214 '_bfd_elf_fprintf_vma'.
215 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
216 directly, instead indirect via the elf_backend_data structure.
217 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
218 instead indirect via the elf_backend_data structure.
219 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
220 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
221 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
222 already defined.
223 (elf_backend_fprintf_vma): Initialise if not already defined.
224 (struct elf_backend_data): Initialise the
225 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
226
99c79b2e
AJ
2272001-08-10 Andreas Jaeger <[email protected]>
228
229 * elf64-sparc.c: Add missing prototypes.
230 * elf32-cris.c: Likewise.
231 * elf32-i370.c: Likewise.
232 * elf64-hppa.c: Likewise.
233 * elf64-s390.c: Likewise.
234
1e1b3bc2
AJ
2352001-08-10 Andreas Jaeger <[email protected]>
236
237 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
238 Add prototypes where needed.
239
ef071f24
L
2402001-08-10 H.J. Lu <[email protected]>
241
242 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
243 (bfd_fprintf_vma): Likewise.
244
5c36c02b
L
2452001-08-10 H.J. Lu <[email protected]>
246
247 * bfd.c (bfd_sprintf_vma): Don't return void.
248 (bfd_fprintf_vma): Likewise.
249
0218d1e4
AJ
2502001-08-10 Andreas Jaeger <[email protected]>
251
252 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
253 to build warnings.
254 * configure: Regenerate.
255
814fa6ab
AM
2562001-08-10 Alan Modra <[email protected]>
257
cc55aec9
AM
258 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
259 warning if not BFD64. Add braces so emacs auto format works.
260 (bfd_elf_fprintf_vma): Likewise.
261
814fa6ab
AM
262 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
263 of _xcoff_swap_ld*.
264 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
265 param to agree with libxcoff.h.
266 (xcoff_swap_ldhdr_out): Likewise.
267 (xcoff_swap_ldsym_in): Likewise.
268 (xcoff_swap_ldsym_out): Likewise.
269 (xcoff_swap_ldrel_in): Likewise.
270 (xcoff_swap_ldrel_out): Likewise.
271 (xcoff_create_csect_from_smclas): Likewise.
272 * coff64-rs6000.c: Add missing prototypes.
273 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
274 with libxcoff.h.
275 (xcoff64_swap_ldhdr_out): Likewise.
276 (xcoff64_swap_ldsym_in): Likewise.
277 (xcoff64_swap_ldsym_out): Likewise.
278 (xcoff64_swap_ldrel_in): Likewise.
279 (xcoff64_swap_ldrel_out): Likewise.
280 (xcoff64_ppc_relocate_section): Make static.
281 (xcoff64_slurp_armap): Likewise.
282 (xcoff64_archive_p): Likewise.
283 (xcoff64_openr_next_archived_file): Likewise.
284 (xcoff64_sizeof_headers): Likewise.
285 (xcoff64_is_lineno_count_overflow): Likewise.
286 (xcoff64_is_reloc_count_overflow): Likewise.
287 (xcoff64_loader_symbol_offset): Likewise.
288 (xcoff64_loader_reloc_offset): Likewise.
289 * elf64-gen.c: Add missing prototypes.
290
d3b05f8d
L
2912001-08-09 H.J. Lu <[email protected]>
292
293 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
294 (bfd_elf_fprintf_vma): Likewise.
295
d69bb69b
L
2962001-08-09 H.J. Lu <[email protected]>
297
298 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
299 to ...
300 * elf-bfd.h: Here.
301 * bfd-in2.h: Regenerated.
302
ae4221d7
L
3032001-08-09 H.J. Lu <[email protected]>
304
305 * bfd-in.h (bfd_sprintf_vma): New prototype.
306 (bfd_fprintf_vma): Likewise.
307 (bfd_elf_sprintf_vma): Likewise.
308 (bfd_elf_fprintf_vma): Likewise.
309 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
310 * bfd-in2.h: Regenerated.
311
312 * bfd.c (bfd_sprintf_vma): New. Defined.
313 (bfd_fprintf_vma): Likewise.
314
315 * elf.c (bfd_elf_sprintf_vma): New. Defined.
316 (bfd_elf_fprintf_vma): Likewise.
317
a7b97311
AM
3182001-08-09 Alan Modra <[email protected]>
319
320 * coff-rs6000.c: Add missing prototypes.
321 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
322 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
323 xcoff_loader_reloc_offset): Make static.
324 * dwarf1.c: Add missing prototypes.
325 * dwarf2.c: Add missing prototypes.
326 (struct abbrev_info): Move definition.
327 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
328 * elf.c: Add missing prototypes.
329 * elf32-gen.c: Likewise.
330 * elf32-i386.c: Likewise.
331 * elf32-ppc.c: Likewise.
332 (ppc_elf_sort_rela): Use PTR instead of "void *".
333 * elflink.h: Add missing prototypes. Formatting fixes.
334 * merge.c: Add missing prototypes.
335 (last4_eq): Use PTR instead of "void *".
336 (last_eq): Likewise.
337 * syms.c: Add missing prototypes.
338
55ab10f0
NC
3392001-08-09 Nick Clifton <[email protected]>
340
341 * bfd.c: Fix formatting.
342 * bfd-in2.h: Regenerate.
343
1c26dc27
NC
3442001-08-09 Nick Clifton <[email protected]>
345
346 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
347 true (this target uses REL relocations) and 'pcrel_offset' to
348 false (the PC is implied, not stored in the offset).
349
2517a57f
AM
3502001-08-08 Alan Modra <[email protected]>
351
352 1999-10-19 Linus Nordberg <[email protected]>
353 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
354 * elfxx-target.h (elf_backend_want_got_sym): Define.
355 (elfNN_bed): Add elf_backend_want_got_sym.
356 * elflink.c (_bfd_elf_create_got_section): Define
357 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
358
f2363ce5
AO
3592001-08-08 Alexandre Oliva <[email protected]>
360
361 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
362 (find_rela_addend): New function.
363 (parse_comp_unit): Call it to find the abbrev offset addend.
364 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
365 members of dwarf2_debug as debugging information is read.
366
993e9275
NC
3672001-08-07 Nick Clifton <[email protected]>
368
369 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
370 targets as well as sh-pe.
371
62efb346
NC
3722001-08-03 Ben Harris <[email protected]>
373
374 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
375 reloc from start of section when computing value for R_ARM_REL32
376 reloc.
377
8e1d4bbb
AM
3782001-08-03 Alan Modra <[email protected]>
379
380 From H.J. Lu <[email protected]>
381 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
382 keep relocs for undefined syms if there are no dynamic sections in
383 executable.
384 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
385
8ceb7a1b
CW
3862001-08-02 Paul Sokolovsky <[email protected]>
387
388 * cofflink.c (coff_link_check_ar_symbols): also search for
389 __imp__symbol as well as _symbol.
390 * linker.c (_bfd_generic_link_add_archive_symbols): also
391 search for __imp__symbol as well as _symbol.
392
00a7cdc5
NC
3932001-08-01 Adam Nemet <[email protected]>
394
395 * elf.c (elf_sort_sections): Return zero only as the last step.
396
d8adc60f
NC
3972001-08-01 Nick Clifton <[email protected]>
398
399 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
400 ARM_COFF_BUGFIX.
401 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
402 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
403 ARM_COFF_BUGFIX.
404
407c2b92
NC
4052001-07-30 Rainer Orth <[email protected]>
406
407 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
408 to match corresponding bfd_coff_backend data member.
409
8a5cc6be
AM
4102001-07-24 Alan Modra <[email protected]>
411
412 * Makefile.am: Update dependencies with "make dep-am".
413 * Makefile.in: Regenerate
414
01467f2a
L
4152001-07-15 H.J. Lu <[email protected]>
416
417 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
418 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
419 * Makefile.in: Regenerate.
420
824e2cb4
L
4212001-07-11 H.J. Lu <[email protected]>
422
423 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
424 flags when creating the reloc section if the ALLOC flag in the
425 source section is set.
426
a4bd8390
JW
4272001-07-11 Steve Ellcey <[email protected]>
428
429 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
430 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
431 * bfd-in2.h: Regenerate.
432 * libbfd.h: Regenerate.
433 * elfxx-ia64.c (ia64_howto_table): Define how to handle
434 new relocations.
435 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
436 (elfNN_ia64_check_relocs): Likewise.
437 (elfNN_ia64_install_value): Likewise.
438 (elfNN_ia64_relocate_section): Likewise.
439
20278fa3
JJ
4402001-07-11 Jakub Jelinek <[email protected]>
441
442 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
443 R_SPARC_UA64.
444 (elf32_sparc_check_relocs): Likewise.
445 Only create .rela section for alloced sections in shared libraries.
446 (elf32_sparc_relocate_section): Likewise.
447 Remove redundant check.
448 Optimize unaligned reloc usage.
449 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
450 check.
451
067a7d17
L
4522001-07-11 H.J. Lu <[email protected]>
453
454 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
455 ALLOC|LOAD flags as the source section for debugging sections
456 when creating the reloc section.
457
a78f18dc
JW
4582001-07-05 Jim Wilson <[email protected]>
459
0a2afbc1
JW
460 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
461 the section of the bigger symbol.
462
a78f18dc
JW
463 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
464
0515494a
NC
4652001-07-05 Nick Clifton <[email protected]>
466
467 * peicode.h (coff_swap_scnhdr_in): For sections containing
468 uninitialised data, only set their size to s_paddr if this does
469 not reset their size to zero. MS's latest compilers will set
470 s_paddr to zero.
471
5e7079af
L
4722001-07-04 H.J. Lu <[email protected]>
473
474 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
475 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
476 bfd_mach_mips5000.
477
440c4607
NC
4782001-07-03 Mark Elbrecht <[email protected]>
479
f47e5071
NC
480 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
481
440c4607
NC
482 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
483 sections being discarded.
484
936e320b
AM
4852001-06-30 Alan Modra <[email protected]>
486
487 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
488 instead of _bfd_elfcore_section_from_phdr.
489 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
490 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
491 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
492 (elfcore_grok_prstatus): Likewise.
493 (elfcore_grok_lwpstatus): Likewise.
494 (bfd_get_elf_phdr_upper_bound): Likewise.
495 (elfcore_make_note_pseudosection): Formatting.
496 (_bfd_elfcore_strndup): Formatting.
497 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
498 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
499
bb0082d6
AM
5002001-06-29 Daniel Jacobowitz <[email protected]>
501
502 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
503 and _bfd_elfcore_strndup.
504 (struct elf_backend_data): Add elf_backend_grok_prstatus
505 and elf_backend_grok_psinfo.
506 * elf.c (_bfd_elfcore_make_pseudosection): New function.
507 (elfcore_grok_prstatus): Use it.
508 (elfcore_make_note_pseudosection): Likewise.
509 (elfcore_strndup): Rename to...
510 (_bfd_elfcore_strndup): Here, and make global.
511 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
512 (elfcore_grok_note): Call elf_backend_grok_prstatus
513 and elf_backend_grok_psinfo if available.
514 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
515 (_bfd_elf32_mips_grok_psinfo): New function.
516 (elf_backend_grok_prstatus): Define.
517 (elf_backend_grok_psinfo): Define.
518 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
519 (elf_backend_grok_psinfo): Likewise.
520 (elfNN_bed): Include elf_backend_grok_prstatus and
521 elf_backend_grok_psinfo.
522
b64977c5
L
5232001-06-29 H.J. Lu <[email protected]>
524
525 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
8e1d4bbb 526 hplink->sgot is NULL before filling GOT. Check if hplink->splt
b64977c5
L
527 is NULL before filling PLT.
528
e45bf863
AM
5292001-06-29 Alan Modra <[email protected]>
530
531 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
532
5a15f56f
AM
5332001-06-27 Alan Modra <[email protected]>
534
446f2863
AM
535 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
536 here..
537 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
538 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
539 after gc has run.
540
541 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
542 (IS_ABSOLUTE_RELOC): Define.
543 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
544 (hppa_link_hash_newfunc): Always init it.
545 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
546 create COPY relocs only when the reloc is in a read-only section.
547 Instead, allocate space for a dynamic reloc to reference the
548 library symbol directly. Keep track of space we allocate using
549 relocs_entries.
550 (hppa_discard_copies): Delete, and move code to..
551 (allocate_plt_and_got): ..here. Rename to
552 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
553 relocs for non-shared link.
554 (elf32_hppa_size_dynamic_sections): Update calls to above.
555 (elf32_hppa_relocate_section): Write out the dynamic relocs used
556 in lieu of COPY relocs.
557
5a15f56f
AM
558 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
559 here..
560 (elf_i386_adjust_dynamic_symbol): ..nor here..
561 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
562 after gc has run.
563 (elf_i386_size_dynamic_sections): Fix a comment.
564 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
565 involved in writing reloc out.
566
866b3400
AM
5672001-06-25 Alan Modra <[email protected]>
568
28d0b90e
AM
569 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
570 Ensure syms are dynamic if we might be emitting a reloc.
571 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
572 for undefweak or undefined syms..
573 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
574
866b3400
AM
575 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
576 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
577 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
578 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
579
6cbac8b9
L
5802001-06-24 H.J. Lu <[email protected]>
581
582 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
583 strncasecmp/strcasecmp instead of strncmp/strcmp.
584
62b7d3f1
L
5852001-06-23 H.J. Lu <[email protected]>
586
866b3400
AM
587 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
588 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
62b7d3f1
L
589 in the regular object file and treat the weak definition as
590 the normal one.
591
12d0ee4a
AM
5922001-06-23 Alan Modra <[email protected]>
593
8c694914
AM
594 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
595 unresolved_reloc test to exclude cases where we use "relocation"
596 before setting it to point into the .got. Reinstate fudge for
597 unresolved relocs in debugging sections.
598
83be169b
AM
599 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
600 complicated tests for unresolvable relocs with a simple direct
601 scheme using "unresolved_reloc" var.
602
ffb2e45b
AM
603 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
604 elf_i386_dyn_relocs. Update comment.
605 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
606 dyn_relocs.
607 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
608 others to aborts.
609 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
610 abort.
611 (elf_i386_size_dynamic_sections): Likewise.
612 (elf_i386_finish_dynamic_symbol): Likewise.
613 (elf_i386_finish_dynamic_sections): Likewise.
614 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
615 handling code.
616
12d0ee4a
AM
617 Avoid creating COPY relocs if possible.
618 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
619 which .got created. Mark symbols used by R_386_32 and R_386_PC32
620 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
621 reloc is in a read-only section. Instead, allocate space for a
622 dynamic reloc to reference the library symbol directly. Keep
623 track of space we allocate using pcrel_relocs_copied.
624 (discard_copies): Delete, and move code to ..
625 (allocate_plt_and_got): ..here. Rename to
626 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
627 relocs for non-shared link.
628 (elf_i386_size_dynamic_sections): Update calls to above functions.
629 (elf_i386_relocate_section): Write out the dynamic relocs. Add
630 more ugly logic to avoid "unresolvable relocation" error. Use
631 htab shortcut in place of elf_hash_table macro.
632 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
633 not always be created now.
634
f631948d
AJ
6352001-06-20 Bo Thorsen <[email protected]>
636
637 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
638 shared libraries.
639
89084430
NC
6402001-06-18 Thiemo Seufer <[email protected]>
641
642 * configure.host (mips64-*-linux): Reformat.
643
68fb2e56
AM
6442001-06-21 Alan Modra <[email protected]>
645
646 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
647 allocate local .got space. Use shortcuts from hash table for .got
648 and .plt rather than comparing section names.
649 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
650 adjusting index into local_got_refcounts to document what we are
651 really doing.
652 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
653 Tidy .got and .plt error checking.
654
9317eacc
CM
6552001-06-20 Catherine Moore <[email protected]>
656
bb0082d6
AM
657 * elf-bfd.h (struct elf_backend_data):
658 elf_backend_emit_relocs: New field: Function for emitting
659 relocs.
660 elf_backend_count_relocs: New field: Function for determining
661 the number of relocs to be emitted.
662 * elfxx-target.h: Provide default (NULL) values for
663 elf_backend_emit_relocs and elf_backend_count_relocs.
664 * elflink.h (elf_link_size_reloc_section): Make the hash table
665 big enough to hold the relocs counted by either reloc_count or
666 o->reloc_count.
667 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
668 should be emitted, either because of a command line option
669 stored in the info structure or because the target provides a
670 special reloc emitting function.
671 If the target provides a reloc counting function use it,
672 unless performing a relocatable link or emitting all relocs.
673 Also set the SEC_RELOC flag on any output section which will
674 contain relocs.
675 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
676 should be emitted, either because of a command line option
677 stored in the info structure or because the target provides a
678 special reloc emitting function.
679 If the target provides a reloc emitting function, use it,
680 unless performing a relocatable link or emitting all relocs.
9317eacc 681
161d71a6
L
6822001-06-20 H.J. Lu <[email protected]>
683
684 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
685 allocate local .got space.
686
fd8ab9e5
AJ
6872001-06-19 Andreas Jaeger <[email protected]>
688
689 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
690 dynamic symbols.
691
99293407
HPN
6922001-06-18 Hans-Peter Nilsson <[email protected]>
693
694 * elflink.h (struct elf_assign_sym_version_info): Remove member
695 export_dynamic. All users changed to use info member.
696 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
697 export_dynamic, instead use member in parameter info.
698 * bfd-in.h (bfd_elf32_size_dynamic_sections,
699 bfd_elf64_size_dynamic_sections): Update prototype.
700 * bfd-in2.h: Regenerate.
701
bc2b6df7
L
7022001-06-18 H.J. Lu <[email protected]>
703
704 * elflink.h (elf_info_failed): Add a new field, verdefs.
705 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
706 elf_export_symbol.
707 (elf_export_symbol): Check eif->verdefs to decide if a symbol
708 should be exported.
709
43917054
L
7102001-06-17 H.J. Lu <[email protected]>
711
712 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
713 readonly_reloc, to record if a relocation in the .rel.dyn
f631948d 714 section is against a read-only section.
43917054
L
715 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
716 field to false.
717 (_bfd_mips_elf_check_relocs): Record if there is a relocation
718 in the .rel.dyn section against a read-only section by setting
719 DF_TEXTREL or readonly_reloc.
720 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
721 it is true.
722 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
723 there is a relocation in the .rel.dyn section against a
724 read-only section.
725 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
726 DF_TEXTREL is set.
727
7c8ca0e4
NC
7282001-06-12 Nick Clifton <[email protected]>
729
730 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
731 function. Move flagword result into parameter list. Remove
732 comment about setting bfd_error_handler to intercept failure
733 results.
bb0082d6 734 * coffgen.c (make_a_section_from_file): Examine result of
7c8ca0e4
NC
735 calling bfd_coff_styp_to_sec_flags and pass a failure back to
736 caller.
bb0082d6 737 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
7c8ca0e4 738 function. Move flagword result into parameter list.
bb0082d6
AM
739 * libcoff.h: Regenerate.
740 * libecoff.h: Regenerate.
7c8ca0e4 741
dee0a8f4
NC
7422001-06-13 Nick Clifton <[email protected]>
743
744 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
745 section is going to follow it.
746
0d1ea5c0
CM
7472001-06-12 Catherine Moore <[email protected]>
748
bb0082d6
AM
749 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
750 with the file_align entry from elf_backend_data.
751 (elf_gc_smash_unused_vtentry_relocs): Likewise.
752 (elf_gc_record_vtentry): Likewise.
0d1ea5c0 753
4e8a9624
AM
7542001-06-10 Alan Modra <[email protected]>
755
756 * elflink.h: Whitespace changes.
757 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
758 rather than "unsigned char".
759 (elf_link_output_relocs): Likewise.
760 (elf_link_input_bfd): Likewise.
761 (elf_reloc_link_order): LIkewise.
762 * elf.c: s/CONST/const/. Whitespace changes.
763 * elf32-mips.c: Formatting fix.
764
765 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
766 * Makefile.in: Regenerate.
767 * po/Make-in: Remove trailing tab.
768
7a25cd3e
PB
7692001-06-09 Philip Blundell <[email protected]>
770
771 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
772 change.
773 (elf32_arm_plt_entry): Likewise.
774
3f5a136d
L
7752001-06-08 H.J. Lu <[email protected]>
776
777 * elf.c (swap_out_syms): Keep names for global section symbols.
778
d8fe1fed
L
7792001-06-07 H.J. Lu <[email protected]>
780
781 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
782 MIPS-based machines need it.
783
c36e006f
L
7842001-06-07 H.J. Lu <[email protected]>
785
786 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
787 for SGI only.
788
789 * config.bfd: Remove ecoff from Linux/mips.
790
cc78d0af
AJ
7912001-06-07 Andreas Jaeger <[email protected]>
792
793 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
794 assertion.
795 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
796 alignment of 8 for .rela sections; handle further relocations.
797
879db8be
NC
7982001-06-06 Christian Groessler <[email protected]>
799
bb0082d6 800 * coff-z8k.c: Fix formatting.
879db8be
NC
801 Fix howtos: howto->size was always 1.
802
cbb1fd50
NC
8032001-06-05 Thiemo Seufer <[email protected]>
804
805 * configure.host (mips64*-*-linux*): Define.
806
73a74a62
AM
8072001-06-05 Alan Modra <[email protected]>
808
6725bdbf
AM
809 * elf32-i386.c (elf_i386_discard_copies): Rename to
810 discard_copies, and use elf_link_hash_entry arg rather than
811 elf_i386_link_hash_entry.
812 (elf_i386_link_hash_traverse): Delete.
813 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
814 Tidy sizing of dynamic sections.
815 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
816 possible .plt entries.
817 (elf_i386_gc_sweep_hook): Likewise.
818 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
819 everything with plt.refcount <= 0.
820
821 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
822 .relgot space here.
823 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
4e8a9624 824 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
6725bdbf
AM
825 .rel.plt here..
826 (allocate_plt_and_got): ..instead do it all here. New function.
827 (elf_i386_size_dynamic_sections): Allocate local .got space and
828 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
829 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
830 rather than gc variety).
831 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
832 (elf_i386_relocate_section): Use it here and correct handling of
833 R_386_GOT32. Provide section and offset for "unresolvable
834 relocation" error message.
835 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
836
837 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
838 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
839 (elf_i386_link_hash_table_create): Init them.
840 (create_got_section): New function.
841 (elf_i386_create_dynamic_sections): New function.
842 (elf_backend_create_dynamic_sections): Set to above.
843 (elf_i386_check_relocs): Use shortcuts from hash table rather than
844 calling bfd_get_section_by_name.
845 (elf_i386_gc_sweep_hook): Likewise.
846 (elf_i386_adjust_dynamic_symbol): Likewise.
847 (elf_i386_size_dynamic_sections): Likewise.
848 (elf_i386_relocate_section): Likewise.
849 (elf_i386_finish_dynamic_sections): Likewise.
850
73a74a62
AM
851 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
852
24a5e751
L
8532001-06-02 H.J. Lu <[email protected]>
854
855 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
856 and ELFOSABI_HPUX.
857 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
858
15103188
L
8592001-06-02 H.J. Lu <[email protected]>
860
861 * aout-cris.c (MACHTYPE_OK): New. Defined.
862
2f484710
HPN
8632001-06-02 Hans-Peter Nilsson <[email protected]>
864
865 * section.c (_bfd_strip_section_from_output): Handle NULL
866 output_section.
867
a5ac692b
L
8682001-06-02 H.J. Lu <[email protected]>
869
870 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
871 rs6000coff64_vec only if BFD64 is defined.
872 (powerpc64-*-aix*): Enable only if BFD64 is defined.
873
27e53099
L
8742001-06-02 H.J. Lu <[email protected]>
875
876 * coff-ia64.c (ia64coff_object_p): Rewrite with
877 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
878
80643fbc
AJ
8792001-06-01 Andreas Jaeger <[email protected]>
880
881 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
882 relocation, small reformatting.
883
6b3db546
AJ
8842001-05-29 Andreas Jaeger <[email protected]>
885
886 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
887 (elf64_x86_64_relocate_section): Likewise.
888
4dc86686
AM
8892001-05-30 Alan Modra <[email protected]>
890
891 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
892 millicode. Don't allocate .got and .rela.got space here..
893 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
894 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
895 .rela.plt here..
896 (hppa_handle_PIC_calls): ..nor here..
897 (allocate_plt_and_got): ..instead do it all here. New function.
898 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
899 call allocate_plt_and_got. No need to zap .got if not dynamic.
900 (elf32_hppa_final_link): Call regular bfd_final_link instead of
901 gc_common_final_link.
902 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
903 (elf32_hppa_relocate_section): Use it here.
904 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
905 dynamic_sections_created.
906 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
907
de41dcd8
AJ
9082001-05-28 Andreas Jaeger <[email protected]>
909
910 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
911 generic version since we want a hashsize of 4.
912 (elf_backend_size_info): Likewise.
913
209f668e
NC
9142001-05-28 Thiemo Seufer <[email protected]>
915
209f668e
NC
916 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
917 a zeroing loop.
918 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
919 (elf_link_input_bfd): Likewise.
920 (elf_reloc_link_order): Likewise.
921 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
922 relocations correctly.
923
f7a74f8c
NC
9242001-05-28 Nicolas Pitre <[email protected]>
925
926 * elf32-arm.h: fix PLT generation for big endian ARM
927
8dea1268
AM
9282001-05-28 Alan Modra <[email protected]>
929
930 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
931 for symbols forced local that need plabels.
932 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
933 .plt.rela for local syms if non-shared.
934 (hppa_build_one_stub): Mask lsb of plt.offset.
935 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
936 (clobber_millicode_symbols): Correct comment.
937 (elf32_hppa_relocate_section): Likewise.
938 (elf32_hppa_finish_dynamic_symbol): Likewise.
939
0f2712ed
NC
9402001-05-28 Jeff Sturm <[email protected]>
941
942 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
943 * bfd-in2.h: Regenerate.
944 * libbfd.h: Regenerate.
945 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
946 and BFD_RELOC_SPARC_UA64 mapping
947 * elf64-sparc.c: Likewise.
de41dcd8 948
6768c14a
L
9492001-05-25 H.J. Lu <[email protected]>
950
951 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
952 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
953 (coff-rs6000.lo): Remove the old dependency.
954 * Makefile.in: Rebuild.
955
956 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
957 coff-rs6000.lo.
958
b55039f4
L
9592001-05-25 H.J. Lu <[email protected]>
960
961 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
962 rs6000coff_core_file_matches_executable_p,
963 rs6000coff_core_file_failing_command and
964 rs6000coff_core_file_failing_signal only if AIX_CORE is
965 defined.
966 (pmac_xcoff_vec): Likewise.
967 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
968
64e9ece0
TW
9692001-05-25 Timothy Wall <[email protected]>
970
971 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
972 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
973
f34d8777
L
9742001-05-25 H.J. Lu <[email protected]>
975
976 * bfd-in2.h: Regenerated.
977 * libcoff.h: Likewise.
978
49e9d0d3
AM
9792001-05-25 Alan Modra <[email protected]>
980
981 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
982 undefined millicode syms in shared libs.
983 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
984 (elf32_hppa_check_relocs): Likewise.
985 (elf32_hppa_adjust_dynamic_symbol): Likewise.
986 (elf32_hppa_size_dynamic_sections): Likewise.
987 (elf32_hppa_relocate_section): Likewise.
988 (elf32_hppa_finish_dynamic_symbol): Likewise.
989 (elf32_hppa_finish_dynamic_sections): Likewise.
990
beb1bf64
TR
9912001-05-24 Tom Rix <[email protected]>
992
bb0082d6 993 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
beb1bf64
TR
994 xcoff-target.h not used to define rs6000 or ppc bfd.
995 * Makefile.in same
996
997 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
998 to 64 bit.
999
1000 * coff-rs6000.c : Many changes for 64 bit support. Move common
1001 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
1002 and pmac_xcoff_vec
1003
1004 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
1005 linker now supported. Explictly define the rs6000coff64_vec.
1006
1007 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
de41dcd8 1008 (coff_print_aux) same
beb1bf64
TR
1009 (coff_write_object_contents) same
1010 (coff_slurp_line_table) same
1011
1012 * coffgen.c : (coff_fix_symbol_name) formatting
1013 (coff_mangle_symbols) xcoff 64 bit support
1014 (coff_write_symbol) same
1015 (coff_write_alien_symbol) same
1016 (coff_write_native_symbol) same
1017 (coff_write_symbols) same
1018 (coff_get_symbol_info) same
1019 (bfd_coff_get_syment) same
1020 (coff_print_symbol) same
1021
1022 * config.bfd : add powerpc64-*-aix* target
1023
1024 * libcoff-in.h : formatting
1025
1026 * libcoff.h : move xcoff extern declarations to libxcoff.h
1027
1028 * libxcoff.h : New file
1029
de41dcd8
AJ
1030 * xcofflink.c : Many changes for xcoff64 support. Move common
1031 structures to include/coff/xcoff.h. Move specific structure to
beb1bf64
TR
1032 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
1033 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
de41dcd8
AJ
1034
1035 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
beb1bf64
TR
1036 aix4.2+ -binitfini.
1037
1038 (xcoff_build_ldsyms) : handle special __rtinit symbol.
1039
e90fdc1a
AO
10402001-05-23 Alexandre Oliva <[email protected]>
1041
1042 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
1043 s/ENTIRES/ENTRIES/.
1044
d1cf510e
NC
10452001-05-23 Thiemo Seufer <[email protected]>
1046
c2feb664
NC
1047 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
1048 * libbfd.h: Regenerate.
4e8a9624 1049 * bfd-in2.h: Regenerate.
c2feb664 1050
d1cf510e
NC
1051 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
1052 * archures.c (bfd_mach_mips12000): Define.
1053 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
1054 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
1055 support.
1056 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
1057 * bfd-in2.h: Regenerate.
1058 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
1059
6c426cf3
NC
10602001-05-23 kaz Kojima <[email protected]>
1061
1062 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
1063 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
1064 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
1065 that is used by GCC.
1066
d9bc7a44
NC
10672001-05-23 Nick Clifton <[email protected]>
1068
1069 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
1070 of entries in a structured section.
bb0082d6
AM
1071 * elf.c: Use new macro.
1072 * elf32-i386.c: Use new macro.
1073 * elf32-mips.c: Use new macro.
1074 * elf64-alpha.c: Use new macro.
1075 * elf64-sparc.c: Use new macro.
1076 * elfcode.h: Use new macro.
1077 * elflink.h: Use new macro.
d9bc7a44
NC
1078
10792001-05-23 Nick Clifton <[email protected]>
1080
1081 * bfdint.texi: Replace -oformat with --oformat.
1082
f5198f61
AJ
10832001-05-21 Andreas Jaeger <[email protected]>
1084
1085 * dwarf2.c (decode_line_info): Fix error message.
1086 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
1087 adjust error message.
1088
7913c838
L
10892001-05-18 H.J. Lu <[email protected]>
1090
1091 * elflink.h (elf_link_add_object_symbols): Revert the last
1092 change.
1093
e0522e89
AM
10942001-05-17 Alan Modra <[email protected]>
1095
1096 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
1097 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
1098 (hppa_build_one_stub): Add an assert to check plt.offset.
1099
96fd004e
L
11002001-05-17 H.J. Lu <[email protected]>
1101
1102 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
1103 version definition to basename of the output filename.
1104
f3876d8b
L
11052001-05-17 H.J. Lu <[email protected]>
1106
1107 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
1108 basename of the bfd filename.
1109
d1778b88
AM
11102001-05-16 Alan Modra <[email protected]>
1111
1112 * section.c (asection): Add linker_has_input field.
1113 (STD_SECTION): Adjust initialization to suit.
1114 * ecoff.c (bfd_debug_section): Likewise.
1115 * bfd-in2.h: Regenerate.
1116
2a0fa943
AO
11172001-05-15 Alexandre Oliva <[email protected]>
1118
1119 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
1120 negative 32-bit operands to 16 operands when the operand is
1121 going to be zero-extended by the modified opcode.
1122
bcee8eb8
AM
11232001-05-12 Peter Targett <[email protected]>
1124
1125 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
1126 name for 'arc5' core versions.
1127 (bfd_arc_arch): Make bfd_mach_arc_6 default.
1128
1129 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
1130 architecture.
1131 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
1132
579f31ac
JJ
11332001-05-11 Jakub Jelinek <[email protected]>
1134
1135 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
1136 sections as well.
1137 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
1138 to .gnu.linkonce.t.FOO text section.
1139
8550eb6e
JJ
11402001-05-11 Jakub Jelinek <[email protected]>
1141
1142 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
1143 fields, change sec into secinfo.
1144 (struct sec_merge_info): Add chain, remove last fields.
1145 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
1146 (sec_merge_hash_lookup): If lookup could not use a string only
1147 because it has bad alignment, mark the old string for deletion.
1148 (sec_merge_add): Add secinfo argument. Don't compute entry's
1149 position, instead record the section.
1150 (sec_merge_emit): Update for the sec into secinfo change in
1151 struct sec_merge_hash_entry.
1152 (_bfd_merge_section): Only record the section for merging, defer
1153 putting strings into the hash table.
1154 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
1155 _bfd_merge_sections): New functions.
1156 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
1157 changes.
1158 * libbfd-in.h (_bfd_merge_sections): Add prototype.
1159 (_bfd_nolink_bfd_merge_sections): Define.
1160 * libbfd.h: Likewise.
1161 (bfd_generic_merge_sections): Add prototype.
1162 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
1163 (struct bfd_target): Likewise.
1164 * bfd.c (bfd_merge_sections): Define.
1165 * bfd-in2.h: Rebuilt.
1166 * elf.c (_bfd_elf_merge_sections): New function.
1167 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
1168 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
1169 * reloc.c (bfd_generic_merge_sections): New function.
1170 * vms.c (vms_bfd_merge_sections): New function.
1171 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
1172 * aout-target.h (MY_bfd_merge_sections): Define.
1173 * aout-tic30.c (MY_bfd_merge_sections): Define.
1174 * binary.c (binary_bfd_merge_sections): Define.
1175 * bout.c (b_out_bfd_merge_sections): Define.
1176 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
1177 * coffcode.c (coff_bfd_merge_sections): Define.
1178 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
1179 * i386msdos.c (msdos_bfd_merge_sections): Define.
1180 * i386os9k.c (os9k_bfd_merge_sections): Define.
1181 * ieee.c (ieee_bfd_merge_sections): Define.
1182 * ihex.c (ihex_bfd_merge_sections): Define.
1183 * nlm-target.h (nlm_bfd_merge_sections): Define.
1184 * oasys.c (oasys_bfd_merge_sections): Define.
1185 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
1186 * som.c (som_bfd_merge_sections): Define.
1187 * srec.c (srec_bfd_merge_sections): Define.
1188 * tekhex.c (tekhex_bfd_merge_sections): Define.
1189 * versados.c (versados_bfd_merge_sections): Define.
1190 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
1191
1548c54f
NC
11922001-05-11 Nick Clifton <[email protected]>
1193
1194 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
1195 to be unsigned long, in order to match its use.
1196
689effed
L
11972001-05-10 H.J. Lu <[email protected]>
1198
1199 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
1200 indirect symbols.
1201
6e5222be
L
12022001-05-09 H.J. Lu <[email protected]>
1203
1204 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
1205 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
1206 Remove the unused veriable `dynver'.
1207
8e191bd3
ILT
12082001-05-08 Ian Lance Taylor <[email protected]>
1209
1210 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
1211 NULL or is not COFF.
1212 (coff_i386_rtype_to_howto): Don't dump core if output section
1213 owner is not COFF.
1214
062e2358
AM
12152001-05-07 Thiemo Seufer <[email protected]>
1216
1217 * ecoff.c (bfd_debug_section): Fix initialization.
1218 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
1219 is always a positive integer. Cast away sign mismatch.
1220 * elf32-mips.c: Fix misleading comment and typo.
1221 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
1222 correct data type.
1223 * elflink.c: Fix typo.
1224 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
1225 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
1226
16b65e4e
RH
12272001-05-04 Richard Henderson <[email protected]>
1228
1229 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
1230
cac15327
NC
12312001-05-04 Nick Clifton <[email protected]>
1232
1233 * elf32-arm.h (elf32_arm_final_link_relocate): Set
bb0082d6 1234 EF_ARM_HASENTRY if the start address is set.
cac15327 1235
966b3e0b
NC
12362001-05-03 Nick Clifton <[email protected]>
1237
1238 * targets.c (_bfd_target_vector_entries): Compute value based on
1239 the size of the _bfd_target_vector and not bfd_target_vector.
1240
210ba1e8
L
12412001-05-03 H.J. Lu <[email protected]>
1242
1243 * elfcode.h: Include "libiberty.h".
1244
1245 * elflink.h (elf_link_add_object_symbols): Set
1246 elf_dt_name (abfd) to basename of the bfd filename.
1247 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
1248 of the bfd filename.
1249
56fc028e
AJ
12502001-05-03 Andreas Jaeger <[email protected]>
1251
1252 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
1253 (elf_generic_info_to_howto_rel): Likewise.
1254 * coff-alpha.c (reloc_nil): Likewise.
1255 (alpha_ecoff_bad_format_hook): Likewise.
1256 (alpha_adjust_reloc_out): Likewise.
1257 (alpha_bfd_reloc_type_lookup): Likewise.
1258 (alpha_convert_external_reloc): Likewise.
1259 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
1260 (elf64_alpha_reloc_bad): Likewise.
1261 (elf64_alpha_reloc_gpdisp): Likewise.
1262 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
1263 (elf64_alpha_info_to_howto): Likewise.
1264 (elf64_alpha_add_symbol_hook): Likewise.
1265 (elf64_alpha_create_got_section): Likewise.
1266 (elf64_alpha_is_local_label_name): Likewise.
1267 (elf64_alpha_merge_ind_symbols): Likewise.
1268 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
1269 (mips_elf64_get_reloc_upper_bound): Likewise.
1270 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
1271 (nlm_alpha_get_public_offset): Likewise.
1272
c7e40348
NC
12732001-05-02 Johan Rydberg <[email protected]>
1274
bb0082d6 1275 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
c7e40348 1276 about overflow in R_OPENRISC_LO_16_IN_INSN and
56fc028e 1277 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
c7e40348 1278
5fba655a
L
12792001-04-30 H.J. Lu <[email protected]>
1280
1281 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
1282 only for ELF_LINK_FORCED_LOCAL.
1283 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1284 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
1285 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1286
1287 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
1288 if the symbol has hidden or internal visibility.
1289
db20fd76
AM
12902001-04-30 Alan Modra <[email protected]>
1291
1292 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
1293 calls to undefined weak symbols.
1294
6a2bda3f
AJ
12952001-04-30 Andreas Jaeger <[email protected]>, Andreas Schwab <[email protected]>
1296
1297 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
1298 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
1299
053579d7
AJ
13002001-04-27 Andreas Jaeger <[email protected]>
1301
1302 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
1303 out handled entries.
1304 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
1305 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
1306 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
1307 GOT32.
1308
87748b32
NC
13092001-04-27 Sean McNeil <[email protected]>
1310
1311 * config.bfd: Add arm-vxworks target.
1312 * coff-arm (coff_arm_relocate_section): Add in symbol value to
1313 addend (fro VXworks targets).
1314
f5f31454
L
13152001-04-26 H.J. Lu <[email protected]>
1316
1317 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
1318 valid.
1319
d436a9b3
FCE
13202001-04-25 Frank Ch. Eigler <[email protected]>
1321
1322 * bfd-in.h (bfd_cache_close): Declare newly exported function.
1323 * bfd-in2.h: Regenerated.
1324
a531bbd2
JJ
13252001-04-24 Jakub Jelinek <[email protected]>
1326
1327 * merge.c (struct sec_merge_hash_entry): Add alignment field.
1328 (struct sec_merge_hash): Remove alignment_power.
1329 (sec_merge_hash_newfunc): Clear alignment.
1330 (sec_merge_hash_lookup): Pass alignment as argument.
1331 Use hashp->root.next, not hashp->next to walk the hash chain.
1332 If a string already in the hashtable does not have required
1333 alignment, create a new hashtable entry.
1334 (sec_merge_init): Remove alignment_power argument.
1335 (sec_merge_add): Add alignment argument.
1336 (sec_merge_emit): Alignment is now a per-entity thing, not per
1337 section.
1338 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
1339 for proper alignment.
1340 Pass alignment information to sec_merge_add.
1341
6840198f
NC
13422001-04-24 Christian Groessler <[email protected]>
1343
1344 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
1345 and R_REL16 reloc types; accept odd values for R_REL16 type
1346
b3baf5d0
NC
13472001-04-24 Johan Rydberg <[email protected]>
1348
1349 * cpu-openrisc.c: New file.
1350 * elf32-openrisc.c: Likewise.
1351
1352 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
1353 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
1354 (BFD32_BACKENDS): Add elf32-openrisc.lo.
1355 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
1356 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
1357 * Makefile.in: Regenerated.
1358 * config.bfd: (openrisc-*-elf): New target.
053579d7 1359 * configure.in (bfd_elf32_openrisc_vec): New vector.
b3baf5d0
NC
1360 * configure: Regenerated.
1361 * libbfd.h: Regenerated.
1362 * bfd-in2.h: Regenerated.
1363 * reloc.c: Add OpenRISC relocations.
053579d7 1364 * targets.c (bfd_elf32_openrisc_vec): Declare.
b3baf5d0
NC
1365 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
1366 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
1367 (bfd_openrisc_arch): Declare.
1368 (bfd_archures_list): Add bfd_openrisc_arch.
1369 * elf.c (prep_headers): Add bfd_arch_openrisc.
1370
fe4770f4
AJ
13712001-04-23 Bo Thorsen <[email protected]>
1372
1373 * elf64-x86-64.c: Add c++ vtable hack.
1374 Small whitespace and comment changes.
1375
653165cc
AJ
13762001-04-19 Andreas Jaeger <[email protected]>
1377
1378 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
1379 (elf64_x86_64_plt_entry): Likewise.
1380 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
1381 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
1382
4d96d128
HPN
13832001-04-17 Hans-Peter Nilsson <[email protected]>
1384
1385 * elf32-cris.c: Tweak comments related to dynamic linking.
1386 (cris_elf_relocate_section): When not creating shared object, fill
1387 in the .got table for any symbol not in the dynamic symbol table.
1388 (elf_cris_finish_dynamic_symbol): When not creating shared object,
1389 only emit a .got.rela reloc if the symbol is in the dynamic symbol
1390 table.
1391 (cris_elf_check_relocs): Use variable r_type in all places rather
1392 than the original expression. Add default case in switch for
1393 reloc types.
1394 (elf_cris_size_dynamic_sections): Iterate over
1395 elf_cris_discard_excess_program_dynamics when not creating shared
1396 library.
653165cc 1397 (elf_cris_discard_excess_dso_dynamics): Renamed from
4d96d128
HPN
1398 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
1399 (elf_cris_discard_excess_program_dynamics): New.
1400
3ed30d29
DD
14012001-04-14 Mark Elbrecht <[email protected]>
1402
1403 * coffcode.h (coff_write_object_contents): Use
1404 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
1405
a80f6941
L
14062001-04-14 H.J. Lu <[email protected]>
1407
1408 * bfd-in2.h: Regenerate.
1409
767e4b0d
JJ
14102001-04-14 Jakub Jelinek <[email protected]>
1411
1412 * section.c (STD_SECTION): Add entsize.
1413
2dd439c5
L
14142001-04-13 H.J. Lu <[email protected]>
1415
1416 * section.c (SEC_MERGE): Define new flag for merging.
1417 (SEC_STRINGS): Likewise.
1418 (entsize): New field.
1419
baf80c32
DD
14202001-04-13 Roger Sayle <[email protected]>
1421
1422 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
1423 flag on pe-i386 targets.
1424
f5fa8ca2
JJ
14252001-04-13 Jakub Jelinek <[email protected]>
1426
1427 * libbfd-in.h (_bfd_merge_section): New.
1428 (_bfd_write_merged_section): New.
1429 (_bfd_merged_section_offset): New.
1430 * libbfd.h: Rebuilt.
1431 * linker.c (_bfd_generic_link_output_symbols): Handle
1432 discard_sec_merge.
1433 * aoutx.h (aout_link_write_symbols): Likewise.
1434 * pdp11.c (aout_link_write_symbols): Likewise.
1435 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
1436 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
1437 sections.
1438 (elf_link_sec_merge_syms): New.
1439 (elf_link_input_bfd): Call _bfd_merged_section_offset
1440 and _bfd_write_merged_section.
1441 Handle discard_sec_merge.
1442 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
1443 field.
1444 (struct bfd_elf_section_data): Likewise.
1445 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
1446 SEC_STRINGS section flags and entsize from their ELF counterparts.
1447 (_bfd_elf_link_hash_table_init): Initialize merge_info.
1448 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
1449 from their BFD counterparts.
1450 * merge.c: New file.
1451 * Makefile.am: Add strtab.lo.
1452 * Makefile.in: Rebuilt.
1453
d954b040
HPN
14542001-04-09 Hans-Peter Nilsson <[email protected]>
1455
1456 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1457 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1458
fdbafa10
L
14592001-04-05 Steven J. Hill <[email protected]>
1460
1461 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1462 endian MIPS ELF target.
1463 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1464 MIPS ELF target.
1465
1466 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1467 64bit big endian MIPS ELF target.
653165cc 1468 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
fdbafa10
L
1469 endian MIPS ELF target.
1470 * configure: Regenerated.
1471
1472 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1473 little endian targets.
1474 (mips_elf_sym_is_global): Handle traditional targets.
1475
1476 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
1477 64bit big endian MIPS ELF target.
1478 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1479 endian MIPS ELF target.
1480
1481 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
1482 and bfd_elf64_tradlittlemips_vec.
1483
dd484e5c
L
14842001-04-05 David Mosberger <[email protected]>
1485
1486 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1487 ordinary "progbits" section.
1488
391a809a
AM
14892001-04-04 Alan Modra <[email protected]>
1490
1491 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1492 when -Bsymbolic causes a symbol to no longer need a .plt entry.
1493
5854c633
L
14942001-04-03 David Mosberger <[email protected]>
1495
1496 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1497
8b4b0fac
L
14982001-03-30 H.J. Lu <[email protected]>
1499
1500 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1501 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1502
eb4a6e4f
L
15032001-03-26 H.J. Lu <[email protected]>
1504
1505 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1506 if there are any relocations for generic ELF.
1507 (bfd_elf32_bfd_link_add_symbols): Defined to
1508 elf32_generic_link_add_symbols.
1509 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1510 if there are any relocations for generic ELF.
1511 (bfd_elf64_bfd_link_add_symbols): Defined to
1512 elf64_generic_link_add_symbols.
1513
55c80943
NC
15142001-03-23 Nick Clifton <[email protected]>
1515
1516 * Makefile.am (BUILD_CFILES): New variable: List of C source
bb0082d6
AM
1517 files created in build directory.
1518 (BUILD_HFILES): New variable: List of header files created in
1519 build directory.
1520 (POTFILES): Delete.
1521 (po/POTFILES.in): Replace rule with empty entry.
1522 (po/SRC-POTFILES.in): New rule: Create a list of source files
1523 in the source directory.
1524 (po/BLD-POTFILES.in): New rule: Create a list of source files
1525 in the build directory.
1526 (MOSTLYCLEAN): Do not delete source files created in build
1527 directory.
1528 * Makefile.in: Regenerate.
1529 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1530 into po/Makefile.
1531 * configure: Regenerate.
1532
1533 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1534 and BLD_POTFILES.
55c80943 1535 Add .. to the search path when building bfd.pot.
bb0082d6
AM
1536 Delete POTFILES when performing distclean.
1537 Add comment describing why distclean is broken in maintainer mode.
55c80943
NC
1538 * po/POTFILES.in: Delete.
1539 * po/SRC-POTFILES.in: New file.
1540 * po/BLD-POTFILES.in: New file.
bb0082d6 1541 * po/bfd.pot: Regenerate.
55c80943 1542
58d29fc3
HPN
15432001-03-22 Hans-Peter Nilsson <[email protected]>
1544
915e5146
HPN
1545 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
1546 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1547 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1548 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1549 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1550 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1551 functions.
1552 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1553 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
1554 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1555 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1556 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1557 New HOWTO members for new relocs.
1558 (cris_reloc_map): Map new relocs.
1559 (ELF_DYNAMIC_INTERPRETER): Define.
1560 (PLT_ENTRY_SIZE): Define.
1561 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1562 elf_cris_pic_plt_entry): New, PLT templates.
1563 (struct elf_cris_pcrel_relocs_copied, struct
1564 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1565 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1566 (cris_final_link_relocate): Check that 16-bit GOT relocs have
1567 positive values. Adjust PCREL relocs to be relative to location
1568 after relocation.
1569 (cris_elf_relocate_section): Handle relocations to dynamic
1570 objects. Handle new relocations. Call error handler when seeing
1571 non-PIC relocation for read-only sections while generating shared
1572 object.
1573 (cris_elf_check_relocs): Set reference counts for GOT and PLT
1574 entries.
1575 (bfd_elf32_bfd_link_hash_table_create,
1576 elf_backend_adjust_dynamic_symbol,
1577 elf_backend_size_dynamic_sections,
1578 elf_backend_finish_dynamic_symbol,
1579 elf_backend_finish_dynamic_sections,
1580 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1581 elf_backend_hide_symbol, elf_backend_want_got_plt,
1582 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1583 elf_backend_got_header_size, elf_backend_plt_header_size):
1584 Define.
1585
58d29fc3
HPN
1586 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1587 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1588 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1589 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1590 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1591 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1592 * bfd-in2.h, libbfd.h: Regenerate.
1593
7a65545d
DN
15942001-03-21 Diego Novillo <[email protected]>
1595
1596 (_bfd_mips_elf_relocate_section): Give a better error message when
1597 a relocation is not recognized.
1598
b32b5d6e
AM
15992001-03-21 Alan Modra <[email protected]>
1600
1601 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1602 non-NULL before attempting to dereference.
1603
f4fbb4a3
L
16042001-03-20 H.J. Lu <[email protected]>
1605
1606 * configure.in: Remove the redundent AC_ARG_PROGRAM.
1607 * configure: Rebuild.
1608
95fc45e6
AS
16092001-03-20 Andreas Schwab <[email protected]>
1610
1611 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1612 relocation value when resolving a reference from a debugging
1613 section.
1614
03d411a9
NC
16152001-03-16 Scott Thomason <[email protected]>
1616
1617 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1618 (xcoff64_swap_sym_out): Fix syntax errors.
1619
d1659392
NC
16202001-03-16 Richard Sandiford <[email protected]>
1621
1622 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1623
12cca0d2
AM
16242001-03-15 Alan Modra <[email protected]>
1625
1626 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1627 (hppa_link_hash_newfunc): Init it.
1628 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1629 section appears to be non-PIC.
1630 (final_link_relocate): Likewise.
1631 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1632 possible candidate function, and set pic_call for those that will
1633 only have a .plt entry for the PIC call stub.
1634 (hppa_handle_PIC_calls): Set maybe_pic_call.
1635
cd6ec716
DD
16362001-03-12 DJ Delorie <[email protected]>
1637
1638 * elf32-sh.c (sh_elf_relocate_section): Only relocation
1639 R_SH_DIR8WP* relocs if they're against external symbols, else
1640 they're just for relaxing. Validate the reloc values.
1641
43a0748c
NC
16422001-03-12 Stefan Geuken <[email protected]>
1643
1644 * binary.c (bfd_external_binary_architecture): Declare.
1645 (binary_object_p): If bfd_external_binary_architecture is defined,
1646 set the architecture to this string.
1647
d982ba73
PB
16482001-03-11 Philip Blundell <[email protected]>
1649
1650 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1651 entries that could serve as a definition for a weak symbol.
1652
7898deda
NC
16532001-03-08 Nick Clifton <[email protected]>
1654
1655 * Most files: Update copyright notices using Perl script created
1656 by Kevin Buettner <[email protected]>.
653165cc 1657
df425bc0
NC
16582001-03-07 Nick Clifton <[email protected]>
1659
1660 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1661 prior patch on ! defined OLD_ARM_ABI.
1662
bcdd92f3
AJ
16632001-03-07 Andreas Jaeger <[email protected]>
1664
1665 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1666 some relocation values.
1667
4f3c3dbb
NC
16682001-03-06 Nick Clifton <[email protected]>
1669
1670 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1671 of offset in BLX(1) instruction.
1672 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1673 offset in BLX(1) instruction.
bb0082d6 1674 Fix formatting.
4f3c3dbb 1675
f8f3c6cc
NC
16762001-03-06 Nick Clifton <[email protected]>
1677
1678 * coff-arm.c (coff_arm_reloc_type_lookup): Add
1679 BFD_RELOC_THUMB_PCREL_BLX.
1680
3cac17ae
NC
16812001-03-06 Igor Shevlyakov <[email protected]>
1682
1683 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1684 * bfd-in2.h: Regenerate.
1685 * cpu-m68k.c: Add Coldfire CPUs for arch table.
1686 * ieee.c (ieee_write_processor): Set proper id for
1687 Coldfire CPUs.
1688
d1b17ab0
NC
16892001-03-01 D.J. Barrow <[email protected],[email protected]>
1690
1691 * configure.in: Add s390 target.
1692 * configure: Regenerate.
1693
5608e05b
AJ
16942001-02-28 Andreas Jaeger <[email protected]>
1695
1696 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1697 to addend.
1698
fd2ec330
PB
16992001-02-28 Philip Blundell <[email protected]>
1700
1701 * elf32-arm.h: Update mentions of renamed EF_xx constants.
5608e05b 1702 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
fd2ec330 1703
920581c5
L
17042001-02-27 H.J. Lu <[email protected]>
1705
1706 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1707 abfd->tdata.aout_data == NULL.
1708
27b7e12d
AM
17092001-02-27 Alan Modra <[email protected]>
1710
3ee1d854
AM
1711 * elf32-hppa.c: Correct field selector in stub comments.
1712 (clobber_millicode_symbols): Formatting fix.
1713
27b7e12d
AM
1714 * configure.in: Bump version to 2.11.90.
1715 * configure: Regenerate.
1716 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1717 (CFILES): $SOURCE_CFILES + generated C files.
1718 (POTFILES): Include $HFILES not $SOURCE_HFILES.
1719 Run "make dep-am"
1720 * Makefile.in: Regenerate.
1721 * doc/Makefile.in: This too.
1722
10d1e03a
TW
17232001-02-26 Timothy Wall <[email protected]>
1724
1725 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
5608e05b 1726 comments.
10d1e03a 1727
1276aefa
NC
17282001-02-26 Nick Clifton <[email protected]>
1729
1730 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1731 up, replacing multiple if statements with a switch.
bb0082d6 1732 (handle_COMDAT): New function.
1276aefa
NC
1733
17342001-02-26 H.J. Lu <[email protected]>
1735
1736 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1737 a warning for section flags we do not handle instead of
1738 aborting.
1739
4a73f21b
AJ
17402001-02-26 Andreas Jaeger <[email protected]>
1741
1742 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1743
7b6dab7f
TW
17442001-02-22 Timothy Wall <[email protected]>
1745
1746 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1747 * configure.in: Add objects for elf64_ia64_aix vectors.
1748 * configure: Regenerated.
1749 * configure.host: Recognize ia64-*-aix*.
1750 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
1751 for AIX. AIX5 requires most relocations to be dynamic (*all*
1752 binaries are somewhat similar to shared libraries).
1753 * targets.c: Add elf64_ia64_aix vectors.
4a73f21b 1754
87f8eb97
JW
17552001-02-21 David Mosberger <[email protected]>
1756
1757 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1758 C8 said "1" instead of "8". Clarify error string for IMM22:
1759 "signed integer" instead of just "integer".
1760
05aa1441
AJ
17612001-02-20 Andreas Jaeger <[email protected]>
1762
1763 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
1764 PLT entries that could serve as a definition for a weak symbol.
1765
8701c1bc
JJ
17662001-02-19 Jakub Jelinek <[email protected]>
1767
1768 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
1769 entries that could serve as a definition for a weak symbol.
1770 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
1771
d4af9775
DB
17722001-02-18 David O'Brien <obrien@FreeBSD>
1773
1774 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
1775 FreeBSD/i386-CURRENT differently until I can figure out the needed
1776 corefile changes.
1777 * configure: Regenerate.
1778 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
1779 FreeBSD/PowerPC, and FreeBSD/sparc64.
1780
e135f41b
NC
17812001-02-18 lars brinkhoff <[email protected]>
1782
1783 * Makefile.am: Add PDP-11 a.out target.
1784 * config.bfd: Likewise.
1785 * configure.in: Likewise.
1786 * targets.c: Likewise.
1787 * archures.c: Likewise.
1788 * bfd-in2.h: Likewise. Add PDP-11 relocations.
1789 * libbfd.h: Add PDP-11 relocations.
1790 * reloc.c: Likewise.
1791 * cpu-pdp11.c: New file.
1792 * pdp11.c: New file.
1793
1794 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
1795 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1796 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1797 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
1798 (GET_MAGIC): New macro.
1799 (PUT_MAGIC): Likewise.
1800 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
1801
dc3febfa
NC
18022001-02-18 Jim Kingdon <[email protected]>
1803
1804 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
1805 multiarch needs it).
1806
ea412e04
L
18072001-02-18 H.J. Lu <[email protected]>
1808
1809 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
1810 index.
1811
47eee8a9
KH
18122001-02-18 Kazu Hirata <[email protected]>
1813
1814 * vms-misc.c: Fix formatting.
1815
8a0c27cd
KH
18162001-02-16 Kazu Hirata <[email protected]>
1817
1818 * vms.c: Fix formatting.
1819
d1fad7c6
NC
18202001-02-14 H.J. Lu <[email protected]>
1821
1822 * elf.c (elf_find_function): New function.
1823 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
1824 the file name and function name.
1825
825b47db
NC
18262001-02-14 Nick Clifton <[email protected]>
1827
51d7ee16
NC
1828 * ecoff.c (bfd_debug_section): Update to initialise new fields in
1829 asection structure.
1830
825b47db
NC
1831 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
1832 (BFD64_BACKENDS): Add pepigen.c
1833 Add rules to create peigen.c and pepigen.c from peXXigen.c.
1834
1835 * Makefile.in: Regenerate.
1836 * configure: Regenerate.
1837 * po/POTFILES.in: Regenerate.
1838 * po/bfd.pot: Regenerate.
1839
ea36a178
L
18402001-02-14 H.J. Lu <[email protected]>
1841
1842 * libcoff-in.h (pe_tdata): Add members target_subsystem and
1843 force_minimum_alignment.
1844
407443a3
AJ
18452001-02-14 Bo Thorsen <[email protected]>
1846
1847 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
1848 (elf64_86_64_size_info): Struct added to fix a problem
1849 with the hashtable string entries.
1850 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
1851 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
1852 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
1853 remove the FIXME for this.
1854 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
1855 section. Also removed the FIXME for it.
1856 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
1857 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
1858 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
1859
b4adccfd
RH
18602001-02-13 Richard Henderson <[email protected]>
1861
1862 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
1863 and not user provided.
1864
9635981a
KH
18652001-02-13 Kazu Hirata <[email protected]>
1866
1867 * vms.c (vms_print_symbol): Remove unreachable code.
1868
6a125b16
KH
1869 * rs6000-core.c: Fix formatting.
1870
cbff5e0d
DD
18712001-02-13 David Mosberger <[email protected]>
1872
1873 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
1874 as _bfd_XXi_only_swap_filehdr_out.
1875 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
1876 pe->force_minimum_alignment to TRUE.
1877 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
1878 PEI_TARGET_SUBSYSTEM.
1879 (pe_print_private_bfd_data): Call
1880 _bfd_XX_print_private_bfd_data_common() instead of
1881 _bfd_pe_print_private_bfd_data_common().
1882 (pe_bfd_copy_private_bfd_data): Call
1883 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
1884 _bfd_pe_bfd_copy_private_bfd_data_common().
1885 (coff_bfd_copy_private_section_data): Define as
1886 _bfd_XX_bfd_copy_private_section_data instead of
1887 _bfd_pe_bfd_copy_private_section_data.
1888 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
1889 of a _bfd_pe_get_symbol_info.
1890
1891 * peigen.c: Delete.
1892
1893 * peXXigen.c: Renamed from peigen.c.
1894 (COFF_WITH_XX): Define this macro (will get expanded into
1895 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
1896 compiled as peigen.c or pepigen.c.
1897 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
1898 define the canonical PEP structures and definitions.
1899 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
1900 effect, enforce minimum file and section alignments. If
1901 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
1902 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
1903 so, by default, this is a no-op).
1904
1905 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
1906 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
1907 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
1908 _bfd_pefoo if it's not defined. Use these macros to define
1909 coff swap macros.
1910
1911 * libcoff.h (pe_tdata): Add members target_subsystem and
1912 force_minimum_alignment.
1913
1914 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
1915 COFF_WITH_pep.
1916 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
1917
1918 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
1919 peigen.lo.
1920
1921 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
1922 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
1923 PEPAOUTHDR.
1924
1925 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
1926 (BFD64_BACKENDS_CFILES): Mention pepigen.c
1927 (peigen.c): Add rule to generate from peXXigen.c.
1928 (pepigen.c): Ditto.
1929 (pepigen.lo): List dependencies for pepigen.lo.
1930
df8634e3
AM
19312001-02-13 Alan Modra <[email protected]>
1932
1933 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
1934 $global$ referenced but not defined, set its value here.
1935
51e0a107
JH
19362001-02-09 Bo Thorsen <[email protected]>
1937
1938 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1939 alignment to 3.
1940 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1941 and relocation.
1942 (elf64_x86_64_relocate_section): Fix formatting.
1943 (elf64_x86_64_relocate_section): Fix addend for relocation of
1944 R_X86_64_(8|16|32|PC8|PC16|PC32).
1945
d1fad7c6 19462001-02-12 Jan Hubicka <[email protected]>
23df1078
JH
1947
1948 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1949
f0e1d18a
L
19502001-02-11 H.J. Lu <[email protected]>
1951
6757257f 1952 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
f0e1d18a
L
1953 alignment.
1954
9117d219
NC
19552001-02-11 Maciej W. Rozycki <[email protected]>
1956
1957 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1958 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
1959 relocations against dynsym symbols.
1960
1961 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
1962 the R_MIPS_26 relocation.
1963 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
1964 the R_MIPS_26 relocation.
1965 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
1966 relocation.
1967 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1968 the R_MIPS_26 relocation.
1969 (mips_elf64_howto_table_rela): Likewise.
1970
1971 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1972 member to mark symbols that have non-CALL relocations against
1973 them.
1974 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1975 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1976 R_MIPS_GOT16.
1977 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1978 non-CALL relocation against it is encountered.
1979 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1980 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1981 no_fn_stub is not set.
1982
1983 * elf32-mips.c (mips_elf_output_extsym): Get the output section
1984 information from the real symbol for indirect ones.
1985 Check no_fn_stub to find out if a symbol has a function stub
1986 indeed.
1987
9f93bca5
MS
19882001-02-11 Michael Sokolov <[email protected]>
1989
1990 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1991 * Makefile.in: Regenerate.
1992
81545d45
RH
19932001-02-09 David Mosberger <[email protected]>
1994
1995 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
1996 true if section name is an unwind table section name.
1997 (elfNN_ia64_additional_program_headers): Count each unwind section
1998 separately.
1999 (elfNN_ia64_modify_segment_map): Install one unwind program header
2000 for each unwind separate section. Note: normally the linker
2001 script merges the unwind sections that go into a single segment,
2002 so this still generates at most one unwind program header per
2003 segment.
2004
2005 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
2006 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
2007 (elfNN_ia64_fake_sections): Mark sections with names that start
2008 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
2009 unwind section.
2010
2011 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
2012 Use it to make sh_info in unwind section point to the text section
2013 it applies to.
2014
a85d7ed0
NC
20152001-02-09 Martin Schwidefsky <[email protected]>
2016
2017 * Makefile.am: Add linux target for S/390.
2018 * archures.c: Likewise.
2019 * bfd-in2.h: Likewise.
2020 * config.bfd: Likewise.
2021 * configure.in: Likewise.
2022 * elf.c: Likewise.
2023 * libbfd.h: Likewise.
2024 * targets.c: Likewise.
2025 * cpu-s390.c: New file.
2026 * elf32-s390.c: New file.
2027 * elf64-s390.c: New file.
2028
356d255d
NC
20292001-02-09 Nick Clifton <[email protected]>
2030
2031 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
2032 ImageBase. This has already been done by coff_swap_hdr_in.
2033
069f40e5
JJ
20342001-02-09 Jakub Jelinek <[email protected]>
2035
2036 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
2037
eadfa8ab
JJ
20382001-02-09 Jakub Jelinek <[email protected]>
2039
2040 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
2041 (sparc64_elf_relocate_section): Likewise.
2042
9fc54e19
MK
20432001-02-09 Mark Kettenis <[email protected]>
2044
2045 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
2046 similar to R_SPARC_32.
2047 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
2048
1f655a09
L
20492001-02-08 H.J. Lu <[email protected]>
2050
2051 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
2052 relocation entries for weak definitions when building DSO with
2053 -Bsymbolic.
2054
ca88208a
RH
20552001-02-08 Richard Henderson <[email protected]>
2056
2057 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
2058 before visibility. Locally defined protected symbols are not
2059 dynamic.
2060
4603e845
GK
20612001-02-08 Geoffrey Keating <[email protected]>
2062
2063 * config.bfd: Enable coff64 for rs6000-*. Patch from
2064 <[email protected]>.
2065
4ca29a6a
NC
20662001-02-07 Mark Elbrecht <[email protected]>
2067
2068 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
2069 found, do not attempt to find dwarf2 info before returning.
2070
7da9d88f
NC
20712001-02-07 Jakub Jelinek <[email protected]>
2072
2073 * elflink.h (is_global_symbol_definition): Rename to
2074 is_global_data_symbol_definition and have it reject function
2075 symbols.
2076 (elf_link_is_defined_archive_symbol): Use renamed function.
2077
7340082d
NC
20782001-02-07 Todd Vierling <[email protected]>
2079
2080 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
2081 * libbfd.h (bfd_target_vector): Likewise.
2082 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
81545d45 2083 make static; create pointer reference named bfd_target_vector.
7340082d
NC
2084 (_bfd_target_vector_entries): Calculate this based on the array
2085 typed _bfd_target_vector.
2086
2719f880
L
20872001-02-06 H.J. Lu <[email protected]>
2088
2089 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
2090 internal symbols are not dynamic.
2091 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
2092
175aa013
NC
20932001-02-06 Nick Clifton <[email protected]>
2094
2095 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
2096 that it will not be pulled into the list of files that make up
2097 po/POTFILES.in.
2098 * Makefile.in: Regenerate.
2099 * po/bfd.pot: Regenerate.
2100
15e0ecd9
L
21012001-02-06 H.J. Lu <[email protected]>
2102
7898deda 2103 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
15e0ecd9
L
2104 checking.
2105 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
2106 external_PEI_IMAGE_hdr.
2107
27def10f
KH
21082001-02-06 Kazu Hirata <[email protected]>
2109
2110 * elf-m10200.c: Fix formatting.
2111
a0f2e916
NC
21122001-02-04 Nick Clifton <[email protected]>
2113
2114 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
2115 rel, it will be handled later on.
2116
d96031fb
NC
21172001-02-02 Fred Fish <[email protected]>
2118
2119 * Makefile.in: Fix typo.
2120
010ac81f
KH
21212001-02-01 Kazu Hirata <[email protected]>
2122
2123 * elf-m10300.c: Fix formatting.
2124
3fab46d0
AM
21252001-01-30 Alan Modra <[email protected]>
2126
2127 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
2128 (elf_backend_get_symbol_type): Define.
d9634ba1
AM
2129 (elf64_hppa_object_p): Set architecture and machine from elf
2130 header flags.
3fab46d0 2131
95404643
RH
21322001-01-30 Curtis L. Janssen <[email protected]>
2133
2134 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
2135 before mdebug.
2136
8fb35fed
RH
21372001-01-26 Richard Henderson <[email protected]>
2138
2139 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
2140 for non-default visibility.
2141 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
2142 delete ugly macro and replace with pretty function.
2143
a4f68544
NC
21442001-01-25 Mark Elbrecht <[email protected]>
2145
2146 * coff-go32.c: Update copyright.
2147 * coff-stgo32.c: Likewise.
2148 * coff-go32.c (COFF_LONG_FILENAMES): Define.
2149 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
2150 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
2151 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2152
c02e7c3e
KH
21532001-01-25 Kazu Hirata <[email protected]>
2154
2155 * bfd-in2.h: Rebuild.
2156 * libbfd.h: Likewise.
2157
541389e2
L
21582001-01-23 H.J. Lu <[email protected]>
2159
2160 * bfd-in2.h: Rebuild.
2161
0007625f
L
21622001-01-23 H.J. Lu <[email protected]>
2163
2164 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
2165 is NULL or PRIV(vms_rec) is outside of the buffer.
2166
b653e1b1
KH
21672001-01-23 Kazu Hirata <[email protected]>
2168
2169 * coff64-rs6000.c: Fix formatting.
2170 * coff-arm.c: Likewise.
2171 * coffgen.c: Likewise.
2172 * cofflink.c: Likewise.
2173 * coff-mcore.c: Likewise.
2174 * coff-mips.c: Likewise.
2175 * coff-pmac.c: Likewise.
2176 * coff-ppc.c: Likewise.
2177 * coff-rs6000.c: Likewise.
2178 * elf32.c: Likewise.
2179 * elf32-fr30.c: Likewise.
2180 * elf32-i370.c: Likewise.
2181 * elf32-i860.c: Likewise.
2182 * elf32-m32r.c: Likewise.
2183 * elf32-m68k.c: Likewise.
2184 * elf32-mcore.c: Likewise.
2185 * elf32-ppc.c: Likewise.
2186 * elf32-sh.c: Likewise.
2187 * elf32-v850.c: Likewise.
2188 * elf64-alpha.c: Likewise.
2189 * elf64-sparc.c: Likewise.
2190 * elflink.c: Likewise.
2191 * elflink.h: Likewise.
2192 * elf-m10200.c: Likewise.
2193 * elf-m10300.c: Likewise.
2194 * elfxx-ia64.c: Likewise.
2195
3fde5a36
KH
2196 * aoutx.h: Fix formatting.
2197 * bfd.c: Likewise.
2198 * bfd-in2.h: Likewise.
2199 * bfd-in.h: Likewise.
2200 * cpu-i386.c: Likewise.
2201 * cpu-m68hc11.c: Likewise.
2202 * dwarf2.c: Likewise.
2203 * elf64-x86-64.c: Likewise.
2204 * format.c: Likewise.
2205 * freebsd.h: Likewise.
2206 * hash.c: Likewise.
2207 * hp300hpux.c: Likewise.
2208 * hppabsd-core.c: Likewise.
2209 * hpux-core.c: Likewise.
2210
70256ad8
AJ
22112001-01-22 Bo Thorsen <[email protected]>
2212
2213 * elf64-x86-64.c: Added PIC support for X86-64.
2214 (elf64_x86_64_link_hash_newfunc): Function added.
2215 (elf64_x86_64_link_hash_table_create): Likewise.
2216 (elf64_x86_64_check_relocs): Likewise.
2217 (elf64_x86_64_gc_mark_hook): Likewise.
2218 (elf64_x86_64_gc_sweep_hook): Likewise.
2219 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
2220 (elf64_x86_64_size_dynamic_sections): Likewise.
2221 (elf64_x86_64_discard_copies): Likewise.
2222 (elf64_x86_64_finish_dynamic_symbol): Likewise.
2223 (elf64_x86_64_finish_dynamic_sections): Likewise.
2224 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
2225
ee0bebb8
AJ
22262001-01-21 Maciej W. Rozycki <[email protected]>
2227
2228 * Makefile.am (install-data-local): Make use of $(DESTDIR).
2229 * Makefile.in: Regenerate.
2230
2a38f751
KH
22312001-01-21 Kazu Hirata <[email protected]>
2232
2233 * coff-a29k.c: Fix formatting.
2234
c8492176
L
22352001-01-19 H.J. Lu <[email protected]>
2236
2237 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
2238 relocation section names.
2239 (elf_i386_relocate_section): Report files with bad relocation
2240 section names and return false.
2241
a5377ec0
AJ
22422001-01-17 Bo Thorsen <[email protected]>
2243
2244 * targets.c: Alphabetize list of xvecs.
2245
b352eebf
AM
22462001-01-14 Alan Modra <[email protected]>
2247
d952f17a
AM
2248 * config.bfd: Add linux target variant for elfxx-hppa.
2249 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
2250 bfd_elf64_hppa_linux_vec.
2251 * configure: Regenerate.
2252 * elf64-hppa.c: Include elf64-target.h again to support linux
2253 target variant.
2254 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
2255 * elf32-hppa.c: Include elf32-target.h again to support linux
2256 target variant.
2257 (elf32_hppa_post_process_headers): New function.
2258 (elf_backend_post_process_headers): Define.
2259 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
2260 bfd_elf32_hppa_linux_vec.
2261
c46b7515
AM
2262 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
2263 and data_segment_base fields.
2264 (elf32_hppa_link_hash_table_create ): Init them.
2265 (elf32_hppa_check_relocs): Update comments.
2266 (hppa_record_segment_addr): New function.
2267 (elf32_hppa_relocate_section): Call it.
2268 (final_link_relocate): Handle R_PARISC_SEGREL32.
2269 (elf32_hppa_final_link): New function.
2270 (bfd_elf32_bfd_final_link): Define to call it.
2271 (hppa_unwind_entry_compare): New function.
2272 * cache.c (bfd_open_file): Create files in write+read mode.
2273
2274 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
2275 SEGREL32 and numerous other relocs. Change duplicate
2276 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
2277
d768008d
AM
2278 * opncls.c (bfd_fdopenr): Add parens like the comment says around
2279 O_ACCMODE.
2280
150ccafb
AM
2281 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
2282 .plt entries for DT_INIT and DT_FINI.
2283 (elf32_hppa_finish_dynamic_sections): Remove special handling of
2284 DT_INIT and DT_FINI.
2285
b352eebf
AM
2286 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
2287 offsets for stub .plt access if wide mode. Check offset in range.
2288
b3b9a062
NC
22892001-01-13 Nick Clifton <[email protected]>
2290
b7ed8fad
NC
2291 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
2292 line.
2293
b3b9a062
NC
2294 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
2295 line.
2296
6e0b89ee
AM
22972001-01-12 Alan Modra <[email protected]>
2298
2299 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
2300 * configure: Regenerate.
2301
0d2bcfaf
NC
23022001-01-11 Peter Targett <[email protected]>
2303
2304 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
2305 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
2306 * cpu-arc.c (arch_info_struct): Add entries for variants.
2307 (bfd_arc_arch) Set default to bfd_mach_arc_5.
2308 (arc_get_mach) Don't assume machine names prefixed arc- before
2309 testing.
2310 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
2311 selections.
2312 (arc_elf_final_write_processing) Likewise.
2313 (ELF_MACHINE_CODE) Use EM_ARC.
2314
c31c1f70
NC
23152001-01-10 Nick Clifton <[email protected]>
2316
2758140b 2317 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
c31c1f70 2318
5ad083e3
PB
23192001-01-07 Philip Blundell <[email protected]>
2320
2321 * README: Replace `[email protected]' with
2322 `[email protected]'.
2323
7eae7d22
KH
23242001-01-04 Kazu Hirata <[email protected]>
2325
2326 * som.c: Fix formatting.
2327
509945ae
KH
23282001-01-03 Kazu Hirata <[email protected]>
2329
3e932841
KH
2330 * ecoffswap.h: Fix formatting.
2331 * elf-bfd.h: Likewise.
2332 * elfarm-nabi.c: Likewise.
2333 * elfarm-oabi.c: Likewise.
2334 * elfcode.h: Likewise.
2335 * elfcore.h: Likewise.
2336 * elflink.c: Likewise.
2337 * elflink.h: Likewise.
2338 * elfxx-ia64.c: Likewise.
2339 * elfxx-target.h: Likewise.
2340 * libbfd.c: Likewise
509945ae
KH
2341 * linker.c: Likewise.
2342 * lynx-core.c: Likewise.
2343
892339ee
KH
23442001-01-02 Kazu Hirata <[email protected]>
2345
2346 * pc532-mach.c: Fix formatting.
2347 * pe-arm.c: Likewise.
2348 * pe-i386.c: Likewise.
2349 * pe-mips.c: Likewise.
2350 * pe-ppc.c: Likewise.
2351 * pe-sh.c: Likewise.
2352 * pei-mips.c: Likewise.
2353 * pei-sh.c: Likewise.
ee91ed79 2354 * peicode.h: Likewise.
892339ee
KH
2355 * ppcboot.c: Likewise.
2356 * ptrace-core.c: Likewise.
2357
3d855632
KH
23582001-01-01 Kazu Hirata <[email protected]>
2359
2360 * reloc.c: Fix formatting.
2361 * riscix.c: Likewise.
2362 * rs6000-core.c: Likewise.
2363 * xcoff-target.h: Likewise.
2364
a77a9fef
HPN
23652000-12-29 Hans-Peter Nilsson <[email protected]>
2366
2367 * elfcode.h (elf_object_p): Also restore the bfd mach field on
2368 error, by calling bfd_default_set_arch_mach with incoming
2369 values.
2370
558e161f
KH
23712000-12-26 Kazu Hirata <[email protected]>
2372
2373 * vaxnetbsd.c: Fix formatting.
2374 * versados.c: Likewise.
2375 * vms-gsd.c: Likewise.
2376 * vms-hdr.c: Likewise.
2377 * vms-misc.c: Likewise.
2378
3c579812
AO
23792000-12-25 Alexandre Oliva <[email protected]>
2380
2381 * archive.c (coff_write_armap): Don't write more than symbol_count
2382 `archive_member_file_ptr's.
2383
672579e9
KH
23842000-12-25 Kazu Hirata <[email protected]>
2385
2386 * vms-tir.c: Fix formatting.
2387
55f2d5ed
KH
23882000-12-23 Kazu Hirata <[email protected]>
2389
2390 * vms.c: Fix formatting.
2391 * vms.h: Likewise.
2392
23ccc829
NC
23932000-12-21 Santeri Paavolainen <[email protected]>
2394
2395 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
2396
2397 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
2398
2399 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
2400 arithmetic.
2401
2402 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
2403
2404 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
2405
8c603c85
NC
24062000-12-21 Richard Sandiford <[email protected]>
2407
2408 * libbfd.c (bfd_get_bits): Added
2409 (bfd_put_bits): Likewise
2410 * bfd-in.h: Declared the above.
2411 * bfd-in2.h: Regenerated.
2412
5bff4f56
KH
24132000-12-20 Kazu Hirata <[email protected]>
2414
2415 * targets.c: Fix formatting.
2416 * tekhex.c: Likewise.
2417 * trad-core.c: Likewise.
2418
7b82c249
KH
24192000-12-19 Kazu Hirata <[email protected]>
2420
2421 * sco5-core.c: Fix formatting.
2422 * section.c: Likewise.
2423 * sparclinux.c: Likewise.
2424 * sparclynx.c: Likewise.
2425 * sparcnetbsd.c: Likewise.
2426 * srec.c: Likewise.
2427 * stabs.c: Likewise.
2428 * stab-syms.c: Likewise.
2429 * sunos.c: Likewise.
2430 * syms.c: Likewise.
2431 * sysdep.h: Likewise.
2432
f78c5281
NC
24332000-12-18 Nick Clifton <[email protected]>
2434
2435 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
2436 defined.
2437 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
2438 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2439
02b89dce
NC
24402000-12-18 Nick Clifton <[email protected]>
2441
2442 * vms-misc.c (_bfd_vms_get_record): Add default case to
2443 file_format switch.
2444
d20966a7
NC
24452000-12-15 Miloslav Trmac <[email protected]>
2446
2447 * elfcore.h (elf_core_file_p): Move to the start of the program
2448 headers before attempting to read them.
2449
6fa957a9
KH
24502000-12-14 Kazu Hirata <[email protected]>
2451
2452 * peigen.c: Fix formatting.
2453 * som.c: Likewise.
2454 * som.h: Likewise.
2455
9602af51
KH
24562000-12-13 Kazu Hirata <[email protected]>
2457
2458 * peigen.c: Fix formatting.
2459
514829c3
JW
24602000-12-12 Jim Wilson <[email protected]>
2461
2462 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2463
3a71aec8
NC
24642000-12-08 Mark Salter <[email protected]>
2465
2466 * binary.c (binary_set_section_contents): Ignore sections
2467 with zero size.
2468
1518639e
KH
24692000-12-12 Kazu Hirata <[email protected]>
2470
2471 * m68klinux.c: Fix formatting.
2472 * m68knetbsd.c: Likewise.
2473 * mipsbsd.c: Likewise.
2474 * netbsd-core.c: Likewise.
2475 * netbsd.h: Likewise.
2476 * newsos3.c: Likewise.
2477 * nlm32-alpha.c: Likewise.
2478 * nlm32-i386.c: Likewise.
2479 * nlm32-ppc.c: Likewise.
2480 * nlm32-sparc.c: Likewise.
2481 * nlmcode.h: Likewise.
2482 * nlmswap.h: Likewise.
2483 * nlm-target.h: Likewise.
2484 * ns32knetbsd.c: Likewise.
2485
b79e8c78
NC
24862000-12-10 Fred Fish <[email protected]>
2487
d952f17a
AM
2488 * elflink.h (elf_link_output_extsym): Don't complain about undefined
2489 symbols in shared objects if allow_shlib_undefined is true.
b79e8c78 2490
38b1a46c
NC
24912000-12-12 Nick Clifton <[email protected]>
2492
2493 * cpu-sh.c: Fix formattng.
2494 * elf.c: Fix formattng.
2495 * elf32-mips.c: Fix formattng.
2496 * elf32-sh.c: Fix formattng.
2497 * elf64-alpha.c: Fix formattng.
2498
857ec808
NC
24992000-12-09 Nick Clifton <[email protected]>
2500
2501 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2502 dwarf2_find_line_info as last parameter to invocation of
2503 _bfd_dwarf2_find_nearest_line.
2504 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2505 dwarf2_find_line_info as last parameter to invocation of
2506 _bfd_dwarf2_find_nearest_line.
2507
51db3708
NC
25082000-12-08 Mark Elbrecht <[email protected]>
2509
2510 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
857ec808
NC
2511 (BFD_LIBS): ...to here.
2512 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2513 (BFD_LIBS_CFILES): ...to here.
51db3708
NC
2514 * Makefile.in: Regenerate.
2515 * configure.in: Remove dwarf.lo from the elf shell variable.
2516 * configure: Regenerate.
2517 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2518 * libcoff.h: Regenerate.
d952f17a 2519 * coffgen.c (coff_find_nearest_line): Call
857ec808 2520 _bfd_dwarf2_find_nearest_line.
51db3708 2521 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
857ec808
NC
2522 accordingly.
2523 (read_abbrevs): Likewise
2524 (decode_line_info): Likewise.
2525 (parse_comp_unit): Likewise.
2526 (comp_unit_find_nearest_line): Likewise.
51db3708
NC
2527 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2528 * libbfd.h: Regenerate.
2529 * elf.c (_bfd_elf_find_nearest_line): Update call.
2530 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2531 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2532 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
857ec808
NC
2533 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2534 (styp_to_sec_flags): Handle DWARF2 sections.
2535 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2536 to _bfd_find_nearest_line.
2537 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2538 call to _bfd_find_nearest_line.
d952f17a 2539
435b1e90
KH
25402000-12-08 Kazu Hirata <[email protected]>
2541
2542 * coffgen.c: Fix formatting.
fe8bc63d 2543 * elf-m10300.c: Likewise.
435b1e90
KH
2544 * elf32-i386.c: Likewise.
2545 * elf32-i960.c: Likewise.
2546 * elf32-m68k.c: Likewise.
2547 * elf32-mcore.c: Likewise.
2548 * elf32-ppc.c: Likewise.
2549 * elf32-sh.c: Likewise.
2550 * elf32-sparc.c: Likewise.
2551 * elf32-v850.c: Likewise.
fe8bc63d
KH
2552 * elf64-alpha.c: Likewise.
2553 * elf64-hppa.c: Likewise.
2554 * elf64-mips.c: Likewise.
435b1e90 2555 * elf64-sparc.c: Likewise.
435b1e90 2556
8da6118f
KH
25572000-12-07 Kazu Hirata <[email protected]>
2558
2559 * elf32-ppc.c: Fix formatting.
2560 * elf64-x86-64.c: Likewise.
2561
a9922e52
UC
25622000-12-06 Ulf Carlsson <[email protected]>
2563
2564 From Ralf Baechle <[email protected]>
2565
2566 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2567 BFDs containing no sections or empty .text, .data or .bss sections
2568 to be merged, regardless of their flags.
2569
c3668558
KH
25702000-12-06 Kazu Hirata <[email protected]>
2571
2572 * elf32-m32r.c: Fix formatting.
2573 * elf32-m68hc11.c: Likewise.
2574 * elf32-m68hc12.c: Likewise.
2575 * elf32-m68k.c: Likewise.
2576 * elf32-mcore.c: Likewise.
2577 * elf32-pj.c: Likewise.
2578 * elf32-ppc.c: Likewise.
2579
6609fa74
KH
25802000-12-05 Kazu Hirata <[email protected]>
2581
2582 * elf32-fr30.c: Fix formatting.
2583 * elf32-hppa.c: Likewise.
2584 * elf32-i370.c: Likewise.
2585 * elf32-i386.c: Likewise.
2586 * elf32-i860.c: Likewise.
2587 * elf32-i960.c: Likewise.
2588
a7c10850
KH
25892000-12-03 Kazu Hirata <[email protected]>
2590
2591 * elf32-arm.h: Fix formatting.
2592 * elf32-avr.c: Likewise.
2593 * elf32-cris.c: Likewise.
2594 * elf32-d10v.c: Likewise.
2595 * elf32-d30v.c: Likewise.
2596 * elf-hppa.h: Likewise.
2597 * elf-m10200.c: Likewise.
2598 * elf-m10300.c: Likewise.
2599
e7af610e
NC
26002000-12-01 Chris Demetriou <[email protected]>
2601
d952f17a
AM
2602 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2603 bfd_mach_mips32_4k. Update FIXME comment.
2604 * archures.c (bfd_mach_mips32): New constant.
2605 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2606 the latter, renumber it.
2607 * bfd-in2.h (bfd_mach_mips32): New constant.
2608 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2609 the latter, renumber it.
2610 * cpu-mips.c (I_mips32): New constant.
2611 (I_mips4K, I_mips32_4k): Rename the former to the latter.
2612 (arch_info_struct): Add bfd_mach_mips32 entry, replace
2613 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2614 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2615 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
2616 with E_MIPS_MACH_MIPS32_4K.
2617 (_bfd_mips_elf_final_write_processing): Replace
2618 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2619 bfd_mach_mips32 case.
2620 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2621 comparison with support for MIPS32.
2622 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2623 MIPS32.
2624
2625 * aoutx.h (NAME(aout,machine_type)): Add cases for
2626 bfd_mach_mips5 and bfd_mach_mips64.
2627 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2628 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2629 * cpu_mips.c (I_mips5, I_mips64): New definitions.
2630 (arch_info_struct): Add entries for bfd_mach_mips5 and
2631 bfd_mach_mips64.
2632 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2633 _bfd_mips_elf_print_private_bfd_data): Add cases for
2634 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2635 (_bfd_mips_elf_final_write_processing): Add cases for
2636 bfd_mach_mips5 and bfd_mach_mips64.
2637
7898deda 2638 * aoutx.h (NAME(aout,machine_type)): Add a
d952f17a 2639 bfd_mach_mips_sb1 case.
7898deda
NC
2640 * archures.c (bfd_mach_mips_sb1): New constant.
2641 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2642 * cpu-mips.c (I_sb1): New constant.
d952f17a 2643 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
7898deda 2644 * elf32-mips.c (elf_mips_mach): Add case for
d952f17a
AM
2645 E_MIPS_MACH_SB1.
2646 (_bfd_mips_elf_final_write_processing): Add case for
2647 bfd_mach_mips_sb1.
2648
26492000-12-01 Joel Sherrill <[email protected]>
ddcfc5fc
NC
2650
2651 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2652 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2653 (sparc*-*-rtems*): Switched from a.out to ELF.
2654
8d88c4ca 26552000-11-30 Jan Hubicka <[email protected]>
d952f17a
AM
2656
2657 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2658 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2659 (elf64-x86-64.lo): Add dependencies.
2660 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2661 bfd_mach_x86_64_intel_syntax.
2662 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2663 * config.bfd (x86_64): Add.
2664 * configure.in: Add support for bfd_elf64_x86_64_vec.
2665 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2666 (bfd_i386_arch, i8086_ar): Link in.
2667 * elf64-x86-64.c: New file.
2668 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2669 * targets.c (bfd_elf64_x86_64_vec): Add.
2670 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
8d88c4ca 2671
fbc4fff4
KH
26722000-11-30 Kazu Hirata <[email protected]>
2673
2674 * xcofflink.c: Fix formatting.
2675
e60b52c6
KH
26762000-11-28 Kazu Hirata <[email protected]>
2677
2678 * aoutx.h: Fix formatting.
2679 * bfd-in.h: Likewise.
2680 * bfd-in2.h: Likewise.
2681 * cache.c: Likewise.
2682 * cisco-core.c: Likewise.
2683 * coff64-rs6000.c: Likewise.
2684 * coffcode.h: Likewise.
2685 * coffswap.h: Likewise.
2686 * corefile.c: Likewise.
be3ccd9c 2687 * elf32-mips.c: Likewise.
e60b52c6 2688
336eced2
KH
26892000-11-27 Kazu Hirata <[email protected]>
2690
2691 * aout-adobe.c: Fix formatting.
244148ad
KH
2692 * coff64-rs6000.c: Likewise.
2693 * coffgen.c: Likewise.
2694 * cofflink.c: Likewise.
336eced2 2695
d71f672e
PB
26962000-11-27 Philip Blundell <[email protected]>
2697
2698 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2699 (obj_coff_strings_written): New accessor macro for above.
2700 * libcoff.h: Regenerate.
2701 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2702 strings.
2703 * coffcode.h (coff_write_object_contents): No need to write out
2704 the string table if it's already been done.
2705
bc7a577d
PB
27062000-11-22 Philip Blundell <[email protected]>
2707
d952f17a 2708 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
bc7a577d
PB
2709 weak undefined symbols.
2710
077b8428
NC
27112000-11-24 Nick Clifton <[email protected]>
2712
2713 * archures.c (bfd_mach_arm_5TE): Define.
2714 (bfd_mach_arm+XScale): Define.
2715 * bfd-in2.h: Regenerate.
2716
2717 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2718 BFD_RELOC_ARM_PCREL_BLX.
2719
2720 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2721 XScale machine numbers.
2722
2723 * config.bfd (xscale-elf): Add target.
2724 (xscale-coff): Add target.
2725
2726 * cpu-arm.c: Add xscale machine name.
2727 Add v5t, v5te and XScale machine numbers.
2728
e9e41bd9
KH
27292000-11-23 Kazu Hirata <[email protected]>
2730
2731 * aix386-core.c: Fix formatting.
2732
64bf6ae6
JW
27332000-11-22 Jim Wilson <[email protected]>
2734
2735 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2736 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2737 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2738 (ins_imms_scaled): Initialize sign_bit at function entry.
2739 (elf64_ia64_operands): Add missing initializers.
2740 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2741 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2742 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2743 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2744 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2745 parameters.
2746 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2747 and free_extsyms at function entry.
2748 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2749 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2750 (get_got): Delete unused local srel.
2751 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2752 (elfNN_ia64_relocate_section): Delete unused local dynindx.
d952f17a 2753
1abaf976
KH
27542000-11-21 Kazu Hirata <[email protected]>
2755
6e301b2b
KH
2756 * coff-a29k.c: Fix formatting.
2757 * coff-h8500.c: Likewise.
2758 * coff-i960.c: Likewise.
2759 * coff-ppc.c: Likewise.
2760 * coff-rs6000.c: Likewise.
2761 * coff-stgo32.c: Likewise.
2762 * coff-tic54x.c: Likewise.
2763 * coff-w65.c: Likewise.
2764 * cpu-h8500.c: Likewise.
2765 * cpu-hppa.c: Likewise.
2766 * cpu-ns32k.c: Likewise.
2767 * ecoff.c: Likewise.
1abaf976
KH
2768 * ecofflink.c: Likewise.
2769
a0fc8ba1
NC
27702000-11-21 Nick Clifton <[email protected]>
2771
2772 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
2773 remove possibility of infinite loop.
2774
beb0d161
KH
27752000-11-20 Kazu Hirata <[email protected]>
2776
2777 * aix386-core.c: Fix formatting.
2778 * aout-adobe.c: Likewise.
2779 * aout-arm.c: Likewise.
2780 * aout-encap.c: Likewise.
2781 * aout-ns32k.c: Likewise.
2782 * aout-target.h: Likewise.
2783 * aout-tic30.c: Likewise.
2784 * aoutf1.h: Likewise.
2785 * aoutx.h: Likewise.
2786 * archive.c: Likewise.
eb6e10cb
KH
2787 * bfd-in.h: Likewise.
2788 * bfd-in2.h: Likewise.
2789 * bfd.c: Likewise.
2790 * bout.c: Likewise.
beb0d161 2791
2c2475db
JW
27922000-11-17 H.J. Lu <[email protected]>
2793
2794 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
2795 pltoff entries for DT_INIT and DT_FINI.
2796 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
2797 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2798 entries.
2799
18b27f17
RH
28002000-11-16 Richard Henderson <[email protected]>
2801
2802 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
2803 (allocate_dynrel_entries): Likewise.
2804 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
2805 (set_pltoff_entry): Likewise.
2806 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
2807 (elfNN_ia64_reloc_type_lookup): Likewise.
2808 (elfNN_ia64_install_value): Likewise.
2809 (elfNN_ia64_relocate_section): Likewise.
2810 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2811 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2812
98591c73
KH
28132000-11-16 Kazu Hirata <[email protected]>
2814
71f6b586
KH
2815 * cpu-a29k.c: Fix formatting.
2816 * cpu-alpha.c: Likewise.
2817 * cpu-arm.c: Likewise.
2818 * cpu-avr.c: Likewise.
2819 * cpu-d10v.c: Likewise.
2820 * cpu-h8500.c: Likewise.
2821 * cpu-hppa.c: Likewise.
2822 * cpu-i370.c: Likewise.
2823 * cpu-i386.c: Likewise.
2824 * cpu-i960.c: Likewise.
2825 * cpu-ia64-opc.c: Likewise.
2826 * cpu-ia64.c: Likewise.
2827 * cpu-m32r.c: Likewise.
2828 * cpu-m68hc11.c: Likewise.
2829 * cpu-m68hc12.c: Likewise.
2830 * cpu-m68k.c: Likewise.
2831 * cpu-m88k.c: Likewise.
2832 * cpu-mips.c: Likewise.
2833 * cpu-ns32k.c: Likewise.
2834 * cpu-pj.c: Likewise.
2835 * cpu-powerpc.c: Likewise.
2836 * cpu-sh.c: Likewise.
2837 * cpu-sparc.c: Likewise.
2838 * cpu-tic54x.c: Likewise.
2839 * cpu-v850.c: Likewise.
2840 * cpu-vax.c: Likewise.
2841 * cpu-w65.c: Likewise.
2842 * cpu-we32k.c: Likewise.
2843 * cpu-z8k.c: Likewise.
2844 * dwarf1.c: Likewise.
98591c73
KH
2845 * dwarf2.c: Likewise.
2846
c5930ee6
KH
28472000-11-15 Kazu Hirata <[email protected]>
2848
2849 * coff-arm.c: Fix formatting.
2850 * coff-ppc.c: Likewise.
2851 * coff-rs6000.c: Likewise.
cbfe05c4
KH
2852 * coff-sh.c: Likewise.
2853 * coff-sparc.c: Likewise.
2854 * coff-tic30.c: Likewise.
2855 * coff-tic54x.c: Likewise.
2856 * coff-tic80.c: Likewise.
2857 * coff-w65.c: Likewise.
2858 * coff-we32k.c: Likewise.
2859 * coff-z8k.c: Likewise.
c5930ee6 2860
dac544a8
RH
28612000-11-15 Richard Henderson <[email protected]>
2862
2863 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
2864 section with the same ALLOC|LOAD flags as the source section.
2865
c810873d
JJ
28662000-11-14 Jakub Jelinek <[email protected]>
2867
2868 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
2869 by STO_ALPHA constants.
2870
43646c9d
KH
28712000-11-14 Kazu Hirata <[email protected]>
2872
2873 * coff-pmac.c: Fix formatting.
2874 * coff-ppc.c: Likewise.
2875
051b8577
L
28762000-11-13 H.J. Lu <[email protected]>
2877
2878 * elflink.h (elf_link_add_object_symbols): Also add indirect
2879 symbols for common symbols with the default version.
2880
90460d97
PB
28812000-11-09 Philip Blundell <[email protected]>
2882
2883 * section.c (STD_SECTION): Set gc_mark flag.
2884
b48499ec
KH
28852000-11-11 Kazu Hirata <[email protected]>
2886
2887 * coff-i960.c: Likewise.
2888 * coff-m68k.c: Likewise.
2889 * coff-m88k.c: Likewise.
2890 * coff-mcore.c: Likewise.
2891 * coff-mips.c: Likewise.
2892
c5aeb40f
AO
28932000-11-11 Bernd Schmidt <[email protected]>
2894
2895 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2896
5fcfd273
KH
28972000-11-10 Kazu Hirata <[email protected]>
2898
2899 * coff-h8300.c: Fix formatting.
2900 * coff-h8500.c: Likewise.
2901 * coff-i386.c: Likewise.
2902 * coff-i860.c: Likewise.
2903 * coff-i960.c: Likewise.
2904 * coff-ia64.c: Likewise.
2905
047066e1
KH
29062000-11-09 Kazu Hirata <[email protected]>
2907
2908 * archive.c: Fix formatting.
2909 * archures.c: Likewise.
2910
9a951beb
RH
29112000-11-07 Richard Henderson <[email protected]>
2912
2913 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
2914 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
2915 * section.c (bfd_set_section_contents): Call memcpy if
2916 section->contents set and location not equal to contents plus offset.
2917
aebad5fe
KH
29182000-11-08 Kazu Hirata <[email protected]>
2919
8546af74
KH
2920 * bfd-in.h: Fix formatting.
2921 * bfd-in2.h: Likewise.
2922 * bfd.c: Likewise.
aebad5fe
KH
2923 * binary.c: Likewise.
2924 * bout.c: Likewise.
346ceb11
KH
2925 * coff-a29k.c: Likewise.
2926 * coff-alpha.c: Likewise.
2927 * coff-apollo.c: Likewise.
2928 * coff-aux.c: Likewise.
aebad5fe 2929
0ef5a5bd
KH
29302000-11-07 Kazu Hirata <[email protected]>
2931
2932 * aix386-core.c: Fix formatting.
2933 * aoutf1.h: Likewise.
2934 * aoutx.h: Likewise.
2935 * archures.c: Likewise.
2936 * armnetbsd.c: Likewise.
2937
d562d2fb
AM
29382000-11-07 Alan Modra <[email protected]>
2939
2940 * coff-h8300.c (special): Adjust reloc address.
2941
bbe66d08
JW
29422000-11-06 Steve Ellcey <[email protected]>
2943
4efc3e05 2944 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
bbe66d08
JW
2945 to differentiate elf32 and elf64 on ia64.
2946 * bfd-in2.h: Regenerate.
2947 * config.bfd: Add target for "ia64*-*-hpux*".
2948 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2949 * configure: Regenerate.
4efc3e05 2950 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
bbe66d08
JW
2951 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2952
2953 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2954 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
2955 * Makefile.in: Regnerate.
4efc3e05 2956 * elf64-ia64.c: Deleted.
bbe66d08
JW
2957 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2958
c4dfa77f
KH
29592000-11-06 Kazu Hirata <[email protected]>
2960
2961 * aout-adobe.c: Fix formatting.
2962 * aout-arm.c: Likewise.
2963 * aout-cris.c: Likewise.
2964 * aout-encap.c: Likewise.
2965 * aout-ns32k.c: Likewise.
2966 * aout-target.h: Likewise.
2967 * aout-tic30.c: Likewise.
2968
cf919dfd
PB
29692000-11-05 Philip Blundell <[email protected]>
2970
2971 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2972 BFDs containing no sections to be merged, regardless of their flags.
2973
29742000-11-04 Philip Blundell <[email protected]>
2975
2976 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2977 if a relocation for an undefined symbol also results in an
2978 overflow.
2979
8d88c4ca 29802000-11-06 Christopher Faylor <[email protected]>
8848a8d0
CF
2981
2982 * config.bfd: Add support for Sun Chorus.
2983
46d59bfa
DB
29842000-11-05 David O'Brien <[email protected]>
2985
2986 * configure.in: Recognize alpha-*-freebsd*.
2987 * configure: Regenerate.
2988
d952f17a 29892000-11-02 Luciano Gemme <[email protected]>
420496c1
NC
2990
2991 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2992 (Chunk): New global variable set by a parameter in objcopy.c.
2993 (S3Forced): New global variable set by a parameter in
2994 objcopy.c.
2995 (srec_set_section_contents): If S3Forced is true, always generate
2996 S3 records.
2997 (srec_write_section): Use 'Chunk' to limit maximum length of S
2998 records.
2999
59ff2774
NC
30002000-11-02 Per Lundberg <[email protected]>
3001
3002 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
3003 * Makefile.in: Regenerate.
3004 * bfd-in2.h: Regenerate.
3005 * po/bfd.pot: Regenerate.
d952f17a 3006
ee43f35e
PB
30072000-10-31 Philip Blundell <[email protected]>
3008
3009 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
3010 EF_SOFT_FLOAT if it is defined.
3011
1006ba19
PB
30122000-10-27 Philip Blundell <[email protected]>
3013
3014 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
3015 attempts to mix PIC code with non-PIC, just mark the output as
3016 being position dependent.
d952f17a
AM
3017 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
3018 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1006ba19 3019 all mismatches, not just the first one.
d952f17a 3020
c4920b97
NC
30212000-10-25 Chris Demetriou <[email protected]>
3022
3023 * ieee.c (ieee_archive_p): Plug one of many possible
3024 memory leaks in error handling.
3025
19f7b010
JJ
30262000-10-20 Jakub Jelinek <[email protected]>
3027
3028 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
3029 elf32_sparc_object_p, elf32_sparc_final_write_processing):
3030 Support v8plusb.
3031 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
3032 sparc64_elf_object_p): Support v9b.
3033 * archures.c: Declare v8plusb and v9b machines.
3034 * bfd-in2.h: Ditto.
3035 * cpu-sparc.c: Ditto.
3036
e1e0340b
GK
30372000-10-16 Geoffrey Keating <[email protected]>
3038
ea5fbc67
GK
3039 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
3040 of a GOT reloc.
3041
e1e0340b
GK
3042 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
3043 (SYMBOL_CALLS_LOCAL): New macro.
3044 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
3045 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
3046 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
3047 (ppc_elf_relocate_section): Use flag variable to determine
3048 whether the relocation refers to a local symbol.
3049 Test whether a PLTREL24 reloc will produce a reloc by looking
3050 to see whether a PLT entry was made.
3051
a4b120e1
GK
30522000-10-14 Geoffrey Keating <[email protected]>
3053
3054 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
3055 entries that could serve as a definition for a weak symbol.
3056
5af5b85b
UC
30572000-10-13 Ulf Carlsson <[email protected]>
3058
3059 From Ralf Baechle <[email protected]>
3060
3061 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
3062 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
3063 against local symbols.
3064 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
d952f17a 3065
3ef20aaa
AM
30662000-10-12 Alan Modra <[email protected]>
3067
24376d1b
AM
3068 * section.c (struct sec): Add kept_section.
3069 (struct bfd_comdat_info): Remove sec, we can use above.
3070 (STD_SECTION): Add initializer.
3071 (bfd_make_section_anyway): Init here too.
3072
3073 * bfd-in2.h: Regenerate.
3074
3075 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
d952f17a 3076 zeroing of `flags'.
24376d1b
AM
3077 (elf_link_input_bfd): Set all asection->symbol->value's here, and
3078 fudge values for discarded link-once section symbols.
3079
3ef20aaa
AM
3080 * elf64-hppa.c: Include alloca-conf.h
3081
c0e219cc
AM
30822000-10-11 Alan Modra <[email protected]>
3083
d01e2a23
AM
3084 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
3085
c0e219cc
AM
3086 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
3087
fe268b66
AM
30882000-10-10 Alan Modra <[email protected]>
3089
3090 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
3091
4d7ce4dd
AM
30922000-10-10 Tom Rix <[email protected]>
3093
d952f17a 3094 * section.c (bfd_make_section_anyway): Release newsect ptr when
4d7ce4dd
AM
3095 newsect->symbol fails to alloc. Use bfd_release instead of free.
3096
f3b6f7c3
RH
30972000-10-09 Richard Henderson <[email protected]
3098
3099 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
3100 (elf64_ia64_unwind_entry_compare): New.
3101 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
3102
44852b19
AM
31032000-10-07 Alan Modra <[email protected]>
3104
fc8c40a0
AM
3105 * elflink.h (size_dynamic_sections): Don't create various tags if
3106 .dynstr is excluded from the link. Don't set first dynsym entry
3107 if dynsymcount is zero.
3108 (elf_bfd_final_link): Don't try to swap out dynamic syms if
3109 .dynsym excluded from the link. Don't try to write any dynamic
3110 sections excluded from the link.
3111
44852b19
AM
3112 * elf.c (swap_out_syms): Handle global section symbols.
3113
3e4554a2
DD
31142000-10-05 DJ Delorie <[email protected]>
3115
3116 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
3117 * coffcode.h (coff_set_alignment_hook): read extended reloc count
3118 (coff_write_relocs): write extended reloc count
3119 (coff_write_object_contents): account for extended relocs
3120
fa152c49
JW
31212000-10-05 Jim Wilson <[email protected]>
3122
3123 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
3124 field.
3125 * elf.c (_bfd_elf_make_section_from_shdr): Call the
3126 elf_backend_section_flags function.
3127 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
3128 code.
3129 (elf64_ia64_section_flags): New function containing flag conversion
3130 code.
3131 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
3132 * elfxx-target.h (elf_backend_section_flags): Define.
3133 (elfNN_bed): Initialize elf_backend_section_flags field.
3134
36605136
AM
31352000-10-02 Alan Modra <[email protected]>
3136
3137 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
3138 _bfd_elf32_gc_record_vtable. Correct a comment.
3139
4b6609a0
UC
31402000-10-01 Ulf Carlsson <[email protected]>
3141
3142 From Ralf Baechle <[email protected]>
3143
3144 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
3145 produces binaries with got[1] = 0x80000001 to differenciate them
3146 for the dynamic linker from the broken binaries produced by old
3147 versions.
36605136 3148
f572a39d
AM
31492000-09-30 Petr Sorfa <[email protected]>
3150
3151 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
3152 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
3153 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
3154 * configure: Regenerate.
3155
4da81684
HPN
31562000-09-27 Hans-Peter Nilsson <[email protected]>
3157
3158 Define two bfd_targets for absence and presence of leading
3159 underscore on symbols. Make sure to only link same kind.
3160 * elf32-cris.c (cris_elf_object_p,
3161 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
3162 cris_elf_merge_private_bfd_data): New.
3163 (elf_backend_object_p, elf_backend_final_write_processing,
3164 bfd_elf32_bfd_print_private_bfd_data,
3165 bfd_elf32_bfd_merge_private_bfd_data): Define.
3166 <Target vector definition>: Include elf32-target.h twice with
3167 different macro settings:
3168 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
3169 bfd_elf32_us_cris_vec.
3170 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
3171 (elf_symbol_leading_char): First as 0, then '_'.
3172 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
3173 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
3174 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
3175 * configure: Regenerate.
3176 * targets.c: Declare bfd_elf32_us_cris_vec.
3177 * po/bfd.pot: Regenerate.
3178
9a5aca8c
AM
31792000-09-29 Momchil Velikov <[email protected]>
3180
3181 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
3182 R_ARM_THM_PC22 relocations.
3183
512a2384
AM
31842000-09-29 NIIBE Yutaka <[email protected]>
3185
3186 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
3187
6c99a5c3
AM
31882000-09-29 Momchil Velikov <[email protected]>
3189
3190 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
3191 is has the SEC_HAS_CONTENTS flag set.
3192
64e9ece0 3193