| 1 | 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com> |
| 2 | |
| 3 | * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead |
| 4 | of dynobj for SGI_COMPAT checks. |
| 5 | |
| 6 | 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG> |
| 7 | |
| 8 | * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function. |
| 9 | * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration. |
| 10 | * bfd-in2.h: Regenerate. |
| 11 | |
| 12 | 2000-07-21 Nick Clifton <nickc@cygnus.com> |
| 13 | |
| 14 | * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of |
| 15 | range symbol indices in relocs and issue an error message. |
| 16 | |
| 17 | 2000-07-20 H.J. Lu <hjl@gnu.org> |
| 18 | |
| 19 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check |
| 20 | info->new_dtags when setting DT_FLAGS_1. It will only be set |
| 21 | by the new linker options. It shouldn't break anything. |
| 22 | |
| 23 | 2000-07-20 H.J. Lu <hjl@gnu.org> |
| 24 | |
| 25 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1 |
| 26 | only if info->new_dtags is true. |
| 27 | |
| 28 | 2000-07-20 H.J. Lu <hjl@gnu.org> |
| 29 | |
| 30 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set |
| 31 | DT_RUNPATH and DT_FLAGS only if info->new_dtags is true. |
| 32 | |
| 33 | 2000-07-20 Hans-Peter Nilsson <hp@axis.com> |
| 34 | |
| 35 | * Makefile.am (ALL_MACHINES): Add cpu-cris.lo. |
| 36 | (ALL_MACHINES_CFILES): Add cpu-cris.c. |
| 37 | (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo. |
| 38 | (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c. |
| 39 | (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules. |
| 40 | * Makefile.in: Rebuild. |
| 41 | * aclocal.m4: Rebuild. |
| 42 | * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris. |
| 43 | * archures.c (enum bfd_architecture): Add bfd_arch_cris. |
| 44 | (bfd_cris_arch): Declare. |
| 45 | (bfd_archures_list): Add bfd_cris_arch. |
| 46 | * bfd-in2.h: Rebuild. |
| 47 | * config.bfd: (cris-*-*): New target. |
| 48 | * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors. |
| 49 | * configure: Rebuild. |
| 50 | * elf.c (prep_headers): Add bfd_arch_cris. |
| 51 | * libbfd.h: Rebuild. |
| 52 | * libaout.h (enum machine_type): Add M_CRIS. |
| 53 | * reloc.c: Add CRIS relocations. |
| 54 | * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare. |
| 55 | (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec. |
| 56 | * cpu-cris.c, aout-cris.c, elf32-cris.c: New files. |
| 57 | * po/POTFILES.in, po/bfd.pot: Regenerate. |
| 58 | |
| 59 | 2000-07-19 H.J. Lu <hjl@gnu.org> |
| 60 | |
| 61 | * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set |
| 62 | DF_TEXTREL if DT_TEXTREL is set. |
| 63 | * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise. |
| 64 | * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise. |
| 65 | * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. |
| 66 | * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise. |
| 67 | * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. |
| 68 | * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise. |
| 69 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise. |
| 70 | * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise. |
| 71 | * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise. |
| 72 | * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise. |
| 73 | |
| 74 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also |
| 75 | set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if |
| 76 | DT_RPATH is set. |
| 77 | Set the DT_FLAGS and DT_FLAGS_1 entries if necessary. |
| 78 | |
| 79 | 2000-07-19 H.J. Lu <hjl@gnu.org> |
| 80 | |
| 81 | * bfd-in.h (bfd_elf_set_dt_needed_soname): New. |
| 82 | * bfd-in2.h: Rebuild. |
| 83 | |
| 84 | * elf-bfd.h (elf_obj_tdata): Add dt_soname. |
| 85 | (elf_dt_soname): New. |
| 86 | |
| 87 | * elf.c (bfd_elf_set_dt_needed_soname): New. |
| 88 | |
| 89 | * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED |
| 90 | entry if the shared object loaded by DT_NEEDED is used to |
| 91 | resolve the reference in a regular object. |
| 92 | |
| 93 | 2000-07-19 H.J. Lu <hjl@gnu.org> |
| 94 | |
| 95 | * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG, |
| 96 | DT_DEPAUDIT and DT_AUDIT as strings. |
| 97 | |
| 98 | 2000-07-19 Nick Clifton <nickc@cygnus.com> |
| 99 | |
| 100 | * format.c: Fix formatting. |
| 101 | |
| 102 | 2000-07-19 H.J. Lu <hjl@gnu.org> |
| 103 | |
| 104 | * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM. |
| 105 | |
| 106 | 2000-07-19 H.J. Lu <hjl@gnu.org> |
| 107 | |
| 108 | * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW, |
| 109 | DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ, |
| 110 | DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ, |
| 111 | DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1, |
| 112 | DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT, |
| 113 | DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT, |
| 114 | DT_FLAGS_1, DT_USED and DT_CHECKSUM. |
| 115 | |
| 116 | Tue Jul 18 13:11:54 2000 Andrew Cagney <cagney@b1.cygnus.com> |
| 117 | |
| 118 | * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move |
| 119 | renamed functions from here... |
| 120 | (assign_section_numbers): Use renamed functions. |
| 121 | (prep_headers): Use renamed functions. |
| 122 | |
| 123 | * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here. |
| 124 | * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update. |
| 125 | * bfd-in2.h: Regenerate. |
| 126 | |
| 127 | 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com> |
| 128 | |
| 129 | * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add |
| 130 | parenthesis in if statement. |
| 131 | |
| 132 | 2000-07-17 Koundinya K <kk@ddeorg.soft.net> |
| 133 | |
| 134 | Enable the support for Traditional MIPS. |
| 135 | * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand |
| 136 | return ict_none appropriately for traditional mips targets. |
| 137 | (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips. |
| 138 | (STUB_MOVE): Conditionalize for traditonal mips. |
| 139 | (STUB_LI16): Likewise. |
| 140 | (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making |
| 141 | room for RTPROC header. |
| 142 | (_bfd_mips_elf_modify_segment_map): For a normal mips executable set |
| 143 | the permission for the PT_DYNAMIC as read, write and execute. |
| 144 | (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING |
| 145 | for traditonal mips. |
| 146 | (_bfd_mips_elf_create_dynamic_sections): Add the symbol |
| 147 | _DYNAMIC_LINKING for traditonal mips. |
| 148 | (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP |
| 149 | in case of traditonal mips. |
| 150 | (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT |
| 151 | entry is required. For a function if PLT is not required then set the |
| 152 | corresponding hash table entry to 0. |
| 153 | (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for |
| 154 | traditonal mips. |
| 155 | (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a |
| 156 | shared object set the value to 0. |
| 157 | (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol |
| 158 | _DYNAMIC_LINKING for traditonal mips. |
| 159 | (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP |
| 160 | for traditonal mips. |
| 161 | |
| 162 | 2000-07-15 H.J. Lu <hjl@gnu.org> |
| 163 | |
| 164 | * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL. |
| 165 | |
| 166 | 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu> |
| 167 | |
| 168 | * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing |
| 169 | out a structure that is BFD_IN_MEMORY. |
| 170 | |
| 171 | 2000-07-11 Alan Modra <alan@linuxcare.com.au> |
| 172 | |
| 173 | * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of |
| 174 | bfd pointer. Print section id instead of bfd pointer for local |
| 175 | syms. Prefix addend with `+' for global syms as well as local. |
| 176 | Correct calculation of name component lengths. |
| 177 | (elf64_hppa_check_relocs): Update call to get_dyn_name. |
| 178 | |
| 179 | From David Huggins-Daines <dhd@linuxcare.com> |
| 180 | * elf-hppa.h (elf_hppa_relocate_section): Update calls here too. |
| 181 | * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings. |
| 182 | (elf64_hppa_modify_segment_map): Likewise. |
| 183 | |
| 184 | Tue Jul 11 17:21:52 2000 Andrew Cagney <cagney@b1.cygnus.com> |
| 185 | |
| 186 | * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA |
| 187 | addresses to be "naturally" sign extended. Return -1 if unknown. |
| 188 | * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration. |
| 189 | * bfd-in2.h: Regenerate. |
| 190 | |
| 191 | Tue Jul 11 16:25:52 2000 Andrew Cagney <cagney@b1.cygnus.com> |
| 192 | |
| 193 | * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32 |
| 194 | and ECOF_SIGNED_64 to list ways to extract an offset. |
| 195 | (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in, |
| 196 | ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out): |
| 197 | Update. |
| 198 | * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64. |
| 199 | * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32. |
| 200 | |
| 201 | Tue Jul 11 16:03:04 2000 Andrew Cagney <cagney@b1.cygnus.com> |
| 202 | |
| 203 | * elfcode.h (elf_object_p): Use bfd_set_start_address and not |
| 204 | bfd_get_start_address. |
| 205 | (elf_swap_ehdr_in): Sign extend e_entry when applicable. |
| 206 | (elf_swap_ehdr_out): Ditto. |
| 207 | |
| 208 | 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com> |
| 209 | |
| 210 | * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for |
| 211 | compatibility with older binutils. |
| 212 | |
| 213 | 2000-07-10 Alan Modra <alan@linuxcare.com.au> |
| 214 | |
| 215 | * section.c (bfd_make_section_anyway): Start section_id at 0x10. |
| 216 | (STD_SECTION): Avoid negative ids, instead use 0 to 3. |
| 217 | |
| 218 | From Ryan Bradetich <rbradetich@uswest.net> |
| 219 | * dwarf1.c (parse_die): Cure signed/unsigned char warnings. |
| 220 | (parse_line_table): Ditto. |
| 221 | (_bfd_dwarf1_find_nearest_line): Ditto. |
| 222 | * syms.c (cmpindexentry): Remove extra `*' from params. |
| 223 | |
| 224 | 2000-07-09 Koundinya K <kk@ddeorg.soft.net> |
| 225 | |
| 226 | * elf32-mips.c (sort_dynamic_relocs): New Function. |
| 227 | (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs |
| 228 | via qsort to sort the dynamic relocations in increasing r_symndx |
| 229 | value. |
| 230 | |
| 231 | 2000-07-09 Alan Modra <alan@linuxcare.com.au> |
| 232 | |
| 233 | * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add |
| 234 | ATTRIBUTE_UNUSED to unused args. |
| 235 | (get_opd): Likewise. |
| 236 | (get_plt): Likewise. |
| 237 | (get_dlt): Likewise. |
| 238 | (get_stub): Likewise. |
| 239 | (elf64_hppa_adjust_dynamic_symbol): Likewise. |
| 240 | (elf64_hppa_link_output_symbol_hook): Likewise. |
| 241 | (elf64_hppa_check_relocs): Delete unused var. |
| 242 | (elf64_hppa_size_dynamic_sections): Likewise. |
| 243 | (elf64_hppa_finalize_opd): Likewise. |
| 244 | (elf64_hppa_finalize_dynreloc): Likewise. |
| 245 | (elf64_hppa_modify_segment_map): Likewise. |
| 246 | (elf64_hppa_finish_dynamic_sections): Likewise. |
| 247 | |
| 248 | * elf-hppa.h (elf_hppa_final_write_processing): Add |
| 249 | ATTRIBUTE_UNUSED to unused args. |
| 250 | (elf_hppa_final_link_relocate): Likewise. |
| 251 | (elf_hppa_record_segment_addrs): Add paretheses. |
| 252 | (elf_hppa_relocate_section): Constify dyn_name. |
| 253 | |
| 254 | From David Huggins-Daines <dhd@linuxcare.com> |
| 255 | * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and |
| 256 | rearrange case statement so that it gets preferred to 32-bit ones. |
| 257 | |
| 258 | * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use |
| 259 | asection->id instead of address of asection structure. |
| 260 | (elf32_hppa_size_stubs): Likewise. |
| 261 | |
| 262 | * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section |
| 263 | for .init* and .fini*. |
| 264 | |
| 265 | * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers |
| 266 | and addends used in stub names to 32 bits. |
| 267 | (elf32_hppa_size_stubs): Likewise. |
| 268 | |
| 269 | * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend |
| 270 | twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32, |
| 271 | not bfd_put_64. Fix minor comment typo and formatting. |
| 272 | |
| 273 | Changes to create multiple linker stubs, positioned immediately |
| 274 | before the section where they are required. |
| 275 | * elf32-hppa.c: Don't include hppa_stubs.h. |
| 276 | (elf32_hppa_stub_hash_entry): Add a pointer to the stub section. |
| 277 | (elf32_hppa_stub_hash_table): Delete. |
| 278 | (elf32_hppa_link_hash_entry): Delete. |
| 279 | (elf32_hppa_link_hash_table): Use plain bfd_hash_table for |
| 280 | stub_hash_table, and store the struct here rather than a pointer. |
| 281 | Delete output_symbol_count. Add offset array. Change |
| 282 | global_value to a bfd_vma. |
| 283 | (elf32_hppa_stub_hash_lookup): Use table instead of table->root. |
| 284 | (elf32_hppa_stub_hash_traverse): Delete. |
| 285 | (elf32_hppa_name_of_stub): Delete. |
| 286 | (elf32_hppa_link_hash_lookup): Delete. |
| 287 | (elf32_hppa_link_hash_traverse): Delete. |
| 288 | (elf32_hppa_stub_hash_table_init): Delete. |
| 289 | (elf32_hppa_size_of_stub): Pass input section and offset rather |
| 290 | than location and calculate location here. Don't pass name as all |
| 291 | stubs are now the same size. |
| 292 | (elf32_hppa_stub_hash_newfunc): Init new fields. |
| 293 | (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table |
| 294 | too. |
| 295 | (elf32_hppa_bfd_final_link_relocate): Cast enums to int before |
| 296 | comparing against ints. Rewrite stub handling code. |
| 297 | (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned. |
| 298 | Case enums to int before comparing against ints. Remove |
| 299 | bfd_reloc_dangerous case. |
| 300 | (elf32_hppa_build_one_stub): Rewrite. |
| 301 | (elf32_hppa_size_one_stub): New function. |
| 302 | (elf32_hppa_build_stubs): Rewrite. |
| 303 | (elf32_hppa_size_stubs): Pass in linker call-back functions. |
| 304 | Rewrite stub-handling specific code. |
| 305 | |
| 306 | * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype. |
| 307 | |
| 308 | * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo. |
| 309 | |
| 310 | * hppa_stubs.h: Delete. |
| 311 | * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h |
| 312 | (elf32-hppa.lo): Remove hppa_stubs.h from dependencies. |
| 313 | * Makefile.in: Regenerate. |
| 314 | |
| 315 | * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and |
| 316 | e_nlrsel. |
| 317 | |
| 318 | * libhppa.h (hppa_field_adjust): Correct e_nsel case. |
| 319 | |
| 320 | * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset |
| 321 | and section name for bfd_reloc_notsupported error message. |
| 322 | (elf32_hppa_bfd_final_link_relocate): Print reasons for returning |
| 323 | bfd_reloc_notsupported. |
| 324 | (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd. |
| 325 | |
| 326 | * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle |
| 327 | undefined weak symbols for all relocs. |
| 328 | (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch |
| 329 | offsets are relative to one past the delay slot. |
| 330 | (elf32_hppa_size_stubs): Account for reloc addend when calculating |
| 331 | branch destination. Put addend into stub name too. |
| 332 | (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and |
| 333 | adjust by 8 when deciding whether a linker stub is needed. Put |
| 334 | addend into stub name as for above. |
| 335 | |
| 336 | * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on |
| 337 | various args and vars. |
| 338 | (elf32_hppa_bfd_final_link_relocate): Here too. |
| 339 | (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for |
| 340 | inner block var to avoid shadowing. |
| 341 | |
| 342 | * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg |
| 343 | unsigned. |
| 344 | * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto. |
| 345 | * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto. |
| 346 | (elf_hppa_fake_sections): Rename local var to avoid shadowing. |
| 347 | |
| 348 | * libhppa.h: Change practically all unsigned ints to plain ints. |
| 349 | Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for |
| 350 | prototypes. |
| 351 | |
| 352 | From Ryan Bradetich <rbradetich@uswest.net> |
| 353 | * libhppa.h (hppa_opcode_type): New enum to replace #define's. |
| 354 | * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to |
| 355 | suit above. |
| 356 | From David Huggins-Daines <dhd@linuxcare.com> |
| 357 | * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants |
| 358 | to the new OP_* ones. |
| 359 | |
| 360 | * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on |
| 361 | error exit. Bail out earlier on plabel relocs that we aren't |
| 362 | interested in. Don't tell elf32_hppa_stub_hash_lookup to copy |
| 363 | string, and then don't free our copy. |
| 364 | (elf32_hppa_build_one_stub): Make insn unsigned int. |
| 365 | |
| 366 | * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only |
| 367 | available with BL, not BE and BLE. |
| 368 | |
| 369 | * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example |
| 370 | code for elf arg relocs. |
| 371 | (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local |
| 372 | argument with elf_link_hash_entry h. Handle undefined weak |
| 373 | symbols. Move $global$ lookup from here... |
| 374 | (elf32_hppa_relocate_section): ...to here. Return correct error |
| 375 | message for non-handled relocs. |
| 376 | (elf32_hppa_size_of_stub): Correctly test branch range. Previous |
| 377 | wrong test was -0x3ffff to +0x40000. |
| 378 | |
| 379 | * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R, |
| 380 | R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches; |
| 381 | Handle them as such. |
| 382 | (elf_hppa_relocate_insn): Fix a typo. |
| 383 | |
| 384 | * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete. |
| 385 | (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a, |
| 386 | assemble_17, assemble_21): Delete. |
| 387 | Supply defines for all 64 possible opcodes. |
| 388 | (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode |
| 389 | formats. Handle COMICLR. |
| 390 | (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11, |
| 391 | -10, -16, 16, 22. |
| 392 | |
| 393 | * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite. |
| 394 | (elf32_hppa_bfd_final_link_relocate): Major rewrite. |
| 395 | (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls |
| 396 | to suit. |
| 397 | (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all |
| 398 | the local syms - did this code get deleted accidentally? Ignore |
| 399 | undefined and undefweak syms. |
| 400 | |
| 401 | * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost |
| 402 | block. Use it instead of elf64_hppa_hash_table (info). |
| 403 | (elf_hppa_final_link_relocate): Use hppa_info instead of |
| 404 | elf64_hppa_hash_table (info). |
| 405 | |
| 406 | * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16, |
| 407 | re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn. |
| 408 | (hppa_rebuild_insn): Mask immediate bits here instead. |
| 409 | * elf-hppa.h (elf_hppa_relocate_insn): Mask here too. |
| 410 | |
| 411 | 2000-07-08 Alan Modra <alan@linuxcare.com.au> |
| 412 | |
| 413 | * section.c (struct sec): Add id field. Tidy comment formatting. |
| 414 | (bfd_make_section_anyway): Set id. |
| 415 | (STD_SECTION): Init id too. |
| 416 | Change CONST to const throughout. |
| 417 | * archures.c (bfd_arch_info): Tidy comment. |
| 418 | (bfd_arch_list): Change a CONST to const. |
| 419 | * libbfd-in.h: Tidy comments and replace CONST with const. |
| 420 | * elf-bfd.h: Likewise. |
| 421 | * libbfd.h: Regenerate. |
| 422 | * bfd-in2.h: Regenerate. |
| 423 | * libcoff.h: Regenerate. |
| 424 | |
| 425 | 2000-07-07 DJ Delorie <dj@redhat.com> |
| 426 | |
| 427 | * archive.c (_bfd_write_archive_contents): Add an informative |
| 428 | comment. |
| 429 | |
| 430 | 2000-07-06 Kazu Hirata <kazu@hxi.com> |
| 431 | |
| 432 | * srec.c: Fix formatting. |
| 433 | |
| 434 | 2000-06-05 DJ Delorie <dj@redhat.com> |
| 435 | |
| 436 | * MAINTAINERS: new |
| 437 | |
| 438 | 2000-07-04 Alexandre Oliva <aoliva@redhat.com> |
| 439 | |
| 440 | * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol |
| 441 | value of PC-relative offsets. |
| 442 | |
| 443 | 2000-07-03 Jim Wilson <wilson@cygnus.com> |
| 444 | |
| 445 | * elf64-alpha.c (alpha_elf_size_info): New. |
| 446 | (elf_backend_size_info): Define to alpha_elf_size_info. |
| 447 | * elfcode.h (elf_size_info): Change hash bucket size to 4. |
| 448 | |
| 449 | 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com> |
| 450 | |
| 451 | * elf32-mips.c: Include elf32-target.h again for the traditional |
| 452 | MIPS targets. |
| 453 | |
| 454 | 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl> |
| 455 | |
| 456 | * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup): |
| 457 | Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings. |
| 458 | (avr_info_to_howto_rela): Likewise. |
| 459 | (elf32_avr_gc_mark_hook): Likewise. |
| 460 | (elf32_avr_gc_sweep_hook): Likewise. |
| 461 | (elf32_avr_relocate_section): Likewise. |
| 462 | |
| 463 | 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com> |
| 464 | |
| 465 | * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into |
| 466 | an external symbol for a non-shared, non-relocatable link. |
| 467 | |
| 468 | 2000-07-03 Nick Clifton <nickc@redhat.com> |
| 469 | |
| 470 | * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol |
| 471 | is an external symbol. |
| 472 | (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak |
| 473 | external symbol. |
| 474 | |
| 475 | 2000-07-03 Kazu Hirata <kazu@hxi.com> |
| 476 | |
| 477 | * reloc16.c: Fix formatting. |
| 478 | |
| 479 | 2000-07-01 Koundinya K <kk@ddeorg.soft.net> |
| 480 | |
| 481 | * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4* |
| 482 | to add a new target for traditional mips i.e |
| 483 | bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec. |
| 484 | * configure.in: Likewise. |
| 485 | * configure: Rebuild. |
| 486 | * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in |
| 487 | bfd_target_vector. |
| 488 | (bfd_elf32_tradlittlemips_vec): Likewise. |
| 489 | * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test |
| 490 | to see that elfNN_bed does not get redefined even if the target file |
| 491 | is included twice for a chip. See elf32-mips.c. |
| 492 | |
| 493 | 2000-07-01 Alan Modra <alan@linuxcare.com.au> |
| 494 | |
| 495 | * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed |
| 496 | (CLEANFILES): Add DEPA. |
| 497 | * Makefile.in: Regenerate. |
| 498 | |
| 499 | 2000-06-30 DJ Delorie <dj@cygnus.com> |
| 500 | |
| 501 | * peicode.h (coff_swap_filehdr_in): can't use e_magic because we |
| 502 | can't assume the PE header is at 0x80. |
| 503 | |
| 504 | 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com> |
| 505 | |
| 506 | * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH. |
| 507 | |
| 508 | 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com> |
| 509 | |
| 510 | * go32stub.h: Update stub. |
| 511 | |
| 512 | 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl> |
| 513 | |
| 514 | * archures.c (bfd_mach_avr5): Define. |
| 515 | * bfd-in2.h (bfd_mach_avr5): Define. |
| 516 | * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to |
| 517 | bfd_mach_avr5, add bfd_mach_avr4. Update comments. |
| 518 | (compatible): Update comment. Add missing test. |
| 519 | * elf32-avr.c (avr_final_link_relocate): Support 8K wrap |
| 520 | for avr2 and avr4. Simplify 8K wrap code. |
| 521 | (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5. |
| 522 | (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5. |
| 523 | |
| 524 | 2000-06-26 Kazu Hirata <kazu@hxi.com> |
| 525 | |
| 526 | * coff-h8300.c: Fix formatting. |
| 527 | * cpu-h8300.c: Likewise. |
| 528 | |
| 529 | 2000-06-24 Alexandre Oliva <aoliva@redhat.com> |
| 530 | |
| 531 | * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)' |
| 532 | for local symbols whose names are unknown. |
| 533 | |
| 534 | 2000-06-22 Alan Modra <alan@linuxcare.com.au> |
| 535 | |
| 536 | * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we |
| 537 | find one. |
| 538 | * Makefile.in: Regenerate. |
| 539 | * doc/Makefile.in: Regenerate. |
| 540 | |
| 541 | 2000-06-20 H.J. Lu <hjl@gnu.org> |
| 542 | |
| 543 | * Makefile.am: Rebuild dependency. |
| 544 | * Makefile.in: Rebuild. |
| 545 | |
| 546 | 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl> |
| 547 | |
| 548 | * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function. |
| 549 | (elf_backend_copy_indirect_symbol): Map to the new function. |
| 550 | |
| 551 | 2000-06-20 Alan Modra <alan@linuxcare.com.au> |
| 552 | |
| 553 | * archive.c (normalize): Correct pointer comparison when checking |
| 554 | for backslashes. |
| 555 | (bfd_bsd_truncate_arname): Likewise. |
| 556 | (bfd_gnu_truncate_arname): Likewise. |
| 557 | |
| 558 | 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com> |
| 559 | |
| 560 | * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual |
| 561 | sections elf_{text,data}_{section,symbol}. |
| 562 | * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove. |
| 563 | (_bfd_mips_elf_hide_symbol): New function. |
| 564 | (elf_backend_hide_symbol): Map to the new function. |
| 565 | (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD |
| 566 | definitions of mips_elf_{text,data}_{section,symbol}. |
| 567 | (mips_elf_local_relocation_p): Try to find the direct symbol |
| 568 | based on new check_forced argument. |
| 569 | (mips_elf_calculate_relocation): Use new version of |
| 570 | mips_elf_local_relocation_p. |
| 571 | (mips_elf_relocate_section): Likewise. |
| 572 | (_bfd_mips_elf_relocate_section): Likewise. |
| 573 | (mips_elf_sort_hash_table): Only assert that have enough GOT |
| 574 | space. |
| 575 | (mips_elf_got16_entry): Match all 32 bits to the existing GOT |
| 576 | entry if the relocation based on the new external argument. |
| 577 | (mips_elf_create_dynamic_relocation): Assert that we have a |
| 578 | section contents allocated where we can swap out the dynamic |
| 579 | relocations. |
| 580 | (mips_elf_calculate_relocation): Find the real hash-table entry |
| 581 | correctly by using h->root.root.type. Only create a dynamic |
| 582 | relocation entry if the symbol is defined in a shared library. |
| 583 | Create an external GOT entry for the GOT16 relocation if the |
| 584 | symbol was forced local. |
| 585 | (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a |
| 586 | dynamic index if the symbol was forced local. |
| 587 | |
| 588 | 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl> |
| 589 | |
| 590 | * elf32-mips.c: Fix typos in comments. |
| 591 | |
| 592 | 2000-06-19 Mark Kettenis <kettenis@gnu.org> |
| 593 | |
| 594 | * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef |
| 595 | CORE_VERSION_1. |
| 596 | |
| 597 | 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr> |
| 598 | |
| 599 | * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild. |
| 600 | * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS, |
| 601 | BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files. |
| 602 | * configure.in (bfd_elf32_m68hc12_vec): Recognize. |
| 603 | (bfd_elf32_m68hc11_vec): Likewise. |
| 604 | * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11. |
| 605 | Supports 68hc11 & 68hc12 at the same time. |
| 606 | * targets.c (bfd_elf32_m68hc12_vec): Declare and put in |
| 607 | bfd_target_vector. |
| 608 | (bfd_elf32_m68hc11_vec): Likewise. |
| 609 | * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11. |
| 610 | * archures.c (bfd_m68hc12_arch): Define and register in global list |
| 611 | (bfd_m68hc11_arch): Likewise. |
| 612 | * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8, |
| 613 | BFD_RELOC_M68HC11_3B): Define. |
| 614 | * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support. |
| 615 | * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support. |
| 616 | |
| 617 | 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com> |
| 618 | |
| 619 | * elf_bfd.h (struct elf_backend_data): Add info argument to |
| 620 | elf_backend_hide_symbol. |
| 621 | (_bfd_elf_link_hash_hide_symbol): Likewise. |
| 622 | * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise. |
| 623 | * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise. |
| 624 | * elflink.h (elf_link_add_object_symbols): Likewise. |
| 625 | (elf_link_assign_sym_version): Likewise. |
| 626 | |
| 627 | 2000-06-18 H.J. Lu <hjl@gnu.org> |
| 628 | |
| 629 | * coff-i386.c (coff_i386_reloc): Don't return in case of |
| 630 | output_bfd == (bfd *) NULL if COFF_WITH_PE is defined. |
| 631 | Compensate PE relocations when linking with non-PE object |
| 632 | files to generate a non-PE executable. |
| 633 | |
| 634 | 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com> |
| 635 | |
| 636 | * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write |
| 637 | GOT entries if we're doing a static link or -Bsymbolic link. |
| 638 | |
| 639 | 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com> |
| 640 | |
| 641 | * elflink.h (elf_link_adjust_relocs): Check for and call backend |
| 642 | specifific swap_reloc_{in,out} and swap_reloca_{in,out} if |
| 643 | available. |
| 644 | (elf_link_output_relocs): Likewise. |
| 645 | (elf_reloc_link_order): Likewise. |
| 646 | |
| 647 | 2000-06-16 Nicholas Duffek <nsd@redhat.com> |
| 648 | |
| 649 | * archures.c (enum bfd_architecture): #define constants for |
| 650 | PowerPc and RS6000 machine numbers. |
| 651 | * bfd-in2.h: Regenerate. |
| 652 | * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch |
| 653 | to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc |
| 654 | and RS6000 machine numbers using #defined constants from |
| 655 | archures.c. |
| 656 | * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000 |
| 657 | machine numbers using #defined constants from archures.c. Add |
| 658 | entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify |
| 659 | 64-bit words in 620 entry. |
| 660 | * cpu-rs6000.c (arch_info_struct): Create with entries for RS1, |
| 661 | RSC, and RS2. |
| 662 | (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k). |
| 663 | |
| 664 | 2000-06-16 Nicholas Duffek <nsd@cygnus.com> |
| 665 | |
| 666 | * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64. |
| 667 | * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field. |
| 668 | * libcoff.h (struct xcoff_tdata): Define xcoff64 field. |
| 669 | |
| 670 | 2000-06-16 Nicholas Duffek <nsd@redhat.com> |
| 671 | |
| 672 | * bfd-in.h (bfd_family_coff): Define. |
| 673 | * bfd-in2.h: Regenerate. |
| 674 | * coffgen.c (coff_count_linenumbers, coff_symbol_from, |
| 675 | coff_find_nearest_line): Check COFFness using bfd_family_coff() |
| 676 | instead of bfd_target_coff_flavour. |
| 677 | * cofflink.c (_bfd_coff_final_link): Likewise. |
| 678 | * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to |
| 679 | exclude XCOFF files. |
| 680 | * reloc.c (bfd_perform_relocation, bfd_install_relocation): |
| 681 | Likewise. |
| 682 | * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour. |
| 683 | * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour. |
| 684 | * xcofflink.c (XCOFF_XVECP): Delete. |
| 685 | (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol, |
| 686 | bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc, |
| 687 | bfd_xcoff_record_link_assignment, |
| 688 | bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with |
| 689 | check for bfd_target_xcoff_flavour. |
| 690 | |
| 691 | 2000-06-16 Nicholas Duffek <nsd@redhat.com> |
| 692 | |
| 693 | * rs6000-core.c: Support 64-bit core files, support pre-4.3 core |
| 694 | files on AIX 4.3. |
| 695 | (read_hdr): New function. |
| 696 | (rs6000coff_core_p): Store mstsave or __context64 struct instead |
| 697 | of trying to extract individual registers. Set abfd->arch_info |
| 698 | to match the architecture that created the core file. |
| 699 | (rs6000coff_get_section_contents): Delete. |
| 700 | * xcoff-target.h (rs6000coff_get_section_contents): Delete. |
| 701 | |
| 702 | 2000-06-14 H.J. Lu <hjl@gnu.org> |
| 703 | |
| 704 | * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec) |
| 705 | is NULL. |
| 706 | |
| 707 | 2000-06-13 H.J. Lu <hjl@gnu.org> |
| 708 | |
| 709 | * configure: Regenerate. |
| 710 | |
| 711 | Tue Jun 13 01:28:57 2000 J"orn Rennecke <amylaar@cygnus.co.uk> |
| 712 | |
| 713 | * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of |
| 714 | armpei_little_vec. |
| 715 | |
| 716 | 2000-06-08 David O'Brien <obrien@FreeBSD.org> |
| 717 | |
| 718 | * configure.in (VERSION): Update to show this is the CVS mainline. |
| 719 | |
| 720 | 2000-06-07 Alan Modra <alan@linuxcare.com.au> |
| 721 | |
| 722 | * elf32-d10v.c: Include elf/d10v.h |
| 723 | (enum reloc_type): Delete. |
| 724 | * elf32-d30v.c: Include elf/d30v.h |
| 725 | (enum reloc_type): Delete. |
| 726 | |
| 727 | * Makefile.am: Run "make dep-am" to regenerate dependencies. |
| 728 | * Makefile.in: Regenerate. |
| 729 | |
| 730 | * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs. |
| 731 | (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and |
| 732 | move HOWTOs into elf_howto_table. |
| 733 | (R_386_standard, R_386_ext_offset): Define. |
| 734 | (R_386_ext, R_386_vt_offset, R_386_vt): Define. |
| 735 | (elf_i386_reloc_type_lookup): Modify calculation of index into |
| 736 | elf_howto_table since we've removed the padding. |
| 737 | (elf_i386_info_to_howto_rel): Likewise. |
| 738 | (elf_i386_relocate_section): Likewise. |
| 739 | |
| 740 | 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com> |
| 741 | |
| 742 | * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t. |
| 743 | |
| 744 | 2000-06-05 H.J. Lu <hjl@gnu.org> |
| 745 | |
| 746 | * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag |
| 747 | an error when seeing an undefined symbol with hidden/internal |
| 748 | attribute. It is handled in *_relocate_section (). |
| 749 | |
| 750 | 2000-06-05 H.J. Lu <hjl@gnu.org> |
| 751 | |
| 752 | * elflink.h (elf_fix_symbol_flags): Follow the link for the |
| 753 | indirect symbol for the ELF_LINK_NON_ELF bit. |
| 754 | (elf_link_output_extsym): Don't output the indirect symbol even |
| 755 | if the ELF_LINK_NON_ELF bit is set. |
| 756 | |
| 757 | 2000-06-01 J.T. Conklin <jtc@redback.com> |
| 758 | |
| 759 | * config.bfd (i[3456]86-*-netbsdelf*): New target. |
| 760 | (i[3456]86-*-netbsdaout*): New target. |
| 761 | (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs. |
| 762 | (i[3456]86-*-openbsd*): Likewise. |
| 763 | |
| 764 | Tue May 30 15:39:04 2000 Andrew Cagney <cagney@b1.cygnus.com> |
| 765 | |
| 766 | * trad-core.c: From hpux-core.c, include <dirent.h> or |
| 767 | <sys/ndir.h> when possible. |
| 768 | |
| 769 | 2000-05-31 Nick Clifton <nickc@cygnus.com> |
| 770 | |
| 771 | * opintl.h (_(String)): Explain why dgettext is used instead |
| 772 | of gettext. |
| 773 | |
| 774 | 2000-05-31 Ulrich Drepper <drepper@redhat.com> |
| 775 | |
| 776 | * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version |
| 777 | definitions. We must not assume they are sorted in the file |
| 778 | according to their index numbers. |
| 779 | |
| 780 | 2000-05-31 Alan Modra <alan@linuxcare.com.au> |
| 781 | |
| 782 | * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field |
| 783 | selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and |
| 784 | R_PARISC_DIR17F are for absolute branches; Handle them as such. |
| 785 | |
| 786 | 2000-05-30 Nick Clifton <nickc@cygnus.com> |
| 787 | |
| 788 | * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB, |
| 789 | 80960CA, 80960MC as valid machine names. |
| 790 | |
| 791 | 2000-05-30 H.J. Lu <hjl@gnu.org> |
| 792 | |
| 793 | * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the |
| 794 | visibility bits if the symbol is undefined. Correctly handle |
| 795 | weak undefined symbols with hidden and internal attributes. |
| 796 | |
| 797 | * elflink.h (elf_link_add_object_symbols): Always turn the |
| 798 | symbol into local if it has the hidden or internal attribute. |
| 799 | |
| 800 | 2000-05-29 Philip Blundell <philb@gnu.org> |
| 801 | |
| 802 | * ppcboot.c: Add packed attribute if compiling with GCC. |
| 803 | |
| 804 | 2000-05-29 Anatoly Vorobey <mellon@pobox.com> |
| 805 | |
| 806 | * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal. |
| 807 | |
| 808 | 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com> |
| 809 | |
| 810 | * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus, |
| 811 | elfcore_grok_psinfo): Add code to allow debugging a 32-bit |
| 812 | corefile on a 64-bit (Sparc Solaris) host. Also clean up |
| 813 | a few old comments. |
| 814 | |
| 815 | 2000-05-26 Alan Modra <alan@linuxcare.com.au> |
| 816 | |
| 817 | * Makefile.am: Update dependencies with "make dep-am" |
| 818 | * Makefile.in: Regenerate. |
| 819 | |
| 820 | * sysdep.h (gettext, dgettext, dcgettext, textdomain, |
| 821 | bindtextdomain): Replace defines with those from intl/libgettext.h |
| 822 | to quieten gcc warnings. |
| 823 | |
| 824 | 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il> |
| 825 | |
| 826 | * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH. |
| 827 | |
| 828 | * archive.c (normalize, bfd_bsd_truncate_arname, |
| 829 | bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support |
| 830 | file names with backslashes. |
| 831 | |
| 832 | * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file |
| 833 | before opening it. |
| 834 | |
| 835 | * sysdep.h: Include filenames.h. |
| 836 | |
| 837 | 2000-05-26 Alan Modra <alan@linuxcare.com.au> |
| 838 | |
| 839 | * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777. |
| 840 | |
| 841 | 2000-05-26 Jakub Jelinek <jakub@redhat.com> |
| 842 | |
| 843 | * elf64-sparc.c (sparc64_elf_relax_section): New. |
| 844 | (sparc64_elf_relocate_section): Optimize tail call into branch always |
| 845 | if possible. |
| 846 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. |
| 847 | (elf32_sparc_relax_section): New. |
| 848 | |
| 849 | 2000-05-26 Jakub Jelinek <jakub@redhat.com> |
| 850 | |
| 851 | * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters. |
| 852 | Remove unusued variables. |
| 853 | (sparc64_elf_relocate_section): Change r_symndx type to unsigned long. |
| 854 | (sparc64_elf_merge_private_bfd_data): Fix shared library case from |
| 855 | previous fix, so that shared libs really don't influence targets |
| 856 | extension mask and memory model. |
| 857 | |
| 858 | 2000-05-23 H.J. Lu <hjl@gnu.org> |
| 859 | |
| 860 | * elf64-alpha.c (elf64_alpha_relocate_section): Check |
| 861 | h->root.other not h->other. |
| 862 | * elf32-mips.c (mips_elf_calculate_relocation): Likewise. |
| 863 | |
| 864 | * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo. |
| 865 | |
| 866 | 2000-05-23 H.J. Lu <hjl@gnu.org> |
| 867 | |
| 868 | * elf32-i386.c (elf_i386_relocate_section): Don't allow the |
| 869 | undefined symbol with the non-default visibility attributes. |
| 870 | * elf-hppa.h (elf_hppa_relocate_section): Likewise. |
| 871 | * elf32-arm.h (elf32_arm_relocate_section): Likewise. |
| 872 | * elf32-i370.c (i370_elf_relocate_section): Likewise. |
| 873 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. |
| 874 | * elf32-mcore.c (mcore_elf_relocate_section): Likewise. |
| 875 | * elf32-mips.c (mips_elf_calculate_relocation): Likewise. |
| 876 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. |
| 877 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. |
| 878 | * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. |
| 879 | * elf64-ia64.c (elf64_ia64_relocate_section): Likewise. |
| 880 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. |
| 881 | |
| 882 | 2000-05-22 Richard Henderson <rth@cygnus.com> |
| 883 | |
| 884 | * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI, |
| 885 | PCREL22, PCREL64I. Zero size of special relocs. |
| 886 | (elf64_ia64_reloc_type_lookup): Likewise. |
| 887 | (USE_BRL, oor_brl, oor_ip): New. |
| 888 | (elf64_ia64_relax_section): New. |
| 889 | (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I. |
| 890 | (elf64_ia64_install_value): Likewise, plus PCREL21BI. |
| 891 | (elf64_ia64_relocate_section): Likewise. |
| 892 | (bfd_elf64_bfd_relax_section): New. |
| 893 | * reloc.c (BFD_RELOC_IA64_PCREL21BI): New. |
| 894 | (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New. |
| 895 | * bfd-in2.h, libbfd.h: Regenerate. |
| 896 | |
| 897 | 2000-05-22 Nick Clifton <nickc@cygnus.com> |
| 898 | |
| 899 | * configure.in : Add peigen.lo to MIPS PE targets. |
| 900 | * configure: Regenerate. |
| 901 | |
| 902 | 2000-05-22 Momchil Velikov <velco@fadata.bg> |
| 903 | |
| 904 | * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess |
| 905 | only if it is known for both input and output bfds. Separate |
| 906 | error message strings as in some languages, it may be necessary |
| 907 | to change more than one place in the string to change between |
| 908 | 'big' and 'little'. |
| 909 | |
| 910 | * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline |
| 911 | endianess checks, call _bfd_generic_verify_endian_match() instead. |
| 912 | |
| 913 | * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise. |
| 914 | |
| 915 | * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise. |
| 916 | |
| 917 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify |
| 918 | endianess before checking bfd flavours. |
| 919 | |
| 920 | 2000-05-22 H.J. Lu <hjl@gnu.org> |
| 921 | |
| 922 | * elflink.h (elf_link_output_extsym): Clear the visibility |
| 923 | field for symbols not defined locally. |
| 924 | |
| 925 | 2000-05-18 Alan Modra <alan@linuxcare.com.au> |
| 926 | |
| 927 | * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16, |
| 928 | re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn. |
| 929 | (hppa_rebuild_insn): Mask immediate bits here instead. |
| 930 | * elf-hppa.h (elf_hppa_relocate_insn): Mask here too. |
| 931 | |
| 932 | 2000-05-18 Momchil Velikov <velco@fadata.bg> |
| 933 | |
| 934 | * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting |
| 935 | relocs for an executable, ensure that they are virtual addresses. |
| 936 | |
| 937 | Thu May 18 10:55:47 2000 Jeffrey A Law (law@cygnus.com) |
| 938 | |
| 939 | * config.bfd (hppa*64*-*-hpux11*): New target triplet. |
| 940 | |
| 941 | 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com> |
| 942 | Rick Gorton <gorton@scrugs.lkg.dec.com> |
| 943 | |
| 944 | * elflink.h: Add emitrelocations support: when enabled, relocation |
| 945 | information and relocation sections are put into final output |
| 946 | executables. If the emitrelocations flag is set, do the following: |
| 947 | (elf_bfd_final_link): Emit relocation sections. |
| 948 | (elf_link_input_bfd): Compute relocation section contents. |
| 949 | (elf_gc_sections): Don't clean relocation sections. |
| 950 | |
| 951 | 2000-05-16 Catherine Moore <clm@cygnux.com> |
| 952 | |
| 953 | * som.c (som_decode_symclass): Recognize weak symbols. |
| 954 | |
| 955 | 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com> |
| 956 | |
| 957 | * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that |
| 958 | read idata section only from dataoff. |
| 959 | (pe_print_edata): Correctly check for valid eat_member. |
| 960 | |
| 961 | Tue May 16 00:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk> |
| 962 | |
| 963 | * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8. |
| 964 | |
| 965 | 2000-05-14 Philip Blundell <philb@gnu.org> |
| 966 | |
| 967 | * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets. |
| 968 | |
| 969 | 2000-05-12 Alan Modra <alan@linuxcare.com.au> |
| 970 | |
| 971 | * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec |
| 972 | |
| 973 | * peigen.c (pe_print_idata): Look for .idata section and print |
| 974 | info even if data directory has zero entries. Read idata section |
| 975 | starting from dataoff, and adjust all data offsets to suit. Cast |
| 976 | all bfd_vma vars to unsigned long before passing to fprintf. |
| 977 | * peigen.c (pe_print_edata): Similarly, look for .edata section |
| 978 | and print info even if data directory has zero entries. Cast |
| 979 | all bfd_vma vars to unsigned long before passing to fprintf. |
| 980 | |
| 981 | From Szabolcs Szakacsits <szaka@F-Secure.com> |
| 982 | * peigen.c (pe_print_idata): Use bfd_section_size rather than data |
| 983 | directory size which may be bogus. |
| 984 | * peigen.c (pe_print_edata): Similarly. |
| 985 | |
| 986 | 2000-05-09 Alan Modra <alan@linuxcare.com.au> |
| 987 | |
| 988 | * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela |
| 989 | section is empty. |
| 990 | (copy_private_bfd_data): Allow for space possibly taken up by elf |
| 991 | headers when calculating segment physical address from lma. |
| 992 | |
| 993 | 2000-05-08 Alan Modra <alan@linuxcare.com.au> |
| 994 | |
| 995 | * versados.c (versados_scan): Init stringlen and pass_2_done. |
| 996 | |
| 997 | * trad-core.c (trad_unix_core_file_p): Return |
| 998 | bfd_error_wrong_format rather than bfd_error_file_truncated. |
| 999 | |
| 1000 | * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to |
| 1001 | add_data_entry. DataDirectory virtual address is relative. |
| 1002 | (pe_print_idata): Account for relative DataDirectory virtual |
| 1003 | addresses. Don't trash datasize inside POWERPC_LE_PE code. |
| 1004 | (pe_print_edata): Similarly. |
| 1005 | |
| 1006 | From Szabolcs Szakacsits <szaka@F-Secure.com> |
| 1007 | * peigen.c (dir_names): Add Delay Import Directory. |
| 1008 | (pe_print_idata): Always search for bfd section containing |
| 1009 | idata address rather than looking up section name. Print this |
| 1010 | section name rather than .idata. |
| 1011 | (pe_print_edata): Similarly. Also print some fields as %08lx. |
| 1012 | (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as |
| 1013 | Win32Version. |
| 1014 | |
| 1015 | Fri May 5 20:44:40 2000 Clinton Popetz <cpopetz@cygnus.com> |
| 1016 | |
| 1017 | * xcoff.h: Rename to xcoff-target.h |
| 1018 | * Makefile.am: Change all instances of xcoff.h to xcoff-target.h |
| 1019 | * coff-rs6000.c: Ditto. |
| 1020 | * coff64-rs6000.c: Ditto. |
| 1021 | * coff-pmac.c: Ditto. |
| 1022 | * Makefile.in: Regenerate. |
| 1023 | |
| 1024 | Fri May 5 16:51:03 2000 Clinton Popetz <cpopetz@cygnus.com> |
| 1025 | |
| 1026 | * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): |
| 1027 | Change U802TOC64MAGIC to U803XTOCMAGIC. |
| 1028 | |
| 1029 | 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com> |
| 1030 | |
| 1031 | * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1. |
| 1032 | * bfd-in.h: Prototype bfd_elf_get_arch_size. |
| 1033 | * bfd-in2.h: Prototype bfd_elf_get_arch_size. |
| 1034 | |
| 1035 | 2000-05-04 Alan Modra <alan@linuxcare.com.au> |
| 1036 | |
| 1037 | * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma. |
| 1038 | |