2000-09-08 Kazu Hirata <kazu@hxi.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
d70910e8
KH
12000-09-08 Kazu Hirata <kazu@hxi.com>
2
3 * archive.c: Fix formatting.
4 * coff-arm.c: Likewise.
5 * doc/chew.c: Likewise.
6
77cb06e9
AM
72000-09-08 Alan Modra <alan@linuxcare.com.au>
8
9 * section.c (bfd_get_unique_section_name): Put a dot before the
10 numeric suffix.
11
c044fabd
KH
122000-09-07 Kazu Hirata <kazu@hxi.com>
13
256d98af 14 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
c044fabd
KH
15 * elf.c: Fix formatting.
16
b129bfef
AO
172000-09-07 Alexandre Oliva <aoliva@redhat.com>
18
19 * config.bfd (sh-*-linux*): Added.
20 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
21 * targets.c: Declare them.
22 * elf32-sh-lin.c: New file.
23 * Makefile.am: Compile it.
24 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
25 * configure, Makefile.in: Rebuilt.
26
492055e6
GK
272000-09-06 Geoffrey Keating <geoffk@cygnus.com>
28
29 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
77cb06e9
AM
30 pseduo-section when determining where the TOC ends.
31
32 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
33 output x_tvndx as it is only two bytes wide.
34
35 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
36 reloc is 26 or 32 bits wide.
37
38 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
39 for relocs that don't change anything. Also look at the full
40 6 bits of bitsize.
492055e6 41
566ad7d7
PB
422000-09-06 Philip Blundell <philb@gnu.org>
43
44 * config.bfd (arm*-*-uclinux*): New target.
45
90f2472a
AO
462000-09-06 Alexandre Oliva <aoliva@redhat.com>
47
48 * configure: Rebuilt with new libtool.m4.
49
a966dba9
AM
502000-09-06 Alan Modra <alan@linuxcare.com.au>
51
52 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
53 word for variable name.
54 * bfd-in2.h: Regenerate.
77cb06e9 55
5b343f5a
NC
562000-09-05 Nick Clifton <nickc@redhat.com>
57
58 * config.in: Regenerate.
59 * libbfd.h: Regenerate.
60 * po/bfd.pot: Regenerate.
61 * doc/bfdint.texi: Remove CVS date string - it foils compares with
62 local versions.
77cb06e9 63
188ac662
GK
642000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
65
66 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
67
49bd834c
AM
682000-09-05 Alan Modra <alan@linuxcare.com.au>
69
30667bf3
AM
70 Shared library and PIC support.
71 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
72 (GOT_ENTRY_SIZE): New.
73 (ELF_DYNAMIC_INTERPRETER): New.
74 (STUB_SUFFIX): Define.
75 (LONG_BRANCH_PIC_IN_SHLIB): Define.
76 (RELATIVE_DYNAMIC_RELOCS): Define.
77 (enum elf32_hppa_stub_type): New.
78 (struct elf32_hppa_stub_hash_entry): Rename offset to
79 stub_offset. Add a number of new fields.
80 (struct elf32_hppa_link_hash_entry): New.
81 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
82 global_value.
83 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
84 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
85 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
86 new fields.
87 (hppa_link_hash_newfunc): New function.
88 (elf32_hppa_link_hash_table_create): Use above function. Init new
89 fields.
90 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
91 instead of addend, and remove sym_name from args. Don't use
92 symbol name for local syms, instead use sym index.
93 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
94 stub type rather than size. Pass in hash and handle import stub
95 case. Also pass in reloc instead of offset so we can calculate
96 PCREL22F and PCREL12F branches properly.
97 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
98 import and export stubs too.
99 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
100 import and export stub sizing.
101 (elf32_hppa_check_relocs): New function.
102 (elf32_hppa_adjust_dynamic_symbol): New function.
103 (hppa_discard_copies): New function.
104 (elf32_hppa_size_dynamic_sections): New function.
105 (elf_backend_size_dynamic_sections): Define.
106 (elf32_hppa_finish_dynamic_symbol): New function.
107 (elf_backend_finish_dynamic_symbol): Define.
108 (elf32_hppa_size_stubs): Stash params in link hash table, and move
109 some local vars into the link hash table too. For shared links,
110 trundle over function syms, generating export stubs. Handle
111 PCREL22F branches. Break out stub creation code from here..
112 (hppa_add_stub): .. to here. New function.
113 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
114 call the bfd linker. Use elf_gp to record global pointer.
115 Calculate a value from sections if $global$ is missing.
116 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
117 (elf32_hppa_gc_mark_hook): New function.
118 (elf_backend_gc_mark_hook): Define.
119 (elf32_hppa_gc_sweep_hook): New function.
120 (elf_backend_gc_sweep_hook): Define.
121 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
122 Add rel to args, and remove howto, input_bfd, offset, addend,
123 sym_name as we can recalculate these locally. Handle calls to
124 dynamic objects, extra PIC relocs, PCREL22F branches. Change
125 handling of undefined weak syms. Check that stubs are in range.
126 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
127 message on hitting a DPREL21L reloc that needs fixing. Subtract
128 off PC for PCREL14F. Break out code that does a stub lookup from
129 here..
130 (hppa_get_stub_entry): ..to here. New function.
131 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
132 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
133 relocs, etc. etc.
134 (elf32_hppa_finish_dynamic_sections): New function.
135 (elf_backend_finish_dynamic_sections): Define.
136 (elf_backend_final_write_processing) Define.
137 (hppa_handle_PIC_calls): New function.
138 (elf32_hppa_build_stubs): Call it. Pass link_info to
139 hppa_build_one_stub.
140 (elf32_hppa_create_dynamic_sections): New function
141 to create .plt and .got then set .plt flags correctly.
142 (elf_backend_create_dynamic_sections): Define.
143 (elf32_hppa_object_p): New function.
144 (elf_backend_object_p): Define.
145 (elf32_hppa_elf_get_symbol_type): New function.
146 (elf_backend_get_symbol_type): Define.
147 (elf_backend_can_gc_sections): Define.
148 (elf_backend_want_got_plt): Define.
149 (elf_backend_plt_alignment): Set to 2.
150 (elf_backend_plt_readonly): Define.
151 (elf_backend_want_plt_sym): Define.
152 (elf_backend_got_header_size): Reserve one entry.
153
154 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
155 (elf32_hppa_size_stubs): Pass in multi_subspace.
156 (elf32_hppa_set_gp): Declare.
157
1bd91689
AM
158 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
159 (bfd_get_unique_section_name): New function.
160 * bfd_in2.h: Regenerate.
161
832d951b
AM
162 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
163 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
164 comment.
165
166 From David Huggins-Daines <dhd@linuxcare.com>
167 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
168 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
169 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
170 been updated in finish_dynamic_symbol before modifying function
171 symbol.
172
49bd834c
AM
173 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
174 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
175 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
176 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
177 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
178 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
179 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
180 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
181
182 From David Huggins-Daines <dhd@linuxcare.com>
183 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
184 style of local labels as well.
185
05924f36
PB
1862000-09-03 Philip Blundell <philb@gnu.org>
187
188 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
189 references to undefined symbols in debugging sections.
190
3d96075c
L
1912000-09-02 H.J. Lu <hjl@gnu.org>
192
193 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
194 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
195 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
196 section.
197
de24da47
JE
1982000-09-02 Jason Eckhardt <jle@cygnus.com>
199
200 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
201 (elf32_i860_is_local_label_name): New function and prototype.
202
18e03609
NC
2032000-09-02 Nick Clifton <nickc@redhat.com>
204
205 * configure.in: Increase version number to 2.10.91.
206 * configure: Regenerate.
207 * aclocal.m4: Regenerate.
208 * config.in: Regenerate.
209 * po/bfd.pot: Regenerate.
77cb06e9 210
7a6cc5fb
NC
2112000-09-02 Daniel Berlin <dberlin@redhat.com>
212
213 * elf.c (_bfd_elf_make_section_from_shdr): Add
214 .gnu.linkobce.wi. to the list of debug section names.
215
a092b084
NC
2162000-09-02 Nick Clifton <nickc@redhat.com>
217
218 * dwarf2.c (find_debug_info): New function: Locate a section
219 containing dwarf2 debug information.
220 (bfd_dwarf2_find_nearest_line): Find all sections containing
221 debug information and include them in the stash.
222
37c644f2
AO
2232000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
224
225 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
226 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
227 (sh_reloc_map): Add new relocs.
228 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
229 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
230 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
231 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
232 functions.
233 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
234 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
235 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
236 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
237 New array constants.
238 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
239 New variables.
240 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
241 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
242 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
243 elf_sh_plt_reloc_offset): Define.
244 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
245 elf_sh_link_hash_table): New structs.
246 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
247 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
248 relocation types.
249 (elf_backend_create_dynamic_sections,
250 bfd_elf32_bfd_link_hash_table_create,
251 elf_backend_adjust_dynamic_symbol,
252 elf_backend_size_dynamic_sections,
253 elf_backend_finish_dynamic_symbol,
254 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
255 elf_backend_plt_readonly, elf_backend_want_plt_sym,
256 elf_backend_got_header_size, elf_backend_plt_header_size):
257 Define.
258 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
259 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
260 New relocs.
261 * bfd-in2.h, libbfd.h: Rebuilt.
262
791987af
AM
2632000-09-01 Alan Modra <alan@linuxcare.com.au>
264
265 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
266 change.
267
a39b79b9
JR
268Thu Aug 31 22:49:30 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
269
270 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
271 not initialized, set them to indicate the SH1 instruction set.
272
ac48eca1
AO
2732000-08-31 Alexandre Oliva <aoliva@redhat.com>
274
275 * acinclude.m4: Include libtool and gettext macros from the
276 top level.
277 * aclocal.m4, configure: Rebuilt.
278
7ee38065
MS
2792000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
280
281 * elf.c: Eliminate references to __sparcv9 macro; replace with
282 autoconf variables HAVE_PSINFO32_T etc.
283 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
284 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
285 * config.in: Ditto.
286 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
287 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
288 * aclocal.m4: Ditto.
289 * configure: Regenerate.
290
f69da49f
AM
2912000-08-27 Alan Modra <alan@linuxcare.com.au>
292
293 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
294 for any shared link, not just shared -Bsymbolic.
295 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
296 any shared link, and pass link info to it.
297 (elf_i386_size_dynamic_sections): Update comment.
298 (elf_i386_discard_copies): Modify to discard relocs for symbols
299 that have been forced local.
300 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
301 that have been forced local.
302
724982f6
NC
3032000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
304
305 * elflink.h (elf_link_add_object_symbols): Allow common
306 symbols to have an alignment of 1 if explicitly requested, and
307 not overridden by other definitions.
308
371e71b8
NC
3092000-08-22 Doug Kwan <dkwan@transmeta.com>
310
311 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
312 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
313
a963dc6a
L
3142000-08-22 H.J. Lu <hjl@gnu.org>
315
316 * elf-bfd.h (elf_link_hash_table): Add runpath.
317
318 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
319 * bfd-in2.h: Rebuilt.
320
321 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
322 "runpath" field to NULL.
323 (bfd_elf_get_runpath_list): New function.
324
325 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
326 DT_RUNPATH entries.
327
9bdafcce
AO
3282000-08-22 Alexandre Oliva <aoliva@redhat.com>
329
330 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
331 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
332 explicitly. Improve validation of r_type.
333
7a9af8c4
NC
3342000-08-21 H.J. Lu <hjl@gnu.org>
335
336 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
337 dynamic allocated content space. Add a comment to remind us that
338 one day this ought to be fixed.
339 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
340 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
341 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
342
ded0649c
JE
3432000-08-21 Jason Eckhardt <jle@cygnus.com>
344
345 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
346 field with the newly relocated value instead of adding it to the
347 existing immediate field.
348 (elf32_i860_relocate_splitn): Likewise.
349 (elf32_i860_relocate_highadj): Likewise.
350
d670a150
JE
3512000-08-16 Jason Eckhardt <jle@cygnus.com>
352
353 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
354 was previously just a stub).
355
bb0deeff
AO
3562000-08-16 Alexandre Oliva <aoliva@redhat.com>
357
358 * elflink.c (_bfd_elf_create_got_section): Don't abort().
359 Formatting fixes.
360 (_bfd_elf_create_dynamic_sections): Likewise.
361
be040dbb
JJ
3622000-08-16 Andrew Macleod <amacleod@cygnus.com>
363
364 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
365 for undefined symbols to be the beginning of the section.
366
367 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
368 four extra entries at the beginning of the .rela.plt section.
369 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
370 section to account for the four reserved entries in the .plt section.
371
31612ca6
GK
3722000-08-15 Geoffrey Keating <geoffk@cygnus.com>
373
374 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
375 to the list of NOPs we recognize after a branch-and-link.
376 Use the ori NOP when one is needed.
377
378 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
379 for large archives.
380
c43c2cc5
JW
3812000-08-14 Jim Wilson <wilson@cygnus.com>
382
383 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
384 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
385 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
386 EF_IA_64_ABSOLUTE.
387
1630fd2b
AO
3882000-08-11 Alexandre Oliva <aoliva@redhat.com>
389
390 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
391
fdeafce7
JE
3922000-08-10 Jason Eckhardt <jle@cygnus.com>
393
77cb06e9
AM
394 * elf32-i860.c (elf32_i860_relocate_section): New function.
395 (i860_final_link_relocate): New function.
396 (elf32_i860_relocate_splitn): New function.
397 (elf32_i860_relocate_pc16): New function.
398 (elf32_i860_relocate_highadj): New function.
399 (elf32_i860_howto): Minor adjustments to some relocations.
400 (elf_info_to_howto_rel): Define.
401 (elf_backend_relocate_section): Define.
fdeafce7 402
9b485d32
NC
4032000-08-10 Nick Clifton <nickc@cygnus.com>
404
405 * elf32-arm.h: Fix formatting.
406
00fdaf47
BS
4072000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
408
409 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
410
305d537e
JE
4112000-08-08 Jason Eckhardt <jle@cygnus.com>
412
413 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
414
46f5aac8
KH
4152000-08-07 Kazu Hirata <kazu@hxi.com>
416
dce61835
KH
417 * ieee.c (ieee_write_debug_part): Rewrite a comment.
418 * elf64-ia64.c: Fix a typo.
46f5aac8 419
0e5136c6
JE
4202000-08-05 Jason Eckhardt <jle@cygnus.com>
421
422 * elf32-i860 (elf32_i860_howto_table): New structure.
423 (lookup_howto): New function.
424 (elf32_i860_reloc_type_lookup): New function.
425 (elf32_i860_info_to_howto_rela): New function.
426 (elf_code_to_howto_index): New structure.
427 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
428 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
429 elf32_i860_reloc_type_lookup.
430
7dca057b
JL
4312000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
432
433 * som.c (struct fixup_format): Constify `format'.
434 (som_hppa_howto_table): Use SOM_HOWTO macro.
435 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
436 (som_bfd_reloc_type_lookup): Likewise.
437 (compare_subspaces): Remove unused `count1', `count2'.
438 (som_begin_writing): Remove unused `total_reloc_size'.
439 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
440 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
441 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
442 (som_find_nearest_line): Decorate unused parameter(s).
443 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
77cb06e9 444 (som_bfd_link_split_section): Likewise.
7dca057b 445
bc67d8a6
NC
4462000-08-03 Nick Clifton <nickc@cygnus.com>
447
448 * section.c: Restore backed out code.
449 * elf.c: Restore backed out code.
450 (copy_private_bfd_data): Fix bug preventing stipped dynamic
451 binaries from working.
452 * bfd-in2.h: Regenerate.
453
c0f7859b
L
4542000-08-03 H.J. Lu <hjl@gnu.org>
455
456 * section.c: Back out the change made by Nick Clifton
457 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
458 binaries.
459 * bfd-in2.h: Likewise.
460 * elf.c: Likewise.
461
61ff1804
AO
4622000-08-03 Alexandre Oliva <aoliva@redhat.com>
463
464 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
465
a87fdb8d
JE
4662000-07-31 Jason Eckhardt <jle@cygnus.com>
467
77cb06e9
AM
468 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
469 * bfd-in2.h, libbfd.h: Regenerate.
a87fdb8d 470
5c440b1e
NC
4712000-07-31 Nick Clifton <nickc@cygnus.com>
472
473 * section.c (struct sec): Add new boolean field 'segment_mark'.
474 (STD_SECTION): Initialise new field to zero.
475
476 * bfd-in2.h: Regenerate.
477
77cb06e9 478 * elf.c (copy_private_bfd_data): Reorganise section to segment
5c440b1e
NC
479 mapping to cope with moved sections requiring new segments,
480 and overlapping segments.
481 (SEGMENT_END): New macro: Return the end address of a segment.
482 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
483 contains a section by comparing their VMA addresses.
484 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
485 contains a section by comparing their LMA addresses.
486 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
487 section should be included in a segment.
488 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
489 follows another in memory.
490 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
491 segments overlap.
492
aa76cae8 4932000-07-22 Jason Eckhardt <jle@cygnus.com>
24208c5c
JE
494
495 * cpu-i860.c: Added comments.
496
497 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
498 bfd_elf32_i860_little_vec.
499 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
500 (ELF_MAXPAGESIZE): Changed to 4096.
501
502 * targets.c (bfd_elf32_i860_little_vec): Declaration of
503 new target.
504 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
505
506 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
507 config for little endian elf32 i860.
508 (targ_defvec): Define for the new config above
77cb06e9 509 as "bfd_elf32_i860_little_vec".
24208c5c
JE
510 (targ_selvecs): Define for the new config above
511 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
512
513 * configure.in (bfd_elf32_i860_little_vec): Added recognition
514 of new target vec.
515
516 * configure: Regenerated.
517
456981d7
L
5182000-07-27 H.J. Lu <hjl@gnu.org>
519
520 * elflink.h (elf_merge_symbol): Take one more argument,
521 dt_needed, to indicate if the symbol comes from a DT_NEEDED
522 entry. Don't overide the existing weak definition if dt_needed
523 is true.
524 (elf_link_add_object_symbols): Pass dt_needed to
525 elf_merge_symbol ().
526
755cfd29
NC
5272000-07-27 Nick Clifton <nickc@cygnus.com>
528
529 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
530 allocated contents.
531
1a6df346
GK
5322000-07-25 Geoffrey Keating <geoffk@cygnus.com>
533
adfdf838
GK
534 * configure.host (*-*-aix*): AIX has 'long long' always.
535
1a6df346
GK
536 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
537 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
538 (xcoff_write_archive_contents_big): Don't update the offset
539 of the symbol table, xcoff_write_armap will do it.
540
313ba8d6
UC
5412000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
542
543 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
544 of dynobj for SGI_COMPAT checks.
545
3eb6f68f 5462000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
20bccb34 547
77cb06e9
AM
548 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
549 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
550 * bfd-in2.h: Regenerate.
20bccb34 551
7a3120d9
NC
5522000-07-21 Nick Clifton <nickc@cygnus.com>
553
554 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
555 range symbol indices in relocs and issue an error message.
556
4d538889
L
5572000-07-20 H.J. Lu <hjl@gnu.org>
558
559 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
560 info->new_dtags when setting DT_FLAGS_1. It will only be set
561 by the new linker options. It shouldn't break anything.
562
b586af58
L
5632000-07-20 H.J. Lu <hjl@gnu.org>
564
565 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
566 only if info->new_dtags is true.
567
c25373b7
L
5682000-07-20 H.J. Lu <hjl@gnu.org>
569
570 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
571 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
572
06c15ad7
HPN
5732000-07-20 Hans-Peter Nilsson <hp@axis.com>
574
575 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
576 (ALL_MACHINES_CFILES): Add cpu-cris.c.
577 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
578 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
579 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
580 * Makefile.in: Rebuild.
581 * aclocal.m4: Rebuild.
582 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
583 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
584 (bfd_cris_arch): Declare.
585 (bfd_archures_list): Add bfd_cris_arch.
586 * bfd-in2.h: Rebuild.
587 * config.bfd: (cris-*-*): New target.
588 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
589 * configure: Rebuild.
590 * elf.c (prep_headers): Add bfd_arch_cris.
591 * libbfd.h: Rebuild.
592 * libaout.h (enum machine_type): Add M_CRIS.
593 * reloc.c: Add CRIS relocations.
3bd336f7 594 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
06c15ad7
HPN
595 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
596 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
597 * po/POTFILES.in, po/bfd.pot: Regenerate.
598
d6cf2879
L
5992000-07-19 H.J. Lu <hjl@gnu.org>
600
601 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
602 DF_TEXTREL if DT_TEXTREL is set.
603 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
604 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
605 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
606 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
607 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
608 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
609 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
610 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
611 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
612 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
613
c25373b7 614 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
d6cf2879
L
615 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
616 DT_RPATH is set.
617 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
618
74816898
L
6192000-07-19 H.J. Lu <hjl@gnu.org>
620
621 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
622 * bfd-in2.h: Rebuild.
623
624 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
625 (elf_dt_soname): New.
626
627 * elf.c (bfd_elf_set_dt_needed_soname): New.
628
629 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
630 entry if the shared object loaded by DT_NEEDED is used to
631 resolve the reference in a regular object.
632
36a30e65
L
6332000-07-19 H.J. Lu <hjl@gnu.org>
634
635 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
636 DT_DEPAUDIT and DT_AUDIT as strings.
637
1d713d9e
NC
6382000-07-19 Nick Clifton <nickc@cygnus.com>
639
640 * format.c: Fix formatting.
641
d48188b9
L
6422000-07-19 H.J. Lu <hjl@gnu.org>
643
644 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
645
94558834
L
6462000-07-19 H.J. Lu <hjl@gnu.org>
647
648 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
649 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
650 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
651 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
652 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
653 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
654 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
655
125c4a69
NC
656Tue Jul 18 13:11:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
657
658 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
77cb06e9 659 renamed functions from here...
125c4a69
NC
660 (assign_section_numbers): Use renamed functions.
661 (prep_headers): Use renamed functions.
77cb06e9 662
125c4a69
NC
663 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
664 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
665 * bfd-in2.h: Regenerate.
666
31a9bdd9
UC
6672000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
668
669 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
313ba8d6 670 parenthesis in if statement.
31a9bdd9 671
f7cb7d68
UC
6722000-07-17 Koundinya K <kk@ddeorg.soft.net>
673
77cb06e9 674 Enable the support for Traditional MIPS.
f7cb7d68
UC
675 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
676 return ict_none appropriately for traditional mips targets.
677 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
678 (STUB_MOVE): Conditionalize for traditonal mips.
679 (STUB_LI16): Likewise.
680 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
681 room for RTPROC header.
682 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
683 the permission for the PT_DYNAMIC as read, write and execute.
684 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
685 for traditonal mips.
686 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
687 _DYNAMIC_LINKING for traditonal mips.
688 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
689 in case of traditonal mips.
690 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
691 entry is required. For a function if PLT is not required then set the
692 corresponding hash table entry to 0.
77cb06e9 693 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
f7cb7d68 694 traditonal mips.
77cb06e9 695 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
f7cb7d68 696 shared object set the value to 0.
77cb06e9 697 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
f7cb7d68
UC
698 _DYNAMIC_LINKING for traditonal mips.
699 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
700 for traditonal mips.
77cb06e9 701
930d924d
L
7022000-07-15 H.J. Lu <hjl@gnu.org>
703
704 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
705
e67f03db
DD
7062000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
707
708 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
709 out a structure that is BFD_IN_MEMORY.
710
0ba2a60e
AM
7112000-07-11 Alan Modra <alan@linuxcare.com.au>
712
713 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
714 bfd pointer. Print section id instead of bfd pointer for local
715 syms. Prefix addend with `+' for global syms as well as local.
716 Correct calculation of name component lengths.
717 (elf64_hppa_check_relocs): Update call to get_dyn_name.
718
719 From David Huggins-Daines <dhd@linuxcare.com>
720 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
721 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
722 (elf64_hppa_modify_segment_map): Likewise.
723
6d9019e4
AC
724Tue Jul 11 17:21:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
725
726 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
77cb06e9 727 addresses to be "naturally" sign extended. Return -1 if unknown.
0ba2a60e 728 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6d9019e4
AC
729 * bfd-in2.h: Regenerate.
730
23e2c83b
AC
731Tue Jul 11 16:25:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
732
733 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
77cb06e9 734 and ECOF_SIGNED_64 to list ways to extract an offset.
23e2c83b 735 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
77cb06e9
AM
736 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
737 Update.
23e2c83b
AC
738 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
739 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
740
448cafa4
AC
741Tue Jul 11 16:03:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
742
743 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
77cb06e9 744 bfd_get_start_address.
448cafa4
AC
745 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
746 (elf_swap_ehdr_out): Ditto.
747
83ea41ad
NC
7482000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
749
750 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
751 compatibility with older binutils.
752
3df7b4e2
AM
7532000-07-10 Alan Modra <alan@linuxcare.com.au>
754
755 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
756 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
757
b7af50e3
AM
758 From Ryan Bradetich <rbradetich@uswest.net>
759 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
760 (parse_line_table): Ditto.
761 (_bfd_dwarf1_find_nearest_line): Ditto.
762 * syms.c (cmpindexentry): Remove extra `*' from params.
763
adb76a3e
UC
7642000-07-09 Koundinya K <kk@ddeorg.soft.net>
765
77cb06e9
AM
766 * elf32-mips.c (sort_dynamic_relocs): New Function.
767 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
adb76a3e
UC
768 via qsort to sort the dynamic relocations in increasing r_symndx
769 value.
77cb06e9 770
edd21aca
AM
7712000-07-09 Alan Modra <alan@linuxcare.com.au>
772
773 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
774 ATTRIBUTE_UNUSED to unused args.
775 (get_opd): Likewise.
776 (get_plt): Likewise.
777 (get_dlt): Likewise.
778 (get_stub): Likewise.
779 (elf64_hppa_adjust_dynamic_symbol): Likewise.
780 (elf64_hppa_link_output_symbol_hook): Likewise.
781 (elf64_hppa_check_relocs): Delete unused var.
782 (elf64_hppa_size_dynamic_sections): Likewise.
783 (elf64_hppa_finalize_opd): Likewise.
784 (elf64_hppa_finalize_dynreloc): Likewise.
785 (elf64_hppa_modify_segment_map): Likewise.
786 (elf64_hppa_finish_dynamic_sections): Likewise.
787
788 * elf-hppa.h (elf_hppa_final_write_processing): Add
789 ATTRIBUTE_UNUSED to unused args.
790 (elf_hppa_final_link_relocate): Likewise.
791 (elf_hppa_record_segment_addrs): Add paretheses.
792 (elf_hppa_relocate_section): Constify dyn_name.
793
794 From David Huggins-Daines <dhd@linuxcare.com>
795 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
796 rearrange case statement so that it gets preferred to 32-bit ones.
797
798 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
799 asection->id instead of address of asection structure.
800 (elf32_hppa_size_stubs): Likewise.
801
802 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
803 for .init* and .fini*.
804
805 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
806 and addends used in stub names to 32 bits.
807 (elf32_hppa_size_stubs): Likewise.
808
809 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
810 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
811 not bfd_put_64. Fix minor comment typo and formatting.
812
813 Changes to create multiple linker stubs, positioned immediately
814 before the section where they are required.
815 * elf32-hppa.c: Don't include hppa_stubs.h.
816 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
817 (elf32_hppa_stub_hash_table): Delete.
818 (elf32_hppa_link_hash_entry): Delete.
819 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
820 stub_hash_table, and store the struct here rather than a pointer.
821 Delete output_symbol_count. Add offset array. Change
822 global_value to a bfd_vma.
823 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
824 (elf32_hppa_stub_hash_traverse): Delete.
825 (elf32_hppa_name_of_stub): Delete.
826 (elf32_hppa_link_hash_lookup): Delete.
827 (elf32_hppa_link_hash_traverse): Delete.
828 (elf32_hppa_stub_hash_table_init): Delete.
829 (elf32_hppa_size_of_stub): Pass input section and offset rather
830 than location and calculate location here. Don't pass name as all
831 stubs are now the same size.
832 (elf32_hppa_stub_hash_newfunc): Init new fields.
833 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
834 too.
835 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
836 comparing against ints. Rewrite stub handling code.
837 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
838 Case enums to int before comparing against ints. Remove
839 bfd_reloc_dangerous case.
840 (elf32_hppa_build_one_stub): Rewrite.
841 (elf32_hppa_size_one_stub): New function.
842 (elf32_hppa_build_stubs): Rewrite.
843 (elf32_hppa_size_stubs): Pass in linker call-back functions.
844 Rewrite stub-handling specific code.
845
846 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
847
848 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
849
850 * hppa_stubs.h: Delete.
851 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
852 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
853 * Makefile.in: Regenerate.
854
855 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
856 e_nlrsel.
857
858 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
859
860 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
861 and section name for bfd_reloc_notsupported error message.
862 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
863 bfd_reloc_notsupported.
864 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
865
866 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
867 undefined weak symbols for all relocs.
868 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
869 offsets are relative to one past the delay slot.
870 (elf32_hppa_size_stubs): Account for reloc addend when calculating
871 branch destination. Put addend into stub name too.
872 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
873 adjust by 8 when deciding whether a linker stub is needed. Put
874 addend into stub name as for above.
875
876 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
877 various args and vars.
878 (elf32_hppa_bfd_final_link_relocate): Here too.
879 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
880 inner block var to avoid shadowing.
881
882 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
883 unsigned.
884 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
885 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
886 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
887
888 * libhppa.h: Change practically all unsigned ints to plain ints.
889 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
890 prototypes.
891
892 From Ryan Bradetich <rbradetich@uswest.net>
893 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
894 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
895 suit above.
896 From David Huggins-Daines <dhd@linuxcare.com>
897 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
898 to the new OP_* ones.
899
900 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
901 error exit. Bail out earlier on plabel relocs that we aren't
902 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
903 string, and then don't free our copy.
904 (elf32_hppa_build_one_stub): Make insn unsigned int.
905
906 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
907 available with BL, not BE and BLE.
908
909 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
910 code for elf arg relocs.
911 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
912 argument with elf_link_hash_entry h. Handle undefined weak
913 symbols. Move $global$ lookup from here...
914 (elf32_hppa_relocate_section): ...to here. Return correct error
915 message for non-handled relocs.
916 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
917 wrong test was -0x3ffff to +0x40000.
918
919 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
920 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
921 Handle them as such.
922 (elf_hppa_relocate_insn): Fix a typo.
923
924 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
925 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
926 assemble_17, assemble_21): Delete.
927 Supply defines for all 64 possible opcodes.
928 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
929 formats. Handle COMICLR.
930 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
931 -10, -16, 16, 22.
932
933 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
934 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
935 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
936 to suit.
937 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
938 the local syms - did this code get deleted accidentally? Ignore
939 undefined and undefweak syms.
940
941 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
942 block. Use it instead of elf64_hppa_hash_table (info).
943 (elf_hppa_final_link_relocate): Use hppa_info instead of
944 elf64_hppa_hash_table (info).
945
946 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
947 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
948 (hppa_rebuild_insn): Mask immediate bits here instead.
949 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
950
52b219b5
AM
9512000-07-08 Alan Modra <alan@linuxcare.com.au>
952
953 * section.c (struct sec): Add id field. Tidy comment formatting.
954 (bfd_make_section_anyway): Set id.
955 (STD_SECTION): Init id too.
956 Change CONST to const throughout.
957 * archures.c (bfd_arch_info): Tidy comment.
958 (bfd_arch_list): Change a CONST to const.
959 * libbfd-in.h: Tidy comments and replace CONST with const.
960 * elf-bfd.h: Likewise.
961 * libbfd.h: Regenerate.
962 * bfd-in2.h: Regenerate.
963 * libcoff.h: Regenerate.
964
8000a618
DD
9652000-07-07 DJ Delorie <dj@redhat.com>
966
967 * archive.c (_bfd_write_archive_contents): Add an informative
968 comment.
969
c3b7c767
NC
9702000-07-06 Kazu Hirata <kazu@hxi.com>
971
972 * srec.c: Fix formatting.
973
302ab118
DD
9742000-06-05 DJ Delorie <dj@redhat.com>
975
976 * MAINTAINERS: new
977
ed1de528
AO
9782000-07-04 Alexandre Oliva <aoliva@redhat.com>
979
980 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
981 value of PC-relative offsets.
982
70bcb145
JW
9832000-07-03 Jim Wilson <wilson@cygnus.com>
984
985 * elf64-alpha.c (alpha_elf_size_info): New.
986 (elf_backend_size_info): Define to alpha_elf_size_info.
987 * elfcode.h (elf_size_info): Change hash bucket size to 4.
988
b8ee63fa
UC
9892000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
990
991 * elf32-mips.c: Include elf32-target.h again for the traditional
992 MIPS targets.
993
00d2865b
NC
9942000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
995
996 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
997 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
998 (avr_info_to_howto_rela): Likewise.
999 (elf32_avr_gc_mark_hook): Likewise.
1000 (elf32_avr_gc_sweep_hook): Likewise.
1001 (elf32_avr_relocate_section): Likewise.
1002
e4202681
NC
10032000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
1004
1005 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
1006 an external symbol for a non-shared, non-relocatable link.
77cb06e9 1007
e4202681
NC
10082000-07-03 Nick Clifton <nickc@redhat.com>
1009
99d6ac2f
NC
1010 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
1011 is an external symbol.
e4202681
NC
1012 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
1013 external symbol.
77cb06e9 1014
289c596c
NC
10152000-07-03 Kazu Hirata <kazu@hxi.com>
1016
1017 * reloc16.c: Fix formatting.
1018
dd745cfa
UC
10192000-07-01 Koundinya K <kk@ddeorg.soft.net>
1020
77cb06e9
AM
1021 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
1022 to add a new target for traditional mips i.e
1023 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
1024 * configure.in: Likewise.
1025 * configure: Rebuild.
1026 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
dd745cfa
UC
1027 bfd_target_vector.
1028 (bfd_elf32_tradlittlemips_vec): Likewise.
77cb06e9
AM
1029 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
1030 to see that elfNN_bed does not get redefined even if the target file
1031 is included twice for a chip. See elf32-mips.c.
1032
0bdaf48b
AM
10332000-07-01 Alan Modra <alan@linuxcare.com.au>
1034
1035 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
1036 (CLEANFILES): Add DEPA.
1037 * Makefile.in: Regenerate.
1038
c75df619 10392000-06-30 DJ Delorie <dj@cygnus.com>
77cb06e9 1040
c75df619 1041 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
77cb06e9 1042 can't assume the PE header is at 0x80.
c75df619 1043
b4b415e5
DD
10442000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
1045
cda43a1d 1046 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
b4b415e5 1047
addd3117
DD
10482000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
1049
1050 * go32stub.h: Update stub.
1051
65aa24b6
NC
10522000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
1053
1054 * archures.c (bfd_mach_avr5): Define.
1055 * bfd-in2.h (bfd_mach_avr5): Define.
1056 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
1057 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
1058 (compatible): Update comment. Add missing test.
1059 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
1060 for avr2 and avr4. Simplify 8K wrap code.
1061 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
1062 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
1063
cc040812
NC
10642000-06-26 Kazu Hirata <kazu@hxi.com>
1065
1066 * coff-h8300.c: Fix formatting.
1067 * cpu-h8300.c: Likewise.
1068
b1bcb49f
AO
10692000-06-24 Alexandre Oliva <aoliva@redhat.com>
1070
1071 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
1072 for local symbols whose names are unknown.
1073
1581f8c9
AM
10742000-06-22 Alan Modra <alan@linuxcare.com.au>
1075
1076 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1077 find one.
1078 * Makefile.in: Regenerate.
1079 * doc/Makefile.in: Regenerate.
1080
bbeb2e03
L
10812000-06-20 H.J. Lu <hjl@gnu.org>
1082
1083 * Makefile.am: Rebuild dependency.
1084 * Makefile.in: Rebuild.
1085
8a20f077
UC
10862000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1087
1088 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
1089 (elf_backend_copy_indirect_symbol): Map to the new function.
1090
2ab47eed
AM
10912000-06-20 Alan Modra <alan@linuxcare.com.au>
1092
1093 * archive.c (normalize): Correct pointer comparison when checking
1094 for backslashes.
1095 (bfd_bsd_truncate_arname): Likewise.
1096 (bfd_gnu_truncate_arname): Likewise.
1097
b305ef96
UC
10982000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
1099
1100 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
1101 sections elf_{text,data}_{section,symbol}.
1102 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
1103 (_bfd_mips_elf_hide_symbol): New function.
1104 (elf_backend_hide_symbol): Map to the new function.
1105 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
1106 definitions of mips_elf_{text,data}_{section,symbol}.
1107 (mips_elf_local_relocation_p): Try to find the direct symbol
1108 based on new check_forced argument.
1109 (mips_elf_calculate_relocation): Use new version of
1110 mips_elf_local_relocation_p.
1111 (mips_elf_relocate_section): Likewise.
1112 (_bfd_mips_elf_relocate_section): Likewise.
1113 (mips_elf_sort_hash_table): Only assert that have enough GOT
1114 space.
1115 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
1116 entry if the relocation based on the new external argument.
1117 (mips_elf_create_dynamic_relocation): Assert that we have a
1118 section contents allocated where we can swap out the dynamic
1119 relocations.
1120 (mips_elf_calculate_relocation): Find the real hash-table entry
1121 correctly by using h->root.root.type. Only create a dynamic
1122 relocation entry if the symbol is defined in a shared library.
1123 Create an external GOT entry for the GOT16 relocation if the
1124 symbol was forced local.
1125 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
1126 dynamic index if the symbol was forced local.
1127
11282000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1129
1130 * elf32-mips.c: Fix typos in comments.
77cb06e9 1131
1605fc4f
MK
11322000-06-19 Mark Kettenis <kettenis@gnu.org>
1133
1134 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
1135 CORE_VERSION_1.
1136
60bcf0fa
NC
11372000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
1138
1139 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
1140 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
1141 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
1142 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
1143 (bfd_elf32_m68hc11_vec): Likewise.
77cb06e9 1144 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
60bcf0fa
NC
1145 Supports 68hc11 & 68hc12 at the same time.
1146 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
1147 bfd_target_vector.
1148 (bfd_elf32_m68hc11_vec): Likewise.
1149 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
1150 * archures.c (bfd_m68hc12_arch): Define and register in global list
1151 (bfd_m68hc11_arch): Likewise.
1152 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
1153 BFD_RELOC_M68HC11_3B): Define.
1154 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
1155 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
1156
f41cbf03
UC
11572000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
1158
1159 * elf_bfd.h (struct elf_backend_data): Add info argument to
1160 elf_backend_hide_symbol.
1161 (_bfd_elf_link_hash_hide_symbol): Likewise.
1162 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
1163 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
1164 * elflink.h (elf_link_add_object_symbols): Likewise.
1165 (elf_link_assign_sym_version): Likewise.
77cb06e9 1166
689be717
L
11672000-06-18 H.J. Lu <hjl@gnu.org>
1168
1169 * coff-i386.c (coff_i386_reloc): Don't return in case of
1170 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
1171 Compensate PE relocations when linking with non-PE object
1172 files to generate a non-PE executable.
1173
9a8f3bb7
UC
11742000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
1175
1176 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
1177 GOT entries if we're doing a static link or -Bsymbolic link.
1178
32f0787a
UC
11792000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
1180
1181 * elflink.h (elf_link_adjust_relocs): Check for and call backend
1182 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
1183 available.
1184 (elf_link_output_relocs): Likewise.
1185 (elf_reloc_link_order): Likewise.
77cb06e9 1186
87f33987
ND
11872000-06-16 Nicholas Duffek <nsd@redhat.com>
1188
1189 * archures.c (enum bfd_architecture): #define constants for
1190 PowerPc and RS6000 machine numbers.
1191 * bfd-in2.h: Regenerate.
1192 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
1193 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
1194 and RS6000 machine numbers using #defined constants from
1195 archures.c.
1196 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
1197 machine numbers using #defined constants from archures.c. Add
1198 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
1199 64-bit words in 620 entry.
1200 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
1201 RSC, and RS2.
1202 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
1203
a2fdf270
ND
12042000-06-16 Nicholas Duffek <nsd@cygnus.com>
1205
1206 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
1207 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
1208 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
1209
9bd09e22
ND
12102000-06-16 Nicholas Duffek <nsd@redhat.com>
1211
1212 * bfd-in.h (bfd_family_coff): Define.
1213 * bfd-in2.h: Regenerate.
1214 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
1215 coff_find_nearest_line): Check COFFness using bfd_family_coff()
1216 instead of bfd_target_coff_flavour.
1217 * cofflink.c (_bfd_coff_final_link): Likewise.
1218 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
1219 exclude XCOFF files.
1220 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
1221 Likewise.
1222 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
1223 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
1224 * xcofflink.c (XCOFF_XVECP): Delete.
1225 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
1226 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
1227 bfd_xcoff_record_link_assignment,
1228 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
1229 check for bfd_target_xcoff_flavour.
1230
59d9f049
ND
12312000-06-16 Nicholas Duffek <nsd@redhat.com>
1232
1233 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
1234 files on AIX 4.3.
1235 (read_hdr): New function.
1236 (rs6000coff_core_p): Store mstsave or __context64 struct instead
1237 of trying to extract individual registers. Set abfd->arch_info
1238 to match the architecture that created the core file.
1239 (rs6000coff_get_section_contents): Delete.
1240 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
1241
63e39178
L
12422000-06-14 H.J. Lu <hjl@gnu.org>
1243
1244 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
1245 is NULL.
1246
bcef29e6
L
12472000-06-13 H.J. Lu <hjl@gnu.org>
1248
1249 * configure: Regenerate.
1250
26bfd1c0
JR
1251Tue Jun 13 01:28:57 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1252
1253 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
1254 armpei_little_vec.
1255
946efd95
DB
12562000-06-08 David O'Brien <obrien@FreeBSD.org>
1257
1258 * configure.in (VERSION): Update to show this is the CVS mainline.
1259
1b452ec6
AM
12602000-06-07 Alan Modra <alan@linuxcare.com.au>
1261
1262 * elf32-d10v.c: Include elf/d10v.h
1263 (enum reloc_type): Delete.
1264 * elf32-d30v.c: Include elf/d30v.h
1265 (enum reloc_type): Delete.
1266
1267 * Makefile.am: Run "make dep-am" to regenerate dependencies.
1268 * Makefile.in: Regenerate.
1269
1270 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
dc47f327
AM
1271 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
1272 move HOWTOs into elf_howto_table.
1b452ec6 1273 (R_386_standard, R_386_ext_offset): Define.
dc47f327 1274 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
1b452ec6 1275 (elf_i386_reloc_type_lookup): Modify calculation of index into
dc47f327 1276 elf_howto_table since we've removed the padding.
1b452ec6
AM
1277 (elf_i386_info_to_howto_rel): Likewise.
1278 (elf_i386_relocate_section): Likewise.
1279
e0ebfc61
MS
12802000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
1281
1282 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
1283
9d6eee78
L
12842000-06-05 H.J. Lu <hjl@gnu.org>
1285
1286 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
1287 an error when seeing an undefined symbol with hidden/internal
1288 attribute. It is handled in *_relocate_section ().
1289
94b6c40a
L
12902000-06-05 H.J. Lu <hjl@gnu.org>
1291
1292 * elflink.h (elf_fix_symbol_flags): Follow the link for the
1293 indirect symbol for the ELF_LINK_NON_ELF bit.
1294 (elf_link_output_extsym): Don't output the indirect symbol even
1295 if the ELF_LINK_NON_ELF bit is set.
1296
0af288f3
C
12972000-06-01 J.T. Conklin <jtc@redback.com>
1298
1299 * config.bfd (i[3456]86-*-netbsdelf*): New target.
1300 (i[3456]86-*-netbsdaout*): New target.
1301 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
1302 (i[3456]86-*-openbsd*): Likewise.
1303
12df4d3c
AC
1304Tue May 30 15:39:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
1305
1306 * trad-core.c: From hpux-core.c, include <dirent.h> or
77cb06e9 1307 <sys/ndir.h> when possible.
12df4d3c 1308
c0ae4ccc
NC
13092000-05-31 Nick Clifton <nickc@cygnus.com>
1310
1311 * opintl.h (_(String)): Explain why dgettext is used instead
77cb06e9 1312 of gettext.
c0ae4ccc 1313
321fa097
UD
13142000-05-31 Ulrich Drepper <drepper@redhat.com>
1315
1316 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
1317 definitions. We must not assume they are sorted in the file
1318 according to their index numbers.
1319
70d72e0e
AM
13202000-05-31 Alan Modra <alan@linuxcare.com.au>
1321
1322 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
77cb06e9
AM
1323 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
1324 R_PARISC_DIR17F are for absolute branches; Handle them as such.
70d72e0e 1325
96f6d4c4
NC
13262000-05-30 Nick Clifton <nickc@cygnus.com>
1327
1328 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
1329 80960CA, 80960MC as valid machine names.
1330
38048eb9
L
13312000-05-30 H.J. Lu <hjl@gnu.org>
1332
1333 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
1334 visibility bits if the symbol is undefined. Correctly handle
1335 weak undefined symbols with hidden and internal attributes.
1336
1337 * elflink.h (elf_link_add_object_symbols): Always turn the
1338 symbol into local if it has the hidden or internal attribute.
1339
8c763017
PB
13402000-05-29 Philip Blundell <philb@gnu.org>
1341
1342 * ppcboot.c: Add packed attribute if compiling with GCC.
1343
1ae00f9d
AM
13442000-05-29 Anatoly Vorobey <mellon@pobox.com>
1345
1346 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
1347
4a938328
MS
13482000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
1349
77cb06e9 1350 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
4a938328
MS
1351 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
1352 corefile on a 64-bit (Sparc Solaris) host. Also clean up
1353 a few old comments.
1354
5af11cab
AM
13552000-05-26 Alan Modra <alan@linuxcare.com.au>
1356
2114f57b
AM
1357 * Makefile.am: Update dependencies with "make dep-am"
1358 * Makefile.in: Regenerate.
1359
5af11cab
AM
1360 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
1361 bindtextdomain): Replace defines with those from intl/libgettext.h
1362 to quieten gcc warnings.
1363
13642000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
1365
1366 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
1367
1368 * archive.c (normalize, bfd_bsd_truncate_arname,
1369 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
1370 file names with backslashes.
1371
1372 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
1373 before opening it.
1374
1375 * sysdep.h: Include filenames.h.
1376
b6cdd0fd
AM
13772000-05-26 Alan Modra <alan@linuxcare.com.au>
1378
1379 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
1380
f7775d95
JJ
13812000-05-26 Jakub Jelinek <jakub@redhat.com>
1382
1383 * elf64-sparc.c (sparc64_elf_relax_section): New.
1384 (sparc64_elf_relocate_section): Optimize tail call into branch always
1385 if possible.
1386 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1387 (elf32_sparc_relax_section): New.
1388
6c08d697
JJ
13892000-05-26 Jakub Jelinek <jakub@redhat.com>
1390
1391 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
1392 Remove unusued variables.
1393 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
1394 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
1395 previous fix, so that shared libs really don't influence targets
1396 extension mask and memory model.
1397
edb72b3b
L
13982000-05-23 H.J. Lu <hjl@gnu.org>
1399
1400 * elf64-alpha.c (elf64_alpha_relocate_section): Check
1401 h->root.other not h->other.
ba09750c
L
1402 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
1403
1404 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
edb72b3b 1405
3a27a730
L
14062000-05-23 H.J. Lu <hjl@gnu.org>
1407
1408 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
1409 undefined symbol with the non-default visibility attributes.
1410 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
1411 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
1412 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1413 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1414 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1415 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
1416 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1417 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1418 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
1419 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
1420 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1421
748abff6
RH
14222000-05-22 Richard Henderson <rth@cygnus.com>
1423
1424 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
1425 PCREL22, PCREL64I. Zero size of special relocs.
1426 (elf64_ia64_reloc_type_lookup): Likewise.
1427 (USE_BRL, oor_brl, oor_ip): New.
1428 (elf64_ia64_relax_section): New.
1429 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
1430 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
1431 (elf64_ia64_relocate_section): Likewise.
1432 (bfd_elf64_bfd_relax_section): New.
1433 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
1434 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
1435 * bfd-in2.h, libbfd.h: Regenerate.
1436
fb67355a
NC
14372000-05-22 Nick Clifton <nickc@cygnus.com>
1438
1439 * configure.in : Add peigen.lo to MIPS PE targets.
1440 * configure: Regenerate.
1441
1fe494a5
NC
14422000-05-22 Momchil Velikov <velco@fadata.bg>
1443
1444 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
748abff6 1445 only if it is known for both input and output bfds. Separate
1fe494a5
NC
1446 error message strings as in some languages, it may be necessary
1447 to change more than one place in the string to change between
77cb06e9 1448 'big' and 'little'.
1fe494a5
NC
1449
1450 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
77cb06e9
AM
1451 endianess checks, call _bfd_generic_verify_endian_match() instead.
1452
1453 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
1fe494a5 1454
77cb06e9 1455 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
1fe494a5
NC
1456
1457 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
77cb06e9 1458 endianess before checking bfd flavours.
1fe494a5 1459
32c092c3
L
14602000-05-22 H.J. Lu <hjl@gnu.org>
1461
1462 * elflink.h (elf_link_output_extsym): Clear the visibility
1463 field for symbols not defined locally.
1464
df6d9773
JL
14652000-05-18 Alan Modra <alan@linuxcare.com.au>
1466
1467 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
1468 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
1469 (hppa_rebuild_insn): Mask immediate bits here instead.
1470 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
1471
7ad34365
NC
14722000-05-18 Momchil Velikov <velco@fadata.bg>
1473
1474 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
1475 relocs for an executable, ensure that they are virtual addresses.
1476
d1dab720
JL
1477Thu May 18 10:55:47 2000 Jeffrey A Law (law@cygnus.com)
1478
1479 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
1480
a712da20
NC
14812000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
1482 Rick Gorton <gorton@scrugs.lkg.dec.com>
77cb06e9 1483
aa76cae8 1484 * elflink.h: Add emitrelocations support: when enabled, relocation
a712da20
NC
1485 information and relocation sections are put into final output
1486 executables. If the emitrelocations flag is set, do the following:
1487 (elf_bfd_final_link): Emit relocation sections.
1488 (elf_link_input_bfd): Compute relocation section contents.
1489 (elf_gc_sections): Don't clean relocation sections.
1490
aa76cae8 14912000-05-16 Catherine Moore <clm@cygnus.com>
10febd84
CM
1492
1493 * som.c (som_decode_symclass): Recognize weak symbols.
1494
db8503c4
AM
14952000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
1496
1497 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
1498 read idata section only from dataoff.
1499 (pe_print_edata): Correctly check for valid eat_member.
1500
851cde10
JR
1501Tue May 16 00:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1502
1503 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
1504
1bde2d57
PB
15052000-05-14 Philip Blundell <philb@gnu.org>
1506
1507 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
1508
a76b448c
AM
15092000-05-12 Alan Modra <alan@linuxcare.com.au>
1510
9ee25201
AM
1511 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
1512
a76b448c
AM
1513 * peigen.c (pe_print_idata): Look for .idata section and print
1514 info even if data directory has zero entries. Read idata section
1515 starting from dataoff, and adjust all data offsets to suit. Cast
1516 all bfd_vma vars to unsigned long before passing to fprintf.
1517 * peigen.c (pe_print_edata): Similarly, look for .edata section
1518 and print info even if data directory has zero entries. Cast
1519 all bfd_vma vars to unsigned long before passing to fprintf.
1520
1521 From Szabolcs Szakacsits <szaka@F-Secure.com>
1522 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
1523 directory size which may be bogus.
1524 * peigen.c (pe_print_edata): Similarly.
1525
72730e0c
AM
15262000-05-09 Alan Modra <alan@linuxcare.com.au>
1527
1528 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
1529 section is empty.
1530 (copy_private_bfd_data): Allow for space possibly taken up by elf
1531 headers when calculating segment physical address from lma.
1532
8181c403
AM
15332000-05-08 Alan Modra <alan@linuxcare.com.au>
1534
bfde9f99
AM
1535 * versados.c (versados_scan): Init stringlen and pass_2_done.
1536
b35efbcd
AM
1537 * trad-core.c (trad_unix_core_file_p): Return
1538 bfd_error_wrong_format rather than bfd_error_file_truncated.
1539
8181c403
AM
1540 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
1541 add_data_entry. DataDirectory virtual address is relative.
1542 (pe_print_idata): Account for relative DataDirectory virtual
1543 addresses. Don't trash datasize inside POWERPC_LE_PE code.
1544 (pe_print_edata): Similarly.
1545
1546 From Szabolcs Szakacsits <szaka@F-Secure.com>
1547 * peigen.c (dir_names): Add Delay Import Directory.
1548 (pe_print_idata): Always search for bfd section containing
1549 idata address rather than looking up section name. Print this
1550 section name rather than .idata.
1551 (pe_print_edata): Similarly. Also print some fields as %08lx.
1552 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
1553 Win32Version.
1554
2c38bc20
CP
1555Fri May 5 20:44:40 2000 Clinton Popetz <cpopetz@cygnus.com>
1556
1557 * xcoff.h: Rename to xcoff-target.h
1558 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
1559 * coff-rs6000.c: Ditto.
1560 * coff64-rs6000.c: Ditto.
1561 * coff-pmac.c: Ditto.
1562 * Makefile.in: Regenerate.
77cb06e9 1563
c6664dfb
CP
1564Fri May 5 16:51:03 2000 Clinton Popetz <cpopetz@cygnus.com>
1565
1566 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
1567 Change U802TOC64MAGIC to U803XTOCMAGIC.
1568
3425c182
MS
15692000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
1570
1571 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
1572 * bfd-in.h: Prototype bfd_elf_get_arch_size.
1573 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
1574
7c30ac37
AM
15752000-05-04 Alan Modra <alan@linuxcare.com.au>
1576
1577 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
1578