URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [trunk/] [or1ksim/] [cpu/] [or32/] [dyngen-elf.c] - Diff between revs 1748 and 1751
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1748 |
Rev 1751 |
Line 84... |
Line 84... |
/* FIXME: Swap data as necessary */
|
/* FIXME: Swap data as necessary */
|
|
|
if((obj->e_hdr.e_ident[EI_VERSION] != 1) ||
|
if((obj->e_hdr.e_ident[EI_VERSION] != 1) ||
|
(obj->e_hdr.e_version != 1)) {
|
(obj->e_hdr.e_version != 1)) {
|
fprintf(stderr, "Unexpected elf version found: %i (%li)\n",
|
fprintf(stderr, "Unexpected elf version found: %i (%li)\n",
|
obj->e_hdr.e_ident[EI_VERSION], obj->e_hdr.e_version);
|
obj->e_hdr.e_ident[EI_VERSION], (long int)obj->e_hdr.e_version);
|
goto error_load;
|
goto error_load;
|
}
|
}
|
|
|
if(obj->e_hdr.e_type != ET_REL) {
|
if(obj->e_hdr.e_type != ET_REL) {
|
fprintf(stderr, "Appears that we did not receive a object file\n");
|
fprintf(stderr, "Appears that we did not receive a object file\n");
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.