OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_42/] [or1ksim/] [cpu/] [common/] [parse.c] - Diff between revs 138 and 167

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 138 Rev 167
Line 308... Line 308...
                    MEMORY_START + MEMORY_LEN) {
                    MEMORY_START + MEMORY_LEN) {
                        printf("Section %s ends out of ", coffscnhdr.s_name);
                        printf("Section %s ends out of ", coffscnhdr.s_name);
                        printf("memory.\n");
                        printf("memory.\n");
                        exit(1);
                        exit(1);
                }
                }
 
#if 0
                if (++firstthree == 1 && strcmp(coffscnhdr.s_name, ".text") != 0) {
                if (++firstthree == 1 && strcmp(coffscnhdr.s_name, ".text") != 0) {
                        printf("First section should be .text (%s instead)\n", coffscnhdr.s_name);
                        printf("First section should be .text (%s instead)\n", coffscnhdr.s_name);
                        exit(1);
                        exit(1);
                }
                }
                if (firstthree == 2 && strcmp(coffscnhdr.s_name, ".data") != 0) {
                if (firstthree == 2 && strcmp(coffscnhdr.s_name, ".data") != 0) {
Line 320... Line 321...
                }
                }
                if (firstthree == 3 && strcmp(coffscnhdr.s_name, ".bss") != 0) {
                if (firstthree == 3 && strcmp(coffscnhdr.s_name, ".bss") != 0) {
                        printf("Third section should be .bss (%s instead)\n", coffscnhdr.s_name);
                        printf("Third section should be .bss (%s instead)\n", coffscnhdr.s_name);
                        exit(1);
                        exit(1);
                }
                }
 
#else
 
                ++firstthree;
 
#endif
 
 
                /* loading section */
                /* loading section */
                freemem = COFF_LONG_H(coffscnhdr.s_vaddr);
                freemem = COFF_LONG_H(coffscnhdr.s_vaddr);
                debug("Starting to load at 0x%x", freemem);
                debug("Starting to load at 0x%x", freemem);
                if (fseek(inputfs, COFF_LONG_H(coffscnhdr.s_scnptr), SEEK_SET) == -1) {
                if (fseek(inputfs, COFF_LONG_H(coffscnhdr.s_scnptr), SEEK_SET) == -1) {

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.