Subject: Re: more shared lib nastiness
To: Warner Losh <imp@village.org>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: port-pmax
Date: 03/15/1997 23:56:09
Ian Lance Taylor sent me the following, which he says is a better
patch. It works for me, and it's what I've used to build a new
snapshot.
Is there a reason nobody from OpenBSD forwarded Per's patch back to
the binutils maintainers?
---- Start of forwarded message
From: Ian Lance Taylor <ian@cygnus.com>
To: jonathan@DSG.Stanford.EDU
In-Reply-To: <199703150017.QAA01869@Pescadero.DSG.Stanford.EDU> (message from
Jonathan Stone on Fri, 14 Mar 1997 16:17:18 -0800)
Subject: Re: gas-19970227 bug on NetBSD/pmax (mipsel ELF)
[snip]
Index: scripttempl/elfmips.sc
===================================================================
RCS file: /cvs/cvsfiles/devo/ld/scripttempl/elfmips.sc,v
retrieving revision 1.10
diff -u -r1.10 elfmips.sc
--- elfmips.sc 1997/02/11 20:34:57 1.10
+++ elfmips.sc 1997/03/15 02:26:06
@@ -128,8 +128,9 @@
important than losing a page of the virtual address space (note
that no actual memory is lost; the page which is skipped can not
be referenced). */
- ${RELOCATING+. += ${DATA_ADDR} - ${TEXT_START_ADDR};}
- ${RELOCATING+. += 0x10000;}
+ ${CREATE_SHLIB-${RELOCATING+. += ${DATA_ADDR} - ${TEXT_START_ADDR};}}
+ ${CREATE_SHLIB-${RELOCATING+. += 0x10000;}}
+ ${CREATE_SHLIB+${RELOCATING+. = ALIGN(${MAXPAGESIZE}) + (ALIGN(8) & (${MAXPAGESIZE} - 1));}}
.data ${RELOCATING-0} :
{
${RELOCATING+${DATA_START_SYMBOLS}}
---- End of forwarded message