Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8758019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:26:34+00:00 2026-06-13T14:26:34+00:00

I cannot believe how hard this seems to be. I am working from SPARC

  • 0

I cannot believe how hard this seems to be. I am working from SPARC Solaris 8. and we have some kind of GNU-gcc (3.4.2) and ‘as’ assembler (Sun WorkShop 6 2003/12/18 Compiler Common 6.0).

Anyways, I’ve tried a few ways to output a pure binary file. such as

gcc -c yadda.s

or invoking solely the assembler

as yadda.s

I have also investigated the assembler man page, but I did not find much breaking news. 🙁
AS Man page:
http://pastebin.com/0FSNxhq1

So, I still get some Bloat in my resulting object file. I don’t want this leading 50 bytes of ELF related * or whatever the assembler thought would help my initialization or whatever it’s thinking.

What I am looking for is a pure binary output of JUST my code.

Thanks in advance 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:26:35+00:00Added an answer on June 13, 2026 at 2:26 pm

    The assembler does not output executable code, it outputs an object file. To make it executable, you need to link it using ld. This command allows you to specify the output format, which can be binary (if your build supports it).

    as yadda.s -o yadda.o
    ld yadda.o -o yadda --oformat=binary
    

    You should be able to do this in one line using gcc:

    gcc yadda.s -o yadda -Xlinker --oformat=binary
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I simply cannot believe this is quite so hard to determine. Even having read
This is something that I cannot believe I have not been able to figure
I believe I seen it but cannot figure out where. Say I have the
I cannot believe I'm the first person to go through this thought process, so
This is an absolute howler. I cannot believe my own eyes, and I cannot
The Issue Cannot believe I could not find anything on this around the net,
I cannot believe I am having trouble with this following string String filter =
I cannot believe that nobody has gotten across this or perhaps I'm just missing
I have a question that's so simple I cannot believe I can't answer it
Coming from an Oracle background I cannot believe how SQL Server is giving me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.