🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41602

Problem with dynamic paged mips

#41602
From: Don Bowman
Date: Tue, 27 Feb 1996 00:00
24 lines
1215 bytes
I'm seeing a problem whereby a dynamic paged mips executable
has different file offsets from memory offsets:

I compiled and linked using gcc -Ttext 1000 -z file.c

I see a particular symbol in the data is at address
0x00003760 according to nm but at 0x00003f58 from the
beginning of the file.

This is incorrect as far as I know. The file offset should
also be 0x3f58 so my dynamic pager can work.

The tools are configured as mips-any-elf

Does anybody have any suggestions on what to look at? It's
in the linker somewhere [ ld version cygnus-2.6 (with BFD cygnus-2.6) ]

I used the binutils previously to do this, so I know its possible.

Any suggestions or ideas? This is for an embedded system so I can
only handle zmagic.

--
bowman@waterloo.hp.com ** 519-883-3019 ** http://www.waterloo.hp.com/~bowman
Technical Details
Message-ID: <4gvna0$bjs@hppadbk.waterloo.hp.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,44a6e2087421ffaf,start
X-Google-Attributes: gid11318c,public
From: bowman@waterloo.hp.com (Don Bowman)
Subject: Problem with dynamic paged mips
Date: 1996/02/27
Message-ID: <4gvna0$bjs@hppadbk.waterloo.hp.com>
X-Deja-AN: 141386593
organization: H-P Panacom Div, Waterloo, ON Canada
newsgroups: gnu.gcc.help