From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: donn@interix.com Cc: bfd@cygnus.com, gas2@cygnus.com Subject: Re: COFF/PE gas regression: bug Date: Wed, 31 Mar 1999 10:24:00 -0000 Message-id: <19990331182433.20124.qmail@comton.airs.com> References: <370258C3.46EB1F8D@interix.com> X-SW-Source: 1999/msg00046.html Date: Wed, 31 Mar 1999 10:17:55 -0700 From: Donn Terry I believe the gas testsuite has a bad test, as follows: In testsuite/gas/all/gas.exp, one of the tests is for structure tags (see cofftag*). It creates the symbol _operator as storage class 16 (MOE), type 11 (0xb, MOE). According to the best COFF standard I have (which is no longer on the web that I can find, but was on SCO's website): "A special section number (-2) marks symbolic debugging symbols, including structure/union/enumeration tag names...". (Microsoft's PE documentation agrees, but isn't quite as explicit.) (DJ's machine is not responding at the moment.) The test expects a value of -1 (Absolute symbol), which according to the above is incorrect. The best approach for something like this is to see what the tools on some other COFF system do. Can anybody try assembling gas/testsuite/gas/all/cofftag.s on a native COFF system? Ian