AS complains about a backwards jump to label

Greetings. I am currently porting some x86 assembly code from another platform and running into an odd problem where the assembler will not accept a backwards jump to a label. This only happens when assembling in Intel syntax mode.
As far as I am aware the source was assembled using GAS, so one would assume that aside from platform/abi specific directives it should compile with Apple's AS.
cat source.s
.intel_syntax
fooA: jmp wtfA
wtfA: ret
barA: jmp wtfA
.att_syntax
fooB: jmp wtfB
wtfB: ret
barB: jmp wtfB
as source.s
source.s:4:suffix or operands invalid for `jmp'
as -v
Apple Inc version cctools-698.1~1, GNU assembler version 1.38
Does anyone have any idea on whats going on here? Thanks.

After reading the source code for the tool it turns out that it just doesn't handle textual labels correctly in intel_syntax mode. The intel parser logic will interpret all previously defined symbols as a 'memory' operand and then refuse to accept the jmp instruction because it requires a 'displacement' operand.
The forward jumps happen to work because the type of an operand with undefined symbols are resolved in the backend which is shared for both intel and att modes. At that point all labels in the source code have been defined so it can correctly distinguish between a memory and displacement operand.
The good news is that I did find a way to get the get the assembler to jump backwards correctly by using local labels as described in 'Mac OS X Assembler Reference' and the latest GAS documentation. You can specify numeric labels and jump to them using #b and #f. The intel parser explicitly checks for this suffix and treats it as a displacement.
<pre>
.intel_syntax
fooA: jmp wtfA
0: wtfA: ret
barA: jmp 0b
</pre>
I'll be putting in a bug report for this one since it is not fixed in cctools-750~70.
Thanks.

Similar Messages

  • I will never complain about Creative products again...long story

    Two days ago I was a winy little #$%&* complaining about what my Zen Touch didn't do. It didn't support Audible, it didn't support Janus, has few accessories, blah, blah, blah. Then, it didn't do anything...it broke. So, in my infinite wisdom, I decided that I would get a replacement. I had always looked for something a little smaller, a little sleeker, and not an iPod (that's another story altogether). I didn't go out and just grab what looked good on the shelf...no, I had my priorities. Battery life is important, almost more so than features. I looked up several candidates
    <BLOCKQUOTE dir=ltr>
    Zen Touch - 40Gb - 24 hour battery
    Sony Network Walkman HD05 - 20Gb - 40 hour battery
    iRi'ver (insert model here) - 20Gb - 6 hour battery (or was it 2)
    Apple iPod Photo - 60Gb - 2 hour battery
    Zen XTra - 60Gb - I don't remember the battery life[/quote]
    At the time, I didn't even consider a 5Gb player because I was distraught. I had just lost something that, until that morning, was just another thing that I took everywhere with me. I didn't realize the gaping hole that its loss would create.
    After reading some reviews, I settled on the Sony player. It's small, it's slick, ZDNet gave it a sweet review with the only real bad points being the software (Sonic Stage) and the only available music service (Sony Connect) and it's got a 40 hour battery. I got this beautiful piece of audio hardware back to the office and quickly downloaded some tunes from EMusic (excellent bit rates...better than ANY download service period...if you like independent labels), loaded SonicStage and dumped the songs on the player. At first I thought, "SonicStage is a little slow...", but I had no idea what I was in for. I played the device and noticed...the sound...a little tinny. So what! I'll mess with the EQ later! I have a 40 hour removable battery! I also noted, that you can't build playlists on the fly. They had a "Bookmark" feature, but the only way to add songs to a bookmark was if the song was currently playing. I missed "Add to selected" but hell, it's got a 40 hour battery. I got the beast home, installed SonicStage on my PC and pointed it to my music library of some 5000 songs. SonicStage didn't like the fact that my library was on a network dri've (I have a Buffalo LinkStation that has nothing but media on it.) It began the import and after 2 hours of lots of blinking lights on my router asked me if I wanted to copy the files to my local hard disk. Of course not! That's what I bought the link station for! Creative doesn't have a problem with this! Why was Sony concerned? I told it "No!" After about another hour of activity, It showed me that it had begun importing the files. Four hours later it was done. Seven hours total to import my files? No problem, I have a 40 hour BATTERY! I then, sleepily as it was 2:30 in the morning, began to copy music to the device. Since I had also done this at work, the software said that I couldn't put any files from another computer onto the device. I had to delete the songs on the device and register my home computer. Fine, the songs are still in my library. I deleted the files, the hourglass appeared...and stayed... Thirty minutes later...the hourglass...what the #$%&! Now, I was told ahead of time that I would absolutely hate the software by a friend that owns a newer MiniDisc player. I have a faster computer than him so I thought it would be different: it wasn't. I have a great deal of tolerance for computers because I am a computer programmer and technician. I could not deal with this...this THING had to go.
    Today, I returned the Sony THING and gave myself till lunch to think about buying a new player. I came to the following conclusion. My Zen Touch will get fixed. I will use my Zen Touch until it completely dies. I like Creative's Zen Explorer...it's small, fast, and integrated into Windows. I like being able to queue up exactly what I want to play on the fly. Sony's didn't offer any of that. The Zen Touch may be a little fat, a little old (technology ages quickly), but the Touch really does nearly everything I wanted and does it well. Sony didn't even come close...it was just a pretty face, a slim design, and a bad personality. From what I can tell, Sony designed it's software for smaller players and smaller libraries. To me it doesn't seem to keep in mind, that I may not want to play everything by one artist or genre. It doesn't allow me to play an album, queue up another, and another...it allows that functionality on the song level through it's bookmarks. From what I hear the iPod is similar, but since I have no experience with the iPod, I cannot comment (If it is I'll add that to my reasons not to buy an iPod).
    At lunch, I returned to Fry's (my 4th time in 2 days) and went looking. I picked up a 5Gb iRi'ver, then a Rio Carbon. I stopped... I was doing it again. Creative players had been good to me... I didn't need another big player...just a small player I could use as a backup...the Touch would be fixed! I then picked up a Zen Micro and didn't turn back. Perhaps my comfort level with the Creative devices is just way to high. Perhaps the Sony software just shocked me. Whatever it was; unless I can see how a player works and how the software reacts, I think Creative will always get first consideration when choosing a new device.

    SSR wrote:
    iTunes only works on two platforms, so it's hardly some paragon of development.
    It's still one supported platform more than any other software, including Creative's Mediasource. This is a paragon of development compared to other MP3 players' software.
    SSR wrote:
    The only reason they got it working on Windows was to sell more iPods and tunes from their store.
    You say that like it's a bad thing. One wonders why other MP3 player manufacturers haven't done the same thing in return to boost their own sales. There is no MP3 player to compete with the iPod on the Mac because it seems no other manufacturer is able to write compatible software or firmware. Gi'ven that the iPod started on the Mac and really started the MP3 player appeal for the masses, I find it staggering that no other MP3 player software developer even considered writing support for the Macintosh into their own software development plans.
    SSR wrote:
    I find the UI for iTunes *awful* so it's not as simple as you make out. Also the UI is hardly Windows compliant.
    You may not like the UI for iTunes, but hundreds of thousands of other people love it! I (personally) prefer WMP0, but iTunes is the only other MP3 player management software that even comes close to that. Mediasource is laughable next to iTunes. The iTunes UI may not be windows compliant, but that's hardly a failing. When I referred to compliancy, I mainly meant the firmware (such as UMS support) did not conform to any known standards which meant that the software developers for the management software faced the burden of making it compatible with other (non-Windows) platforms.

  • Why does SW complain about using current JDK version?

    I am downloading the 11g database, weblogic, forms & reports, sqldesigner, etc... for a class and everything I try to install is complaining about needing to use an obsolete Java JDK. Why is this? Do these things really need to use the old JDK? Isn't that a security risk for any actual installations that use this software? Isn't every new JDK always backward compatible?
    I'm confused.
    Thanks.

    hello Jesse_Penny, thanks for your insight - according to [https://blog.mozilla.org/addons/2014/01/08/add-ons-update-42/ public information] from mozilla's addons team, reviews for updated addons at addons.mozilla.org currently take around 5 days - so i don't know if this would warrant pulling out of AMO, which causes the issues the question owner has described...

  • To whom do I complain about the calendar on the iPad 2 with iOS 7? I can no longer read my appointments. Is there an adjustment I can make? Larger text size doesn't help.

    To whom do I complain about the OS 7 calendar on the iPad 2? I used to be able to read my appointments. The new small font is horrible. Text size doesn't seem to change it. Can I change it?

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430http://support.apple.com/kb/ht1430
     Cheers, Tom

  • Apple Support ignores me completely, there is no way I can complain about lack of feed back and I even have paid for a protection plan!

    I have paid for an extended support through the Apple protection plan. Frankly I do not understand what I´ve paid for as there is no support and no plan, except ignorance and waiting time.
    I have had and still have serious problem with my Mac Book Pro, and spent loads of money on phone charges with mainly negative results. All I have "achieved" is wasted time. I just wonder if it is only me who feel totally helpless as the Support People are not really helping. I´ve spent approsmimately 200 USD in phonecharges on their support phone, so far. But that is nothing compared to the hours spent waiting for answer and listening no absolute nonsense. Finally I went to an Apple store who sent the machine in for repair, and one fault was the motherboard. However I could still not connect with my Time Capsule and Aperture seemed to have lost all my photos. This all happende after upgrading to Mountail Lion. Also the cable network isn´t working. I can easily see on the net that I am not the only one with problems. I´ve ended up with solving most of this myself, except the network connection. It is still not working.
    I am actually deeply dissapointed with Apple and I cannot find any way to even forward a complaint. Not that I believe it would help, but at least I´ve tried. I also think it would be fair to to get my money back for a product I´ve paid for which obviously isn´t working, namely the Apple Care Protection Plan.

    Hi, so you suggest I should be grateful for getting what I have paid for? Sorry but that's only getting what I paid for. Add to that, that this has been against the phone support I've used a lot of time and money for! I don't feel anything but hopelessness for the total lack of customer support. An expensive Mac Book Pro shouldn't fail after 2 years in the first place! But failure may of course happen with the best products, and Apple as well. The real fault however is Apple's arrogance and failure to fix it! Instead of getting help and guidance to a solution, I used hours and lost days of work, and was made to pay a lot for total unusable "assistance". I was even adviced to hold back on taking the Mac Book Pro to a store, as I was told the support person a senior, would figure it out. Well Apple definiately squezzed the lemon! Since the Time Capsule/Time Machine system didn't fuction I was also in a stale mate as I needed assurance that My files wasn't lost when delivering the machine for repair. I was adviced that could happen. Quite a deadlock wasn't it! As an expert on Quality Assurance I was also suffering lost revenue in my work for clients. I finally had to buy a Samsung Ultrabook as working machine and backup, a neccesity as Apple obviously cannot be trusted when needed. Bill Gates and Windows has one advantage over Apple, they know things can go wrong and hence have much better support. Apple support is a maze were only the strongest and most persistent get through. I am one as I didn't accept being treated like that. That's the only reason I finally got a repair. However the machine is still not functioning as mentioned. I have a case number, a phone number and mail address to a senior support person, whom I've been trying to contact for more than a week, He has still not responded to my mails or phone calls. I cannot even figure out how to contact Apple to complain about such ignorance. Note by the way that here in Norway I must pay to call support and more often than not there is more than half an hour waiting time. I might spend hundred of dollars in that "game" without even knowing that I will get the support I've paid for and only keep paying even more for wasting my time! This is simply not good enough, it is no less than arrogant and wrong! I frankly think Apple is doing a big mistake with such por treatmen of their customers.

  • I have two graphics workers on osx 8.  They are both complaining that their files are changing label colors on it own.  Any idea what could cause this?

    I have two graphics workers on osx 8.  They are both complaining that their files are changing label colors on it own.  Any idea what could cause this?

    and there were and have been problems with any two nvidia cards which was the main part of my question.
    To provie details try pasting all but serial number from system profile. Sorry but Mac Pro tells me nothing, not model, year, or what graphic card it came with or updated with.

  • 4.3.2 update messed up my ipod touch... same issues peple complained about with 4.3.1

    So the last update 4.3.1 that everyone complained about worked fine with my ipod touch... it was working great actually. Then I did the update for 4.3.2 and crash and burn... now I am having all the issues that people were complaining about with 4.3.1...
    Battery life is much shorter than before
    Cover art flow is messed up- most of the albums show up as a pixelated mess
    Photo library is messed up- the images do not line up in the grid and are all cut off or look like tiled multiple images
    When listening to music and the screen shows the full size cover art- the art shows up looking "tiled" not a full centered image.
    The screen is kind of glitchy, like it freezes up for a second before doing what it needs to do- for example when the lock screen is on and you unlock it it kind of has this delayed reaction before changing.
    Also, the combo of the update and the new itunes is totally screwed up... I am using windows 7 and can't decide if this is a weird windows issue or itunes and the ipod updates, but when I plug in the ipod to sync it will either wipe out all of my music and apps or will instantly freeze and I have to force quit. My back ups no longer work with the new updates, so I had to re-download all of my apps...  And when I can get itunes to work for a moment and I sync music the songs usually cut out randomly or skip- so to solve that I resorted to using media monkey- but this doesn't fix the artwork sync issues.
    Having spent several hundred dollars on an ipod, i expect this stuff to work!! and it would be great if it worked with the programs as intended, but maybe I have high expectations.
    Has anyone else had any of these problems? I am feeling like I might just have to suck it up and deal.

    Mine has been doing the exact same thing. It messes up even more with each stupid update they do. One thing that I have found helps is restoring my ipod.

  • I see that many people have already complained about Itunes' backup encryption. I NEVER set a password for it (and the corresponding option is still unticked, as always) yet it asked me for a pwd when I upgraded my 3GS to the 5.0 OS. How to solve this?

    I see that many people have already complained about Itunes' backup encryption. I NEVER set a password for it (and the corresponding option is still unticked, as always) yet it asked me for a pwd when I upgraded my 3GS to the 5.0 OS. How to solve this?

    To prevent others from reading your mail, don't give them access to your account. If others need to use your computer for some reason, set up personal accounts, or a guest account, and switch to it before allowing them access. This is the simplest, and most effective, method.
    Email message files can be read as plain text in TextEdit or any word processor.
    To protect your email messages from being viewed by others while in your account, you would have to lock the folder, putting it into an encrypted disk image that required a password to be opened and mounted. You would have to double-click on the image and give your password to mount it before launching Mail then unmount it as soon as you're done. My guess is that you could replace the ~/Library/Mail folder with an alias pointing to the folder on the disk image.
    It may work, but it seems like a lot of unnecessary hassle.

  • ISE 1.2.1 Complaining about High latency - can´t figure out why.

    Hello! 
    my 2 node (16 core, 32 GB Ram, SAN) ISE installation on VMWARE is, complaining about High latency. I have about 250 Test clients connected, and the VMWARE guys can´t seem to find anything wrong. Is there anyway to get a more detailed test WHAT actually is causing this high latency? CPU´s are idling, ram is at 2% and disk I/O is almost not messurable.. but the software is still complaining. (the Dashboard shows latency at 100+ ms) I think this might be the external CA, againt which the client certificates are run. but I don´t know if I can test this theorie! 
    I have 2 Hardware Appliances coming, but I thought my Test enviroment should be more then enough to handel 250 clients.. I am abit concerned about the going live with 5000 clients in the future.. if it is already complaining with 250 active clients. 
    and yes, I will be splitting the tasks up between the 2 Physical Boxes (Profiling and such) and the 2 VM Boxes (Management) but at the moment, for 250 clients the 2 VM´s should be enough. 

    I have a couple of my customers complaining about this as well. I believe it is cosmetic and it is due to this bug CSCup97285
    The suggested action for this alarm in ISE is:
    Check if the system has sufficient resources, Check the actual amount of work on the system for example, no of authentications, profiler activity etc.., Add additional server to distribute the load
    I have confirmed with both clients that the appropriate resources were allocated and reserved in VM. In addition, neither client is reporting any issues so this leads me to believe that it is just a cosmetic bug.
    Thank you for rating helpful posts!

  • TS1702 How do I complain about spamming from App Store vendors

    How do I complain about spamming from Kabam.Com after uninstalling their product and following unsubscribe links?

    I would be pretty upset about this too.
    Read this KB article: http://support.apple.com/kb/HT2727
    It does not specifically recommend this as a solution, but there is a "Report a Problem" link on that page:
    Try that, and follow up with an email to App Store Support:
    Mac App Store:
    http://www.apple.com/support/mac/app-store/contact.html

  • How do i complain about having no use of iphone whilst transferring data therefore to find out if eligable for compensation?

    How do i complain about having no use of iphone whilst transferring data & waiting for updates and used a big chunk of my mobile intenet allowance as had it plugged into laptop all day!-therefore to find out if eligable for compensation?.

    Nothing is ever as easy as it should be, though I've no idea what you were doing that took so long. Takes at most 5 mins to insert a SIM card, choose a language and activate the phone. At that point it is working. Another 5-10 mins should get you connected to your email account. You can add media & apps when you're not busy doing something else, and the phone can still make & receive calls while you're doing that!
    The web is geared towards always on all you can eat broadband. If you run mobile broadband with a data cap or escalating charges then you need to manage the usage carefully, it is nobody else's problem.
    Sorry if I've come over a trifle harsh on your first visit here, but these forums are for users to help each other resolve technical issues. However badly your first day setting things up went there is nothing to be done about it now, A little research, or a chat with a knowledgeable friend or colleague, or getting the phone set up at the store would have made it easy. Chalk it up to experience and move on.
    tt2

  • Where i complain about a game that scam players and want to report to apple for refund ?

    i was playing over 43 days Galaxy Legend and game is build to put aloot of money in it to be in top 3, i invest more then 1000 euro and before i quit the game i found that the guy ho is beating me every time its in developer team its a dev, the more elaborate discusion its on theyr forum i'm not the only one complain about devs playing the game push the heat in arena contest so you go buy more credits
    link on forum its this http://www.tap4fun.com/forum/viewtopic.php?f=6&t=19864&start=10

    From what you say, there seems to be grounds to protest.  What comes to mind is ... 
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase
    Follow the instructions to point 6 where you will be able to explain your problem.
    Think about what you write, write your problem in your national language ... or check out what you have written with a translation app.  Your question here is a little confusing and you need to get this one right.

  • JDeveloper 10g does not export .ear, it complains about a JSP

    There is a project on J2EE.
    JDeveloper 10g rejects to export .ear, .war и .jar (EJB jar), it complains about a JSP page, it writes the follwing:
    Error(3,48): FIXED type Attribute value not equal to the default value 'http://java.sun.com/xml/ns/j2ee'.
    Error(4,14): Attribute 'xmlns:xsi' used but not declared.
    Error(5,23): Attribute 'xsi:schemaLocation' used but not declared.
    Error(6,12): Attribute 'version' used but not declared.
    Error(8,15): Invalid element 'description' in content of 'taglib', expected elements '[tlibversion]'.
    Error(8,15): Element 'description' used but not declared.
    That is it complains about descriptors, but I the descriptors must be OK.
    How can I get it working to export .war and .ear successfully?
    May be I should switch off some checks?

    There is a project on J2EE.
    JDeveloper 10g rejects to export .ear, .war и .jar (EJB jar), it complains about a JSP page, it writes the follwing:
    Error(3,48): FIXED type Attribute value not equal to the default value 'http://java.sun.com/xml/ns/j2ee'.
    Error(4,14): Attribute 'xmlns:xsi' used but not declared.
    Error(5,23): Attribute 'xsi:schemaLocation' used but not declared.
    Error(6,12): Attribute 'version' used but not declared.
    Error(8,15): Invalid element 'description' in content of 'taglib', expected elements '[tlibversion]'.
    Error(8,15): Element 'description' used but not declared.
    That is it complains about descriptors, but I the descriptors must be OK.
    How can I get it working to export .war and .ear successfully?
    May be I should switch off some checks?

  • My imac always complains about usb using to much power

    my imac always complains about usb port using to much power and the window pops up like every  5 seconds
    please help
    elvis007

    If the keyboard is the only USB device connected when you get the error something else is going on.  If a PRAM zap does not stop the error warning, you will need to take a trip to your local Apple Store or an AASP.  If you have AppleCare, call them first.
    Another thing you can try is to run Apple's Hardware Test from system CD #1 (the one that originally came w/your computer).

  • Where do you get the meial address to complain about really poor service

    Where do i get the email address to complain about very very poor service in Bristol uk

    I found the address and phone numbers! 
    I called 408-996-1010.  You'll have to add the country code if you want to call this number.  They told me to write to:
    Apple, Inc.
    Attn: Corporate Relations
    1 Infinity Loop
    Cupertino, CA 95014
    I did at the begining of March.   I receved a call from an Apple rep at the end of March, the  caller left me a voice mail.  I called returned the call withn 5 min left him a voice mail and never heard back from them.
    Best of luck!

Maybe you are looking for

  • GX700 Crashes when scanning for TV channels!

    Hi forum. I've got a GX700 with TV-tuner. Everything else on the PC is working like a charm, but when scanning for TV-channels in DVBViewer Pro and CyberLink PowerCinema, the PC simply crashes, and a nice blue-screen error message appears. The Scanni

  • How to get users, who can use special T-code?

    Hi. I want to know users, who has authorization for FBV0. How can I get this information? Thank you in advance..

  • Install Java  Add-in for ABAP - error

    When I try to instal I got this error WARNING[E] 2010-10-11 13:44:25.906 CJS-30109  <html> <head> </head> <body> The Java load in database ITM/ZEUS has already been configured.<br>SOLUTION: Remove the schema and load it with a new load before you run

  • Is it possible to define a control as an array of ring box?

    I'd like to have a controle array that I can define the dimension and restrict the value that theuser can enter. I thought about an array of ring box for wich I could initialyse the dimension . Is it already possible? any cue to where I sould be star

  • How can we send read mode for a query..?

    How can we send read mode for a query..? thanks in advance regards