bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/5059] absolute objcopy not working on amd64?


From: happyarch at gmail dot com
Subject: [Bug binutils/5059] absolute objcopy not working on amd64?
Date: 1 Oct 2007 14:27:32 -0000

------- Additional Comments From happyarch at gmail dot com  2007-10-01 14:27 
-------
Thanks, so i tried following action.
root:/sources/grub-0.97# vi +1852 stage2/asm.S 

-        and     $0xffffffff, %rsi 
+        and     $0xffffffffffffffff, %rsi

-        and     $0xffffffff, %rdi
+        and     $0xffffffffffffffff, %rdi

and here is the result,

root:/sources/grub-0.97# make
make  all-recursive
make[1]: Entering directory `/sources/grub-0.97'
Making all in netboot
make[2]: Entering directory `/sources/grub-0.97/netboot'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/sources/grub-0.97/netboot'
Making all in stage2
make[2]: Entering directory `/sources/grub-0.97/stage2'
gcc -Os -fno-strict-aliasing -fno-stack-protector -fno-builtin -nostdinc 
-DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1
-DFSYS_FFS=1 -DFSYS_UFS2=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1
-DFSYS_JFS=1 -DFSYS_XFS=1 -DFSYS_ISO9660=1 -DUSE_MD5_PASSWORDS=1 -DHAVE_CONFIG_H
-I. -I. -I.. -I../stage1 -Wall -Wmissing-prototypes -Wunused -Wshadow
-Wpointer-arith -falign-jumps=1 -falign-loops=1 -falign-functions=1 -Wundef -m64
-g -c -o pre_stage2_exec-asm.o `test -f 'asm.S' || echo './'`asm.S
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -Wall -Wmissing-prototypes
-Wunused -Wshadow -Wpointer-arith -falign-jumps=1 -falign-loops=1
-falign-functions=1 -Wundef -Os -fno-strict-aliasing -fno-stack-protector
-fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1
-DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_UFS2=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1
-DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DFSYS_ISO9660=1 -DUSE_MD5_PASSWORDS=1
-m64 -g -MT pre_stage2_exec-bios.o -MD -MP -MF ".deps/pre_stage2_exec-bios.Tpo"
-c -o pre_stage2_exec-bios.o `test -f 'bios.c' || echo './'`bios.c; \
        then mv -f ".deps/pre_stage2_exec-bios.Tpo"
".deps/pre_stage2_exec-bios.Po"; else rm -f ".deps/pre_stage2_exec-bios.Tpo";
exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -Wall -Wmissing-prototypes
-Wunused -Wshadow -Wpointer-arith -falign-jumps=1 -falign-loops=1
-falign-functions=1 -Wundef -Os -fno-strict-aliasing -fno-stack-protector
-fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1
-DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_UFS2=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1
-DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DFSYS_ISO9660=1 -DUSE_MD5_PASSWORDS=1
-m64 -g -MT pre_stage2_exec-boot.o -MD -MP -MF ".deps/pre_stage2_exec-boot.Tpo"
-c -o pre_stage2_exec-boot.o `test -f 'boot.c' || echo './'`boot.c; \
        then mv -f ".deps/pre_stage2_exec-boot.Tpo"
".deps/pre_stage2_exec-boot.Po"; else rm -f ".deps/pre_stage2_exec-boot.Tpo";
exit 1; fi
boot.c: In function ‘load_image’:
boot.c:80: warning: cast from pointer to integer of different size
boot.c:80: warning: cast from pointer to integer of different size
boot.c:80: warning: cast to pointer from integer of different size
boot.c:80: warning: cast from pointer to integer of different size
boot.c:80: warning: cast to pointer from integer of different size
boot.c:80: warning: cast from pointer to integer of different size
boot.c:80: warning: cast to pointer from integer of different size
boot.c:80: warning: cast from pointer to integer of different size
boot.c:80: warning: cast to pointer from integer of different size
boot.c:80: warning: cast from pointer to integer of different size
boot.c:80: warning: cast to pointer from integer of different size
boot.c:80: warning: cast from pointer to integer of different size
boot.c:80: warning: cast to pointer from integer of different size
boot.c:112: warning: cast to pointer from integer of different size
boot.c:114: warning: cast to pointer from integer of different size
boot.c:146: warning: cast to pointer from integer of different size
boot.c:194: warning: cast from pointer to integer of different size
boot.c:194: warning: cast to pointer from integer of different size
boot.c:199: warning: cast from pointer to integer of different size
boot.c:205: warning: cast from pointer to integer of different size
boot.c:451: warning: cast from pointer to integer of different size
boot.c:485: warning: cast from pointer to integer of different size
boot.c:507: warning: cast to pointer from integer of different size
boot.c:521: warning: cast to pointer from integer of different size
boot.c:530: warning: cast to pointer from integer of different size
boot.c:550: warning: cast to pointer from integer of different size
boot.c:555: warning: cast to pointer from integer of different size
boot.c:563: warning: cast to pointer from integer of different size
boot.c:572: warning: cast to pointer from integer of different size
boot.c:606: warning: cast from pointer to integer of different size
boot.c:607: warning: cast to pointer from integer of different size
boot.c:626: warning: cast from pointer to integer of different size
boot.c:627: warning: cast from pointer to integer of different size
boot.c:629: warning: cast from pointer to integer of different size
boot.c:629: warning: cast to pointer from integer of different size
boot.c:644: warning: cast to pointer from integer of different size
boot.c:647: warning: cast to pointer from integer of different size
boot.c:676: warning: cast to pointer from integer of different size
boot.c:705: warning: cast to pointer from integer of different size
boot.c:740: warning: cast from pointer to integer of different size
boot.c: In function ‘load_module’:
boot.c:776: warning: cast to pointer from integer of different size
boot.c:787: warning: cast from pointer to integer of different size
boot.c:789: warning: cast from pointer to integer of different size
boot.c: In function ‘load_initrd’:
boot.c:809: warning: cast to pointer from integer of different size
boot.c:818: warning: cast to pointer from integer of different size
boot.c:845: warning: cast to pointer from integer of different size
boot.c: In function ‘bsd_boot’:
boot.c:992: warning: cast from pointer to integer of different size
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -Wall -Wmissing-prototypes
-Wunused -Wshadow -Wpointer-arith -falign-jumps=1 -falign-loops=1
-falign-functions=1 -Wundef -Os -fno-strict-aliasing -fno-stack-protector
-fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1
-DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_UFS2=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1
-DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DFSYS_ISO9660=1 -DUSE_MD5_PASSWORDS=1
-m64 -g -MT pre_stage2_exec-builtins.o -MD -MP -MF
".deps/pre_stage2_exec-builtins.Tpo" -c -o pre_stage2_exec-builtins.o `test -f
'builtins.c' || echo './'`builtins.c; \
        then mv -f ".deps/pre_stage2_exec-builtins.Tpo"
".deps/pre_stage2_exec-builtins.Po"; else rm -f
".deps/pre_stage2_exec-builtins.Tpo"; exit 1; fi
builtins.c: In function ‘boot_func’:
builtins.c:303: warning: cast from pointer to integer of different size
builtins.c:303: warning: cast from pointer to integer of different size
builtins.c:305: warning: cast from pointer to integer of different size
builtins.c:305: warning: cast from pointer to integer of different size
builtins.c: In function ‘multi_boot_64bit’:
builtins.c:324: warning: declaration of ‘entry_addr’ shadows a global 
declaration
./shared.h:700: warning: shadowed declaration is here
builtins.c:324: warning: declaration of ‘mbi’ shadows a global declaration
./shared.h:680: warning: shadowed declaration is here
builtins.c:326: warning: initialization makes pointer from integer without a 
cast
builtins.c:327: warning: initialization makes pointer from integer without a 
cast
builtins.c:328: warning: initialization makes pointer from integer without a 
cast
builtins.c:329: warning: initialization makes pointer from integer without a 
cast
builtins.c:330: warning: initialization makes pointer from integer without a 
cast
builtins.c:331: warning: initialization makes pointer from integer without a 
cast
builtins.c: In function ‘displaymem_func’:
builtins.c:990: warning: cast from pointer to integer of different size
builtins.c:1006: warning: cast from pointer to integer of different size
builtins.c: In function ‘embed_func’:
builtins.c:1142: warning: cast from pointer to integer of different size
builtins.c:1142: warning: cast to pointer from integer of different size
builtins.c:1150: warning: cast from pointer to integer of different size
builtins.c:1150: warning: cast to pointer from integer of different size
builtins.c:1150: warning: cast from pointer to integer of different size
builtins.c:1150: warning: cast to pointer from integer of different size
builtins.c: In function ‘disk_read_blocklist_func’:
builtins.c:1886: warning: cast to pointer from integer of different size
builtins.c:1887: warning: cast to pointer from integer of different size
builtins.c:1888: warning: cast from pointer to integer of different size
builtins.c:1892: warning: cast to pointer from integer of different size
builtins.c:1896: warning: cast to pointer from integer of different size
builtins.c:1897: warning: cast to pointer from integer of different size
builtins.c:1901: warning: cast to pointer from integer of different size
builtins.c: In function ‘install_func’:
builtins.c:2078: warning: cast from pointer to integer of different size
builtins.c:2079: warning: cast to pointer from integer of different size
builtins.c:2082: warning: cast from pointer to integer of different size
builtins.c:2082: warning: cast to pointer from integer of different size
builtins.c:2083: warning: cast to pointer from integer of different size
builtins.c:2084: warning: cast to pointer from integer of different size
builtins.c:2090: warning: cast to pointer from integer of different size
builtins.c:2091: warning: cast to pointer from integer of different size
builtins.c:2095: warning: cast from pointer to integer of different size
builtins.c: In function ‘partnew_func’:
builtins.c:2850: warning: cast from pointer to integer of different size
builtins.c:2850: warning: cast to pointer from integer of different size
builtins.c:2851: warning: cast from pointer to integer of different size
builtins.c:2851: warning: cast to pointer from integer of different size
builtins.c:2852: warning: cast from pointer to integer of different size
builtins.c:2852: warning: cast to pointer from integer of different size
builtins.c:2853: warning: cast from pointer to integer of different size
builtins.c:2853: warning: cast to pointer from integer of different size
builtins.c:2854: warning: cast from pointer to integer of different size
builtins.c:2854: warning: cast to pointer from integer of different size
builtins.c:2855: warning: cast from pointer to integer of different size
builtins.c:2855: warning: cast to pointer from integer of different size
builtins.c:2856: warning: cast from pointer to integer of different size
builtins.c:2856: warning: cast to pointer from integer of different size
builtins.c:2857: warning: cast from pointer to integer of different size
builtins.c:2857: warning: cast to pointer from integer of different size
builtins.c:2858: warning: cast from pointer to integer of different size
builtins.c:2858: warning: cast to pointer from integer of different size
builtins.c:2859: warning: cast from pointer to integer of different size
builtins.c:2859: warning: cast to pointer from integer of different size
builtins.c:2862: warning: cast from pointer to integer of different size
builtins.c:2862: warning: cast to pointer from integer of different size
builtins.c: In function ‘parttype_func’:
builtins.c:2934: warning: cast from pointer to integer of different size
builtins.c:2934: warning: cast to pointer from integer of different size
builtins.c: In function ‘read_func’:
builtins.c:3117: warning: cast to pointer from integer of different size
builtins.c: In function ‘testload_func’:
builtins.c:4472: warning: cast to pointer from integer of different size
builtins.c:4473: warning: cast to pointer from integer of different size
builtins.c:4511: warning: cast to pointer from integer of different size
builtins.c:4512: warning: cast to pointer from integer of different size
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -Wall -Wmissing-prototypes
-Wunused -Wshadow -Wpointer-arith -falign-jumps=1 -falign-loops=1
-falign-functions=1 -Wundef -Os -fno-strict-aliasing -fno-stack-protector
-fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1
-DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_UFS2=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1
-DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DFSYS_ISO9660=1 -DUSE_MD5_PASSWORDS=1
-m64 -g -MT pre_stage2_exec-char_io.o -MD -MP -MF
".deps/pre_stage2_exec-char_io.Tpo" -c -o pre_stage2_exec-char_io.o `test -f
'char_io.c' || echo './'`char_io.c; \
        then mv -f ".deps/pre_stage2_exec-char_io.Tpo"
".deps/pre_stage2_exec-char_io.Po"; else rm -f
".deps/pre_stage2_exec-char_io.Tpo"; exit 1; fi
char_io.c: In function ‘grub_printf’:
char_io.c:183: warning: cast to pointer from integer of different size
char_io.c: In function ‘grub_sprintf’:
char_io.c:223: warning: cast to pointer from integer of different size
char_io.c: In function ‘grub_memmove’:
char_io.c:1223: warning: cast from pointer to integer of different size
char_io.c: In function ‘grub_memset’:
char_io.c:1261: warning: cast from pointer to integer of different size
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -Wall -Wmissing-prototypes
-Wunused -Wshadow -Wpointer-arith -falign-jumps=1 -falign-loops=1
-falign-functions=1 -Wundef -Os -fno-strict-aliasing -fno-stack-protector
-fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1
-DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_UFS2=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1
-DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DFSYS_ISO9660=1 -DUSE_MD5_PASSWORDS=1
-m64 -g -MT pre_stage2_exec-cmdline.o -MD -MP -MF
".deps/pre_stage2_exec-cmdline.Tpo" -c -o pre_stage2_exec-cmdline.o `test -f
'cmdline.c' || echo './'`cmdline.c; \
        then mv -f ".deps/pre_stage2_exec-cmdline.Tpo"
".deps/pre_stage2_exec-cmdline.Po"; else rm -f
".deps/pre_stage2_exec-cmdline.Tpo"; exit 1; fi
cmdline.c: In function ‘run_script’:
cmdline.c:218: warning: cast from pointer to integer of different size
cmdline.c:218: warning: cast from pointer to integer of different size
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -Wall -Wmissing-prototypes
-Wunused -Wshadow -Wpointer-arith -falign-jumps=1 -falign-loops=1
-falign-functions=1 -Wundef -Os -fno-strict-aliasing -fno-stack-protector
-fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1
-DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_UFS2=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1
-DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DFSYS_ISO9660=1 -DUSE_MD5_PASSWORDS=1
-m64 -g -MT pre_stage2_exec-common.o -MD -MP -MF
".deps/pre_stage2_exec-common.Tpo" -c -o pre_stage2_exec-common.o `test -f
'common.c' || echo './'`common.c; \
        then mv -f ".deps/pre_stage2_exec-common.Tpo"
".deps/pre_stage2_exec-common.Po"; else rm -f
".deps/pre_stage2_exec-common.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -Wall -Wmissing-prototypes
-Wunused -Wshadow -Wpointer-arith -falign-jumps=1 -falign-loops=1
-falign-functions=1 -Wundef -Os -fno-strict-aliasing -fno-stack-protector
-fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1
-DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_UFS2=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1
-DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DFSYS_ISO9660=1 -DUSE_MD5_PASSWORDS=1
-m64 -g -MT pre_stage2_exec-console.o -MD -MP -MF
".deps/pre_stage2_exec-console.Tpo" -c -o pre_stage2_exec-console.o `test -f
'console.c' || echo './'`console.c; \
        then mv -f ".deps/pre_stage2_exec-console.Tpo"
".deps/pre_stage2_exec-console.Po"; else rm -f
".deps/pre_stage2_exec-console.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -Wall -Wmissing-prototypes
-Wunused -Wshadow -Wpointer-arith -falign-jumps=1 -falign-loops=1
-falign-functions=1 -Wundef -Os -fno-strict-aliasing -fno-stack-protector
-fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1
-DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_UFS2=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1
-DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DFSYS_ISO9660=1 -DUSE_MD5_PASSWORDS=1
-m64 -g -MT pre_stage2_exec-disk_io.o -MD -MP -MF
".deps/pre_stage2_exec-disk_io.Tpo" -c -o pre_stage2_exec-disk_io.o `test -f
'disk_io.c' || echo './'`disk_io.c; \
        then mv -f ".deps/pre_stage2_exec-disk_io.Tpo"
".deps/pre_stage2_exec-disk_io.Po"; else rm -f
".deps/pre_stage2_exec-disk_io.Tpo"; exit 1; fi
disk_io.c: In function ‘make_saved_active’:
disk_io.c:473: warning: cast from pointer to integer of different size
disk_io.c:473: warning: cast to pointer from integer of different size
disk_io.c:473: warning: cast from pointer to integer of different size
disk_io.c:473: warning: cast to pointer from integer of different size
disk_io.c:473: warning: cast from pointer to integer of different size
disk_io.c:473: warning: cast to pointer from integer of different size
disk_io.c:480: warning: cast from pointer to integer of different size
disk_io.c:480: warning: cast to pointer from integer of different size
disk_io.c:486: warning: cast from pointer to integer of different size
disk_io.c:486: warning: cast to pointer from integer of different size
disk_io.c:489: warning: cast from pointer to integer of different size
disk_io.c:489: warning: cast to pointer from integer of different size
disk_io.c: In function ‘set_partition_hidden_flag’:
disk_io.c:540: warning: cast from pointer to integer of different size
disk_io.c:540: warning: cast to pointer from integer of different size
disk_io.c:542: warning: cast from pointer to integer of different size
disk_io.c:542: warning: cast to pointer from integer of different size
disk_io.c: In function ‘next_bsd_partition’:
disk_io.c:615: warning: cast from pointer to integer of different size
disk_io.c:615: warning: cast to pointer from integer of different size
disk_io.c:625: warning: cast from pointer to integer of different size
disk_io.c:625: warning: cast to pointer from integer of different size
disk_io.c:627: warning: cast from pointer to integer of different size
disk_io.c:627: warning: cast to pointer from integer of different size
disk_io.c:631: warning: cast from pointer to integer of different size
disk_io.c:631: warning: cast to pointer from integer of different size
disk_io.c:632: warning: cast from pointer to integer of different size
disk_io.c:632: warning: cast to pointer from integer of different size
disk_io.c:633: warning: cast from pointer to integer of different size
disk_io.c:633: warning: cast to pointer from integer of different size
disk_io.c:638: warning: cast from pointer to integer of different size
disk_io.c:638: warning: cast to pointer from integer of different size
disk_io.c: In function ‘next_pc_slice’:
disk_io.c:670: warning: cast from pointer to integer of different size
disk_io.c:670: warning: cast to pointer from integer of different size
disk_io.c:687: warning: cast from pointer to integer of different size
disk_io.c:687: warning: cast to pointer from integer of different size
disk_io.c:687: warning: cast from pointer to integer of different size
disk_io.c:687: warning: cast to pointer from integer of different size
disk_io.c:687: warning: cast from pointer to integer of different size
disk_io.c:687: warning: cast to pointer from integer of different size
disk_io.c:691: warning: cast from pointer to integer of different size
disk_io.c:691: warning: cast to pointer from integer of different size
disk_io.c:703: warning: cast from pointer to integer of different size
disk_io.c:703: warning: cast to pointer from integer of different size
disk_io.c:704: warning: cast from pointer to integer of different size
disk_io.c:704: warning: cast to pointer from integer of different size
disk_io.c:705: warning: cast from pointer to integer of different size
disk_io.c:705: warning: cast to pointer from integer of different size
disk_io.c: In function ‘set_bootdev’:
disk_io.c:1155: warning: cast to pointer from integer of different size
disk_io.c: In function ‘grub_open’:
disk_io.c:1593: warning: cast to pointer from integer of different size
disk_io.c:1604: warning: cast to pointer from integer of different size
disk_io.c: In function ‘grub_read’:
disk_io.c:1703: warning: cast to pointer from integer of different size
disk_io.c:1714: warning: cast to pointer from integer of different size
disk_io.c:1722: warning: cast to pointer from integer of different size
/tmp/ccD4qio5.s: Assembler messages:
/tmp/ccD4qio5.s:795: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccD4qio5.s:847: Error: Incorrect register `%rax' used with `l' suffix
make[2]: *** [pre_stage2_exec-disk_io.o] Error 1
make[2]: Leaving directory `/sources/grub-0.97/stage2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/grub-0.97'
make: *** [all] Error 2
root:/sources/grub-0.97# vi +795 /tmp/ccD4qio5.s

"/tmp/ccD4qio5.s" [New File]




-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5059

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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