Subject: CVS commit: basesrc/libexec/ld.elf_so
To: None <source-changes@netbsd.org>
From: Rafal Boni <rafal@netbsd.org>
List: source-changes
Date: 12/13/2001 23:42:00
Module Name:	basesrc
Committed By:	rafal
Date:		Thu Dec 13 21:41:59 UTC 2001

Modified Files:
	basesrc/libexec/ld.elf_so: reloc.c

Log Message:
Check in workaround for BFD ABI change on MIPS: the new MIPS BFD generates
relocs for local symbols as section-relative REL32 relocs with values based
at 0, whereas previously BFD generated those relocs with values based at the
start address of the section.

This code adjusts all STT_SECTION REL32 relocs which have values less than
the start of the section by adding in the base address of the section.  This
may limit section sizes to 2GB, but that shouldn't be a problem for now.

XXX: Needs to be followed-up with binutils list to get closure on which
interpretation is correct (the new ABI or the old one), I just haven't
yet had the time to chase that.


To generate a diff of this commit:
cvs rdiff -r1.42 -r1.43 basesrc/libexec/ld.elf_so/reloc.c

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