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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [cpu/] [common/] [parse.c] - Diff between revs 361 and 513

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

Rev 361 Rev 513
Line 310... Line 310...
      perror("readsyms_coff");
      perror("readsyms_coff");
      exit(1);
      exit(1);
    }
    }
 
 
    n = (unsigned char)coffsymhdr.e_numaux[0];
    n = (unsigned char)coffsymhdr.e_numaux[0];
 
 
 
    /* check whether this symbol belongs to a section and is external symbol; ignore all others */
 
    if (COFF_SHORT_H(coffsymhdr.e_scnum) >= 0 && coffsymhdr.e_sclass[0] == C_EXT) {
 
#if 0
    /* If not important or not in text, skip. */
    /* If not important or not in text, skip. */
    if (COFF_SHORT_H(coffsymhdr.e_type) & COFF_N_TMASK & COFF_STYP_TEXT) {
    if (COFF_SHORT_H(coffsymhdr.e_type) & COFF_N_TMASK & COFF_STYP_TEXT) {
 
#endif
 
 
      if (*((unsigned long *)coffsymhdr.e.e.e_zeroes)) {
      if (*((unsigned long *)coffsymhdr.e.e.e_zeroes)) {
  if (strlen(coffsymhdr.e.e_name) && strlen(coffsymhdr.e.e_name) < 9)
  if (strlen(coffsymhdr.e.e_name) && strlen(coffsymhdr.e.e_name) < 9)
    add_label(COFF_LONG_H(coffsymhdr.e_value), coffsymhdr.e.e_name);
    add_label(COFF_LONG_H(coffsymhdr.e_value), coffsymhdr.e.e_name);
  debug(8, "[%i] Symbol: %s,", count++, coffsymhdr.e.e_name);
  debug(8, "[%i] Symbol: %s,", count++, coffsymhdr.e.e_name);

powered by: WebSVN 2.1.0

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