This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: powerpc64 linux object layout


On Wed, Nov 20, 2002 at 11:27:34AM +1030, Alan Modra wrote:
> It turns out that the idea of separating out text and data into
> separate 256M address ranges doesn't actually do the right thing
> on powerpc64 linux, due to the current ld.so implementation.
> I'm reverting the SEGMENT_SIZE change until ld.so is fixed.
> 
> 	* emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.

The branch needs a slightly different patch to accomplish the same
thing.

ld/ChangeLog
	* emulparams/elf64ppc.sh (DATA_ADDR): Don't define.

Index: ld/emulparams/elf64ppc.sh
===================================================================
RCS file: /cvs/src/src/ld/emulparams/elf64ppc.sh,v
retrieving revision 1.6.2.2
diff -u -p -r1.6.2.2 elf64ppc.sh
--- ld/emulparams/elf64ppc.sh	2 Oct 2002 02:23:07 -0000	1.6.2.2
+++ ld/emulparams/elf64ppc.sh	20 Nov 2002 01:04:09 -0000
@@ -5,7 +5,7 @@ GENERATE_SHLIB_SCRIPT=yes
 SCRIPT_NAME=elf
 OUTPUT_FORMAT="elf64-powerpc"
 TEXT_START_ADDR=0x10000000
-DATA_ADDR="ALIGN (0x10000000) + (. & (${MAXPAGESIZE} - 1))"
+#DATA_ADDR="ALIGN (0x10000000) + (. & (${MAXPAGESIZE} - 1))"
 MAXPAGESIZE=0x10000
 COMMONPAGESIZE=0x1000
 ARCH=powerpc:common64


-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]