Skip to content

Commit bcccb98

Browse files
karkhazpolgreen
authored andcommitted
Regenerated cross-compiled arch flag test binaries
This was needed after an update to goto-cc, which caused previously-compiled binaries used in the test suite to trigger an assertion failure. Also updated instructions on how to generate these binaries. This commit fixes diffblue#1376.
1 parent a4dc986 commit bcccb98

File tree

6 files changed

+14
-4
lines changed

6 files changed

+14
-4
lines changed
-29 Bytes
Binary file not shown.
-25 Bytes
Binary file not shown.

regression/ansi-c/arch_flags_mcpu_good/test.desc

+7-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ The object file 'object.arm' was compiled from 'source.c' with goto-cc
1212
along with an ARM cross-compiler on a 64-bit platform with the following
1313
command line:
1414

15-
goto-cc --native-compiler=arm-none-eabi-gcc -mcpu=cortex-a15 -c source.c
15+
goto-cc -o object.arm --native-compiler=arm-none-eabi-gcc -mcpu=cortex-a15 -c source.c
1616

17-
On Ubuntu, you can get a suitable compiler using:
17+
To regenerate object.arm on an x86_64 machine, you will need to install
18+
an ARM-32 cross compiler and pass the name of that compiler to the
19+
--native-compiler flag. On Ubuntu, you can get a suitable compiler
20+
using:
1821

1922
sudo apt install gcc-arm-none-eabi
2023

24+
which will install arm-none-eabi-gcc (amongst other things).
25+
2126
preproc.i is already pre-processed so that it can be linked in without
2227
needing to invoke a pre-processor from a cross-compile toolchain on your
2328
local machine. Linking it together with the ARM object file, while
Binary file not shown.
-83 Bytes
Binary file not shown.

regression/ansi-c/arch_flags_mthumb_good/test.desc

+7-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ file 'object.arm' was compiled from 'source.c' with goto-cc along with
1212
an ARM cross-compiler on a 64-bit platform with the following command
1313
line:
1414

15-
goto-cc --native-compiler=arm-none-eabi-gcc -mthumb -c source.c
15+
goto-cc -o object.arm --native-compiler=arm-none-eabi-gcc -mthumb -c source.c
1616

17-
On Ubuntu, you can get a suitable compiler using:
17+
To regenerate object.arm on an x86_64 machine, you will need to install
18+
an ARM-32 cross compiler and pass the name of that compiler to the
19+
--native-compiler flag. On Ubuntu, you can get a suitable compiler
20+
using:
1821

1922
sudo apt install gcc-arm-none-eabi
2023

24+
which will install arm-none-eabi-gcc (amongst other things).
25+
2126
preproc.i is already pre-processed so that it can be linked in without
2227
needing to invoke a pre-processor from a cross-compile toolchain on your
2328
local machine. Linking it together with the ARM object file, while

0 commit comments

Comments
 (0)