@All
We a bit on the line to be in the beta state for some fresh release of new binutils, but for that we need to pass some more tests about which we had issues before, and one of the latest issues we want to sort out is that "baserel" stuff.
But testing this is not trivial (for us at least), as we don't know how to write proper test case to test baserel stuff.
All we find, is that in adtools, there are some old/unmaintained test cases written years ago to be tested on qemu: there they are:
https://github.com/sba1/adtools/blob/m ... ests/test-baserel-large.chttps://github.com/sba1/adtools/blob/master/tests/test-baserel.cand they share some "common.h" file in the same place.
So far, they should be compiled like this:
ppc-amigaos-gcc -B -g -Wa,-me500 -O0 test-baserel.c -nostdinc -nostdlib -fno-builtin -g -c -o test-baserel.o
Problem is that common.h had:
#define tlbwe() \
do \
{ \
asm volatile ( "tlbwe" : : : "memory" ); \
} \
while(0)
causing:
/tmp/ccp7tNEC.s: Assembler messages:
/tmp/ccp7tNEC.s:35: Error: unrecognized opcode: `tlbwe'
It can be very well that back in days -me500 were enough to say to AS to handle proper opcode, but today surely not, and for sake of tests i provide something -mcpu=e5500 instead to make it compiles. But then binary simple crashes.
All of this sounds kind of hardcore, so, maybe anyone can wrote a simple-little test case for both baserel and baserel-large parts (the ones we need to support probably), without all those specific to CPU opcodes, so we can test it ?
Thanks !