9front - general discussion about 9front
 help / color / mirror / Atom feed
From: cinap_lenrek@felloff.net
To: 9front@9front.org
Subject: Re: [9front] Re: [PATCH] game boy advance header target for 5l
Date: Thu, 02 Mar 2023 18:33:27 +0100	[thread overview]
Message-ID: <B0D9B7C8FA67F0516F3698D6F8597F2B@felloff.net> (raw)
In-Reply-To: <1440d7fc-4dfa-273c-874d-cd77f5b84a27@posixcafe.org>

i dont think that a.out (arm) have relocatable code.

aout2uimage does not relocate the image (abslute addresses
are encoded inside instruction immediates) but only
changes the header and handles some padding stuff.

the load address (and entry point) all *MUST* stay the
same no matter if it is wrapped in a.out or uimage.

this is why you need the -T flag for the linker. theres
no relocation info in a.out as far as i remember.
so writing a external tool to convert an a.out to ????
requiering relocation will have a hard time.

--
cinap

  reply	other threads:[~2023-03-02 17:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-02  6:56 [9front] " Jacob Moody
2023-03-02 11:15 ` [9front] " Anthony Martin
2023-03-02 16:08   ` Jacob Moody
2023-03-02 17:33     ` cinap_lenrek [this message]
2023-03-02 17:50       ` Jacob Moody
2023-03-03 20:59         ` cinap_lenrek
2023-03-03 21:18           ` Jacob Moody
2023-03-04 15:53             ` cinap_lenrek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B0D9B7C8FA67F0516F3698D6F8597F2B@felloff.net \
    --to=cinap_lenrek@felloff.net \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).