This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: [PATCH] Support for R_SPARC_OLO10 relocations
- To: Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
- Subject: Re: [PATCH] Support for R_SPARC_OLO10 relocations
- From: Richard Henderson <rth@cygnus.com>
- Date: Thu, 8 Jul 1999 15:50:13 -0700
- Cc: binutils@sourceware.cygnus.com
- References: <19990705174729.B1736@mff.cuni.cz>
On Mon, Jul 05, 1999 at 05:47:29PM +0200, Jakub Jelinek wrote:
> This patch adds support for R_SPARC_OLO10 relocation.
I'm getting errors compiling this code.
gcc -DHAVE_CONFIG_H -I. -I../../../binutils/bfd -I. -D_GNU_SOURCE -I. -I../../..
/binutils/bfd -I../../../binutils/bfd/../include -I../../../binutils/bfd/../intl
-I../intl -g -O2 -c ../../../binutils/bfd/elf64-sparc.c -o elf64-sparc.o
.../elf64-sparc.c:2636: warning: initialization makes integer from pointer without a cast
.../elf64-sparc.c:2636: initializer element is not computable at load time
.../elf64-sparc.c:2636: (near initialization for `sparc64_elf_size_info.elfclass')
.../elf64-sparc.c:2637: warning: initialization makes integer from pointer without a cast
.../elf64-sparc.c:2637: initializer element is not computable at load time
...elf64-sparc.c:2637: (near initialization for `sparc64_elf_size_info.ev_current')
.../elf64-sparc.c:2638: warning: initialization from incompatible pointer type
.../elf64-sparc.c:2639: warning: initialization from incompatible pointer type
.../elf64-sparc.c:2640: warning: initialization from incompatible pointer type
.../elf64-sparc.c:2641: warning: initialization from incompatible pointer type
.../elf64-sparc.c:2643: warning: initialization from incompatible pointer type
Would you please update from cvs and make a new patch?
> * binutils/readelf.c (guess_is_rela): Sparcv9 and v8plus use rela.
> (dump_relocations): Use ELF64_R_TYPE_ID for Sparc, for R_SPARC_OLO10
> print the secondary addend.
> (get_machine_flags): Print Sparc machine flags.
> (get_symbol_type): Print STT_REGISTER.
> * include/elf/sparc.h (ELF64_R_TYPE_DATA): Sign extend the value.
> (ELF64_R_TYPE_INFO): Mask out all but low 24 bits of data.
> * opcodes/sparc-dis.c (print_insn_sparc): Differentiate between
> addition and oring when guessing symbol for comment.
These bits I went ahead and put in.
r~