GNU GRUB - Bugs: bug #34539, 1.99: grub2 built with gold linker...
You are not allowed to post comments on this tracker with your current authentication level.
bug #34539: 1.99: grub2 built with gold linker doesn't even start
Submitter: | Arkadiusz Miskiewicz <arekm> | ||
Submitted: | Thu 13 Oct 2011 06:49:28 AM UTC | ||
Category: | Compilation | Severity: | Major |
Priority: | 5 - Normal | Item Group: | Software Error |
Status: | Fixed | Privacy: | Public |
Assigned to: | None | Originator Name: | |
Open/Closed: | Closed | Release: | other |
Release: | Reproducibility: | Every Time | |
Planned Release: | None |
Sat 02 Nov 2013 06:15:46 PM UTC, comment #5: |
Vladimir Serbinenko <phcoder> |
Wed 02 Jan 2013 02:43:07 AM UTC, comment #4: The correct upstream reference is:
|
Colin Watson <cjwatson> |
Wed 02 Jan 2013 02:25:06 AM UTC, comment #3: Mike: I'm not so sure. The bug you mention involves gold entirely rejecting 7C00 but accepting 0x7C00; the bug Vladimir describes (and which I can reproduce, although I'm not certain where it resides) involves gold accepting 0x7C00 but apparently adding 0x1000 to it. |
Colin Watson <cjwatson> |
Mon 22 Oct 2012 04:33:25 AM UTC, comment #2: i think the latest comment contains typos. gold will use the wrong address if you specify "-Wl,-Ttext,8200" (namely, it'll use 0x2008 and not 0x8200). it will work fine if you prefix the address with a hex value like "-Wl,-Ttext,0x8200".
|
Mike Frysinger <vapier> |
Sat 10 Mar 2012 03:49:25 PM UTC, comment #1: This seems to be gold bug. Namely the minimal testcase is:
|
Vladimir Serbinenko <phcoder> |
Thu 13 Oct 2011 06:49:28 AM UTC, original submission:
If you build grub2 1.99 (1.97, 1.98 also tested) with gold linker:
|
Arkadiusz Miskiewicz <arekm> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2013-11-02 | phcoder | Status | None | Fixed | |
Open/Closed | Open | Closed | |||
2012-08-08 | heirecka | Carbon-Copy | - | Added heirecka | |
2012-04-20 | ridikulus_rat | Carbon-Copy | - | Added ridikulus_rat |
Powered by Savane 3.13-f8d8.
Corresponding source code
CFLAGS="$TARGET_CFLAGS -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},8000 -Wl,--defsym,___main=0x8100" doesn't matter as resulting binary is never executed. I changed it nevertheless for consistency.
Recent gold doesn't have this bug. I added a check to grub-mkimagexx.c to reject miscompiled images.