This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: GAS 2.11.1 doesn't work for sh-hitachi-coff


> Why is .file in COFF illegal and why did gas 2.10.1 accept it ?
> 
> obj-coff.c has
> 
> void
> c_dot_file_symbol (filename)
>      char *filename;
> {
>   symbolS *symbolP;
> 
>   symbolP = symbol_new (".file",
> 			SEG_DEBUG,
> 			0,
> 			&zero_address_frag);
> ...
> 
> I'll try and block out the two lines in tc-sh.c

It worked !

Hartmut

*** tc-sh.c.orig	Thu Jun  7 03:15:32 2001
--- tc-sh.c	Wed Jun 13 16:14:27 2001
***************
*** 97,104 ****
--- 97,106 ----
    {"2byte", s_uacons, 2},
    {"4byte", s_uacons, 4},
    {"8byte", s_uacons, 8},
+ #ifdef BFD_ASSEMBLER
    {"file", dwarf2_directive_file, 0 },
    {"loc", dwarf2_directive_loc, 0 },
+ #endif
    {0, 0, 0}
  };
  
***************
*** 1940,1946 ****
--- 1942,1950 ----
  	}
      }
  
+ #ifdef BFD_ASSEMBLER
    dwarf2_emit_insn (size);
+ #endif
  }
  
  /* This routine is called each time a label definition is seen.  It


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]