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 6203827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:59:01+00:00 2026-05-24T04:59:01+00:00

I have some NASM files which have a line: %INCLUDE bmdev.asm The bmdev.asm file

  • 0

I have some NASM files which have a line:

%INCLUDE "bmdev.asm"

The bmdev.asm file has equ directives such as:

b_print_newline         equ 0x0000000000100040

The files which include bmdev.asm then are able to call those items. I.e.

call b_print_newline

Is there a way to convert this to GAS? When I try to do the direct translation, i.e.

.set b_print_newline , 0x100040

call b_print_string

it doesn’t appear to disassemble to the right thing:

callq  *0x100040

The NASM call disassembles to:

callq  0xfffffffffff00040

The goal here is to generate binaries for BareMetal OS via GAS instead of NASM.

The full disassembly of the binary which works:

$ objdump -D -b binary -m i386:x86-64 test-nl.app 

test-nl.app:     file format binary


Disassembly of section .data:

0000000000000000 <.data>:
   0:   e8 3b 00 f0 ff          callq  0xfffffffffff00040
   5:   c3                      retq   

The full disassembly of the binary which doesn’t work:

$ objdump -D -b binary -m i386:x86-64 test-nl-a.app 

test-nl-a.app:     file format binary


Disassembly of section .data:

0000000000000000 <.data>:
   0:   ff 14 25 40 00 10 00    callq  *0x100040
   7:   c3                      retq   

I’ve posted a (hopefully) clearer version of this question. Closing this one.

  • 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-05-24T04:59:02+00:00Added an answer on May 24, 2026 at 4:59 am

    I brought this issue up on the binutils mailing list. It appears to be a bug. It was suggested that I file a bug report and I’ve done so.

    A fix has been checked in to the binutils tree.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some C# / asp.net code I inherited which has a textbox which
Beginner to assembly programming for x86. I have a simple asm file which I
I have some ASP.NET web services which all share a common helper class they
We have some files on our website that users of our software can download.
i have some problems with linking nasm program for macos: GLOBAL _start SEGMENT .text
Have some validating problems which seem to appear only when using the Auth component.
Have some Perl code which is using the DBI module - (the code is
We have some solution that we built against a MOSS farm one of which
I have some php script updater.php which does some job for 1-2 minutes. Finishing
I have some external Javascript files in my GWT app that I only want

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.