public inbox for grub-devel@gnu.org
 help / color / mirror / Atom feed
From: Christian Hesse via Grub-devel <grub-devel@gnu.org>
To: Nicholas Vinson <nvinson234@gmail.com>
Cc: Christian Hesse <list@eworm.de>,
	The development of GNU GRUB <grub-devel@gnu.org>,
	cpfeiffer@rev-crew.info
Subject: Re: [PATCH v2 1/1] Check linker for --image-base support
Date: Mon, 1 Dec 2025 16:02:47 +0100	[thread overview]
Message-ID: <20251201160247.6a1cebed@leda.eworm.net> (raw)
In-Reply-To: <cfd9b0f95bfcc91fb4e27059b2768468948068a1.1763512485.git.nvinson234@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1044 bytes --]

Nicholas Vinson <nvinson234@gmail.com> on Tue, 2025/11/18 19:38:
> In several scenarios, configure tests assume it's safe to use
> '-Wl,-Ttext,<address>', but starting with ld.lld-21, blindly using that
> flag may result in configure-test failures due to ld.lld failing to
> link. The failure is because ld.lld-21 no longer allows the specified
> address is less than the base address.
> 
> However, ld.lld-21+ and ld.bfd-2.44+ both provide support for the
> --image-base flag making it preferable over the older `-Ttext` flag.

This breaks the start address in i386-pc/kernel.img, which should be 0x9000,
but became 0x9074.

The error message is:

/usr/bin/grub-install: error: `/usr/lib/grub/i386-pc/kernel.img' is
miscompiled: its start address is 0x9074 instead of 0x9000: ld.gold bug?.
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Best regards             my address:    */=0;b=c[a++];)
putchar(b-1/(/*    Chris            cc -ox -xc - && ./x    */b/42*2-3)*42);}

[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 141 bytes --]

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

  parent reply	other threads:[~2025-12-01 16:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-19  0:38 [PATCH v2 0/1] Check linter for --image-base support Nicholas Vinson
2025-11-19  0:38 ` [PATCH v2 1/1] Check linker " Nicholas Vinson
2025-11-19 20:27   ` Daniel Kiper
2025-11-25  7:33   ` Gary Lin via Grub-devel
2025-12-01 15:02   ` Christian Hesse via Grub-devel [this message]
2025-12-01 15:34     ` cpfeiffer--- via Grub-devel
  -- strict thread matches above, loose matches on Subject: below --
2026-01-18 12:21 Hustler One via Grub-devel
2026-01-19 15:08 ` Daniel Kiper
2026-01-19 23:14   ` Nicholas Vinson

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=20251201160247.6a1cebed@leda.eworm.net \
    --to=grub-devel@gnu.org \
    --cc=cpfeiffer@rev-crew.info \
    --cc=list@eworm.de \
    --cc=nvinson234@gmail.com \
    /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