Dlltool: prevent GAS warnings about clipped .short values
Nick Clifton
nickc@cygnus.com
Wed Nov 3 02:56:00 GMT 1999
More information about the Binutils mailing list
Wed Nov 3 02:56:00 GMT 1999
- Previous message (by thread): Minor arm cleanup
- Next message (by thread): elf32.em
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Guys, I have just checked in the following small patch. It prevents dlltool from issue .short directives that look like this: .short 0xffffd300 which will generate warning messages from the assembler about truncated .short directives. Cheers Nick 1999-11-03 Nick Clifton <nickc@cygnus.com> * dlltool.c (flush_page): Clip short values to prevent warnings from the assembler. Index: dlltool.c =================================================================== RCS file: /cvs/binutils/binutils/binutils/dlltool.c,v retrieving revision 1.14 diff -p -r1.14 dlltool.c *** dlltool.c 1999/10/26 10:10:51 1.14 --- dlltool.c 1999/11/03 10:54:23 *************** flush_page (f, need, page_addr, on_page) *** 1572,1581 **** ASM_LONG, (on_page * 2) + (on_page & 1) * 2 + 8, ASM_C); for (i = 0; i < on_page; i++) ! { ! fprintf (f, "\t%s\t0x%lx\n", ASM_SHORT, (need[i] - page_addr) | 0x3000); ! } /* And padding */ if (on_page & 1) fprintf (f, "\t%s\t0x%x\n", ASM_SHORT, 0 | 0x0000); --- 1572,1582 ---- ASM_LONG, (on_page * 2) + (on_page & 1) * 2 + 8, ASM_C); + for (i = 0; i < on_page; i++) ! fprintf (f, "\t%s\t0x%lx\n", ASM_SHORT, ! ((need[i] - page_addr) | 0x3000) & 0xffff); ! /* And padding */ if (on_page & 1) fprintf (f, "\t%s\t0x%x\n", ASM_SHORT, 0 | 0x0000);
- Previous message (by thread): Minor arm cleanup
- Next message (by thread): elf32.em
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list