bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #32676] Linker error in 'grub-core/kern/i386/pc/startup.S' on a x86


From: Alexander Diewald
Subject: [bug #32676] Linker error in 'grub-core/kern/i386/pc/startup.S' on a x86_64 system
Date: Wed, 06 Apr 2011 14:01:03 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13

Follow-up Comment #7, bug #32676 (project grub):

Just tested the patch. It is NOT working. It fixes the compilation issue, but
after a "grub-install --no-floppy /dev/sda" my system just goes on to the
message "Grub Loading..." and then reboots. So I'm caught in a reboot loop,
only installing the 1.98 version makes my system behave normal again.
I guess Andrey just compiled it, but didn't install it to the MBR.

Also I think that the gcc version isn't causing the error (I'm using 4.4.5,
see emerge.info). These are assembler files for which only gas is called.
The reason, I think, lies in the different size of "long int" variables on 32-
and 64-bit systems. On a 32-bit system a long has a size of 4 Bytes, just like
an "normal" int, on 64-bit systems a long is 8 Bytes large. So, the code will
grow too large. This would explain why these errors appear only on a 64-bit
systems.
For reason of compatibility one should only use "normal" int(s) as it is 4
Byte large on both system types.
I will have a look into that later on.

Just BTW, Vladimir, I'd advice you to read more carefully, you could have seen
that the O2 flag wasn't active by regarding the compiler command and I already
wrote that I changed the offsets, but it didn't boot (my first post). Please
don't regard this as any kind of offence. I appreciate your work here and that
you're doing all this in your free-time. It's just something I'm doing myself
often and causes me doing work multiple times unnecessarily.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32676>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]