Patch pour tigcc :
--- tigcc.c~ 2006-07-16 05:05:48.000000000 +0200
+++ tigcc.c 2008-02-29 20:46:05.000000000 +0100
@@ -223,7 +223,7 @@
} else if (!strcmp("--fargo", cur_arg)) {
fargo = TRUE;
ld_argv[ld_argc++] = cur_arg;
- } else if (!strcmp("--flash-os", cur_arg)) {
+ } else if (!strncmp("--flash-os", cur_arg, sizeof ("--flash-os")-1)) {
flashos = TRUE;
ld_argv[ld_argc++] = cur_arg;
} else if (!strcmp("--cut-ranges", cur_arg)) {
Un truc étrange m'est survenu.
Pour le code suivant :
section ".st1"
_ti89 xdef _ti89
lea (toto).w,a0
bra *
sne (tutu).w
section ".text"
bra *
BSS
toto: ds.b 4
tutu: dc.l 0
J'ai droit à des relogements relatifs:
*** DUMP 0 ***
Section
File: Test.o
Code
Test.o .st1: (local)
0x000000: 41 F8
0x000002: <2B: Test.o .bss (->) (rel)>
0x000004: 60 FE 56 F8
0x000008: <2B: Test.o .bss (->)+4 (rel)>
0x00000A: 4E 71
Section
File: Test.o
Code
Test.o .text: (local)
0x000000: 60 FE 4E 71
Section
File: Test.o
Data
Test.o .bss: (local)
0x000000: 00 00 00 00 00 00 00 00
Est-ce normal ?