Added BFD_RELOC_SPARC_32LE and bfd_mach_sparc_sparclite_le.

This commit is contained in:
Stan Cox 1998-05-27 15:41:27 +00:00
parent 8a9c148140
commit e838aeea64
2 changed files with 8 additions and 6 deletions

View file

@ -7,14 +7,12 @@ Tue May 26 19:37:47 1998 Stan Cox <scox@equinox.cygnus.com>
endian objects with big endian objects. endian objects with big endian objects.
(elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le. (elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le.
(elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags. (elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags.
* libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE. * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE.
* reloc.c: Same. * reloc.c: Same.
* cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le
* archures.c (bfd_mach_sparc_sparclite_le): New. * archures.c (bfd_mach_sparc_sparclite_le): New.
* bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New.
Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com> Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com>
* peicode.h (add_data_entry): Fix precedence of operators in if () * peicode.h (add_data_entry): Fix precedence of operators in if ()

View file

@ -1213,8 +1213,9 @@ enum bfd_architecture
#define bfd_mach_sparc_sparclite 3 #define bfd_mach_sparc_sparclite 3
#define bfd_mach_sparc_v8plus 4 #define bfd_mach_sparc_v8plus 4
#define bfd_mach_sparc_v8plusa 5 /* with ultrasparc add'ns */ #define bfd_mach_sparc_v8plusa 5 /* with ultrasparc add'ns */
#define bfd_mach_sparc_v9 6 #define bfd_mach_sparc_sparclite_le 6
#define bfd_mach_sparc_v9a 7 /* with ultrasparc add'ns */ #define bfd_mach_sparc_v9 7
#define bfd_mach_sparc_v9a 8 /* with ultrasparc add'ns */
/* Nonzero if MACH has the v9 instruction set. */ /* Nonzero if MACH has the v9 instruction set. */
#define bfd_mach_sparc_v9_p(mach) \ #define bfd_mach_sparc_v9_p(mach) \
((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9a) ((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9a)
@ -1711,6 +1712,9 @@ relocation types already defined. */
BFD_RELOC_SPARC_L44, BFD_RELOC_SPARC_L44,
BFD_RELOC_SPARC_REGISTER, BFD_RELOC_SPARC_REGISTER,
/* SPARC little endian relocation */
BFD_RELOC_SPARC_32LE,
/* Alpha ECOFF and ELF relocations. Some of these treat the symbol or /* Alpha ECOFF and ELF relocations. Some of these treat the symbol or
"addend" in some special way. "addend" in some special way.
For GPDISP_HI16 ("gpdisp") relocations, the symbol is ignored when For GPDISP_HI16 ("gpdisp") relocations, the symbol is ignored when