Subject: CVS commit: src/gnu/dist/toolchain
To: None <source-changes@netbsd.org>
From: Izumi Tsutsui <tsutsui@netbsd.org>
List: source-changes
Date: 02/08/2003 19:09:36
Module Name:	src
Committed By:	tsutsui
Date:		Sat Feb  8 17:09:36 UTC 2003

Modified Files:
	src/gnu/dist/toolchain/bfd: elf32-sh.c
	src/gnu/dist/toolchain/gas/config: tc-sh.c tc-sh.h

Log Message:
Pull up changes from binutils master sources
<http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/?cvsroot=src>
to fix relocation problem on linking startup routines for sh3:

src/bfd/elf32-sh.c revision 1.36:
> * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
> partial_inplace, matching assembler output.  Set src_mask to
> all ones.
> (sh_elf_relocate_section): Delete misplaced comment.
> For relocatable linking against section symbol, call
> _bfd_relocate_contents for partial_inplace relocs and adjust
> rel->r_addend for others.
> <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
> bfd_get_32, not at rel->r_addend.

src/gas/config/tc-sh.c revision 1.43:
> * config/tc-sh.c (md_pcrel_from_section): Transformed from
> md_pcrel_from.  Handle pc-relativeness against link-time
> symbol.  Handle relativeness to elsewhere than the fixup.

src/gas/config/tc-sh.h revision 1.14:
> * config/tc-sh.h (MD_PCREL_FROM_SECTION): Define.
> (md_pcrel_from_section): Prototype.

Thanks to Kaz Kojima and Jason R Thorpe for their comments.


To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 src/gnu/dist/toolchain/bfd/elf32-sh.c
cvs rdiff -r1.3 -r1.4 src/gnu/dist/toolchain/gas/config/tc-sh.c
cvs rdiff -r1.6 -r1.7 src/gnu/dist/toolchain/gas/config/tc-sh.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.