From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 22 Jun 2005 10:24:19 -1000 From: Tim Newsham To: 9fans@cse.psu.edu Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: [9fans] 8l vs. acid? Topicbox-Message-UUID: 5f4b55ae-ead0-11e9-9d60-3106f5b1d025 Hi, I'm seeing some strange behavior in the linking and debugging of a small program of mine: http://lava.net/~newsham/quest/ When I build it and inspect it in acid, it shows the map as: {{"text", 0x80100020, 0x80100041, 0x00000020}, {"data", 0x80100041, 0x80100049, 0x00000041}} and indeed I see the data starting at 0x80100041. However the relocation values in the binary and the symbol table both think that the "hello" variable starts at 0x80101000. Now if I change the -T0x80100020 to -T0x100020 the map is even stranger: {{"text", 0x00001020, 0x00001041, 0x00000020}, {"data", 0x00002000, 0x00002008, 0x00000041}} however, the symbols say that the _main and hello are at 0x100020 and 0x101000 respectively. What gives? Who's to blame here, libmach? Tim Newsham http://www.lava.net/~newsham/