Messages in this thread | | | Subject | Re: [PATCH][TRIVIAL] Remove bogus "value 0x37ffffff truncated to 0x37ffffff" warning. | From | Martin Schlemmer <> | Date | Sun, 11 Jan 2004 20:38:38 +0200 |
| |
On Sun, 2004-01-11 at 19:53, Davide Libenzi wrote: > On Sun, 11 Jan 2004, Martin Schlemmer wrote: > > > On Sun, 2004-01-11 at 18:53, Davide Libenzi wrote: > > > On Sun, 11 Jan 2004, Bart Samwel wrote: > > > > > > > Now it seems to behave correctly: for '~' it always warns, for '-' it > > > > only warns if the negative value is below -0x80000000. I'll submit a > > > > patch to this effect (including the format extensions) to the binutils > > > > people. > > > > > > binutils 2.14 works fine, so I believe they already fixed it. > > > > > > > I would beg to differ: > > > > -- > > nosferatu linux # make > > make[1]: `arch/i386/kernel/asm-offsets.s' is up to date. > > CHK include/asm-i386/asm_offsets.h > > CHK include/linux/compile.h > > AS arch/i386/boot/setup.o > > arch/i386/boot/setup.S: Assembler messages: > > arch/i386/boot/setup.S:165: Warning: value 0x37ffffff truncated to 0x37ffffff > > LD arch/i386/boot/setup > > BUILD arch/i386/boot/bzImage > > Root device is (8, 3) > > Boot sector 512 bytes. > > Setup is 4799 bytes. > > System is 1366 kB > > Kernel: arch/i386/boot/bzImage is ready > > Building modules, stage 2. > > MODPOST > > nosferatu linux # ld --version > > GNU ld version 2.14.90.0.7 20031029 > > Copyright 2002 Free Software Foundation, Inc. > > This program is free software; you may redistribute it under the terms of > > the GNU General Public License. This program has absolutely no warranty. > > nosferatu linux # > > Ouch ! I have: > > GNU assembler 2.14 20030612 > > and it works fine. Can you try: > > $ as << EOF > > PG=0xC0000000 > VM=(128 << 20) > > .long (-PG -VM) > .long (~PG + 1 - VM) > EOF > > $ objdump -D a.out > >
-- azarah@nosferatu tar $ as << EOF > PG=0xC0000000 > VM=(128 << 20) > .long (-PG -VM) > .long (~PG + 1 - VM) > EOF {standard input}: Assembler messages: {standard input}:3: Warning: value 0x38000000 truncated to 0x38000000 {standard input}:4: Warning: value 0x38000000 truncated to 0x38000000 azarah@nosferatu tar $ objdump -D a.out a.out: file format elf32-i386 Disassembly of section .text: 00000000 <.text>: 0: 00 00 add %al,(%eax) 2: 00 38 add %bh,(%eax) 4: 00 00 add %al,(%eax) 6: 00 38 add %bh,(%eax) azarah@nosferatu tar $ --
-- Martin Schlemmer [unhandled content-type:application/pgp-signature] | |