#244498 absolute objcopy not working on amd64?

Package:
binutils
Source:
binutils
Description:
GNU assembler, linker and binary utilities
Submitter:
Kurt Roeckx
Date:
2014-10-19 17:57:14 UTC
Severity:
normal
#244498#5
Date:
2004-04-18 18:01:09 UTC
From:
To:
When grub's configure script runs it looks to the output of
objcopy -O binary and complains that 2 files linked with an other
address results in a different file.  It seems that on amd64 this
isn't working properly.

When running configure it says:
configure: error: GRUB requires a working absolute objcopy;
upgrade your binutils

in acinclude.m4:
dnl Some versions of `objcopy -O binary' vary their output depending
dnl on the link address.
....

Running the test program mannually, once linked at 2000 once at
8000 shows this difference (hexdump of the binary file):
 0000000 4855 e589 04c7 0025 0010 0200 0000 c900
 0000010 00c3 0000 0000 0000 0014 0000 0000 0000
 0000020 0001 7801 0c10 0807 0190 0000 0000 0000
-0000030 001c 0000 001c 0000 2000 0000 0000 0000
+0000030 001c 0000 001c 0000 8000 0000 0000 0000
 0000040 0011 0000 0000 0000 0e41 8610 4302 060d
 0000050

It shows the difference are the addresses linked at.


Kurt

#244498#10
Date:
2005-11-26 12:07:39 UTC
From:
To:
Hi,

There doesn't seem to have been any progress on this?

Would if help if I forward this to upstream myself?


Kurt