test/testfiles_for_readelf/mips64-relocs.c
raw| 1 | /* This source was compiled for MIPS64 (big endian) and MIPS64EL (little |
| 2 | endial): |
| 3 | |
| 4 | mips64-unknown-linux-gnu-gcc -c mips64-relocs.c -o mips64-relocs-be.o.elf -mabi=64 |
| 5 | mips64el-unknown-linux-gnu-gcc -c mips64-relocs.c -o mips64-relocs-le.o.elf -mabi=64 |
| 6 | */ |
| 7 | |
| 8 | extern struct { |
| 9 | int i, j; |
| 10 | } data; |
| 11 | |
| 12 | extern int bar (void); |
| 13 | |
| 14 | int |
| 15 | foo (int a) |
| 16 | { |
| 17 | data.i += a; |
| 18 | data.j -= bar(); |
| 19 | } |