#261 new

ORG emits data

Reported by pellsson | March 7th, 2013 @ 05:51 AM

org N seems emits (N & 0x03) zero-bytes to the start of the file.

Is this by design?

Comments and changes to this ticket

  • Peter Johnson

    Peter Johnson March 8th, 2013 @ 06:57 AM

    Yes, there's definitely an operating difference between Yasm and NASM regarding ORG that should probably be fixed. Essentially what is happening is the .text section has section alignment defaulted to 4, which results in the padding being generated. To work around this, specify the section alignment for .text with a section directive: "section .text align=1" (note: NASM also handles this syntax).

  • pellsson

    pellsson March 8th, 2013 @ 08:03 AM

    Thanks Peter :D You wouldnt believe the hacks I've applied to work around this :)

    I don't think its wrong really to align ORG on section alignment, a bit confusing when you are not prepared for it though. A note in the documentation should suffice as a fix (maybe there is one but Im too stupid too understand it? That happens occationally ;)).

    Maybe have -f bin default to 1 byte section alignment too? That is probably always what the user wants?

  • Jasonens1

    Jasonens1 April 12th, 2018 @ 08:50 PM

    Some very interesting facts about ORG emits data put the question here. MY rest of the friends wrote good answers of tha question. I have same answer which already put here. However, I want cheapest essay writing service and hope this answer is quite satisfiable. If you have any more question then let me know here.

  • James Hendry

    James Hendry April 17th, 2018 @ 05:17 PM

    Thank you so much for sharing such a good information. I found this article https://theapkwire.com/comcast-xfinity-speed-test-review/ which has given me a good information about speed testing tool.

  • EdwanJohn

    EdwanJohn April 20th, 2018 @ 11:48 AM

    I’m really impressed with your article, such great & usefull knowledge you mentioned here
    Cancer Assignment Help

  • EdwanJohn

    EdwanJohn April 20th, 2018 @ 11:49 AM

    Pretty helpful material, much thanks for this article Assembly Language Homework Help

  • Jonathon Coleman

    Jonathon Coleman March 1st, 2019 @ 01:46 PM

    It's by design I believe. Been asking that for years but I think you got the thought!
    Jon | www.wildthingzllc.com

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Yasm Modular Assembler Project

Shared Ticket Bins

People watching this ticket