Article View: gnu.gcc.help
Article #50836Need help with gas ?
From: Timothy Schardt
Date: Thu, 05 Aug 1993 22:53
Date: Thu, 05 Aug 1993 22:53
62 lines
1937 bytes
1937 bytes
Hello all, I am currently using gas v1.92.2 (SPARC) and I would like some help. I know that this might not be the most appropriate place to post but I thought someone might know this. I believe that either I am missing something very simple or something else is happening ;-). Here goes: ------- CUT HERE ------- .list .skip 0x1000 .global label_00 label_00: .word label_00 .word (label_01 - label_00) .word 0xFFFFFF00 .global label_01 .global label_end label_01: .word label_01 .word ( label_end - label_01 ) .word 0xFFFFFF01 label_end: -------------------------- When I assemble this with the command: > gas junk.s > It compiles it to an a.out. When I look at this with a binary editor something to be screwed up. Where ".word label_01" produces no address value that I expect (get 0x00000000, should get some value like 0x1000). I think I should get something equivalent like: .word 0x000001000 .word 0x00000000C ( 0x0000100C - 0x00001000 ) .word 0xFFFFFFF00 .word 0x00000100C .word 0x00000000C ( 0x00001018 - 0x0000100C ) .word 0xFFFFFFF01 Am I missing something. Can anyone see any mistakes that I am making. Maybe you can compile this and send me your results, I would like this ASAP. Thanks, Tim
Technical Details
Message-ID:
<23s314$fou@largo.key.amdahl.com>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!usc!elroy.jpl.nasa.gov!decwrl!rtech!amdahl!key!jaws!tjs50Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,85c56039c59d655a,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-08-05 17:01:40 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!usc!elroy.jpl.nasa.gov!decwrl!rtech!amdahl!key!jaws!tjs50 From: tjs50@key.amdahl.com (Timothy Schardt) Newsgroups: gnu.gcc.help Subject: Need help with gas ? Date: 5 Aug 1993 22:53:24 GMT Organization: Amdahl Advanced Systems Lines: 63 Distribution: world Message-ID: <23s314$fou@largo.key.amdahl.com> Reply-To: tjs50@key.amdahl.com NNTP-Posting-Host: jaws.key.amdahl.com