opencc -c moveorg.c
/tmp/ccspin#.NruQ8p.s: Assembler messages:
/tmp/ccspin#.NruQ8p.s:39: Error: attempt to move .org backwards
-----
The problem here ("attempt to move .org backwards") is due to the
conflict between k8_nops definition in "init.rodata" section and
k8nops definition from the asm section. Codegen always issues
explicit .org directives with the pre-calculated offsets. GCC doesn't
do it.
Turning off ".org" generation completely is not a solution.
This impacts both open64 and path64.. Suggestions or anyone interested to work
together on this?
Thanks
./C
asm("\t" ".section \".init.rodata\",\"a\",%progbits" "\nk8nops: "".byte 0x90\n"
".byte 0x66,0x90\n" ".byte 0x66,0x66,0x90\n" ".byte 0x66,0x66,0x66,0x90\n"
".byte 0x66,0x66,0x90\n" ".byte 0x66,0x90\n"".byte 0x66,0x66,0x90\n" ".byte
0x66,0x66,0x90\n" ".byte 0x66,0x66,0x66,0x90\n" ".byte 0x66,0x66,0x90\n"
".byte 0x66,0x66,0x66,0x90\n" ".byte 0x66,0x66,0x66,0x90\n""\t.previous");
extern const unsigned char k8nops[];
static const unsigned char *const __attribute__
((__section__(".init.rodata"))) k8_nops[8 +1] = {
((void *)0), k8nops, k8nops + 1, k8nops + 1 + 2, k8nops + 1
+ 2 + 3, k8nops + 1 + 2 + 3 + 4, k8nops + 1 + 2 + 3 + 4 + 5, k8nops
+ 1 + 2 + 3 + 4 + 5 + 6, k8nops + 1 + 2 + 3 + 4 + 5 + 6 + 7, };
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel