diffblue-cbmc/regression/ansi-c/linker_script_start+end
Kareem Khazem 85521b0263
goto-gcc reads definitions from linker scripts
goto-gcc now runs the ls_parse.py script whenever the target codebase is
being compiled with a custom linker script (specified with the -T
option). goto-gcc then synthesizes the linker script definitions that
ls_parse reported, and adds them to the goto-program as if those
definitions were defined in the target C program rather than the linker
script.

This solves a problem where the values of some C variables are
inaccessible from CBMC because those variables are defined in the linker
script rather than the C codebase. It also solves the problem of CBMC
not knowing what memory regions are accessible to the C program, again
because the memory regions are declared to be valid in the linker
script.

This commit also introduces three tests for this functionality.

This commit also fixes a small bug in ls_parse.py that made it reject
some valid linker scripts.
2017-09-04 11:39:32 +01:00
..
main.c goto-gcc reads definitions from linker scripts 2017-09-04 11:39:32 +01:00
script.ld goto-gcc reads definitions from linker scripts 2017-09-04 11:39:32 +01:00
test.desc goto-gcc reads definitions from linker scripts 2017-09-04 11:39:32 +01:00