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: Fri, 03 Mar 2023 21:59:55 +0100	[thread overview]
Message-ID: <859F297B22C45B7453E14CCF75E203C8@felloff.net> (raw)
In-Reply-To: <e9f6554c-32c0-5ab8-f1f5-36908821135c@posixcafe.org>

> I dont want to do relocation, I just want to know
> why external programs that only work under assumptions
> of how the a.out was linked are preferable to just
> having the linker output correct files.

Sorry, then i must have misundersood you.

> If everyone else is in agreement that this kind of header
> code should only be done in external programs, should that
> code also be moved to be external or deleted?

I do not see a need to be dogmatic about this at all
or force a decision.

I do not have any skin in this game nor do i have a gameboy.

Was just pointing out why an external tool would only solve
half the problem in this case. But i think we agree here.

A external tool made perfect sense for uimage as we want to
generate both an a.out (for debugger and /dev/reboot) and a
uimage for uboot. Linking is quite expensive compared to just
writing out a header and copying some data out of a file and
calculating a checksum.

For the gameboy rom image problem, my first guess would be to
just generate the header using the assembler and pass that
as the first object to the linker and have the linker geneate
headerless image.

--
cinap

  reply	other threads:[~2023-03-03 21:02 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
2023-03-02 17:50       ` Jacob Moody
2023-03-03 20:59         ` cinap_lenrek [this message]
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=859F297B22C45B7453E14CCF75E203C8@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).