http://sourceware.org/bugzilla/show_bug.cgi?id=16011
Bug ID: 16011 Summary: [invalid-code] gnu as adds the unexpected offset to operand annotated with .weak directive Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: jojelino at gmail dot com Created attachment 7224 --> http://sourceware.org/bugzilla/attachment.cgi?id=7224&action=edit testsuite /bin/as weak.S -o weak.o -v ;objdump -d weak.o|grep mov GNU assembler version 2.24.51 (i686-pc-cygwin) using BFD version (GNU Binutils) 2.24.51.20131008 20: ba f0 ff ff ff mov $0xfffffff0,%edx if you comment out .weak directive, GNU assembler version 2.24.51 (i686-pc-cygwin) using BFD version (GNU Binutils) 2.24.51.20131008 20: ba 10 00 00 00 mov $0x10,%edx in result, .weak directive corrupts output object file. please fix this. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils