public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
From: "Philippe De Muyter" <phdm@macqel.be>
To: donn@interix.com (Donn Terry)
Cc: ian@airs.com, bfd@cygnus.com, gas2@cygnus.com
Subject: Re: COFF/PE gas regression: bug
Date: Mon, 05 Apr 1999 16:39:00 -0000	[thread overview]
Message-ID: <199904052322.BAA16372@mail.macqel.be> (raw)
In-Reply-To: <3708D661.36E95338@interix.com>

> > Can anybody try assembling
> > gas/testsuite/gas/all/cofftag.s on a native COFF system?

Here it is (on m68k-motorola-sysv). I have regenerated cofftag.s with my
native compiler, because my native assembler refused to assemble cofftag.s
from the testsuite.

---------------------------- cofftag.s -----------------------------------
	file	"cofftag.c"
	data	1
	global	token
token:
	short	0x0000
	text
	def	token;	scl	15;	type	012;	size	4;	endef
	def	operator;	val	0;	scl	16;	type	013;	endef
	def	flags;	val	1;	scl	16;	type	013;	endef
	def	~eos;	val	4;	scl	102;	tag	token;	size	4;	endef
	data	1
	even
	global	what
what:
	long	0
--------------------------------------------------------------------------

and here are the result of the native `nm' and of objdump --syms

phdm/mac_tst nm cofftag.o


Symbols from cofftag.o:

Name                  Value   Class        Type         Size   Line  Section

cofftag.c           |        | file |                  |      |     |
token               |        |entag |              enum|     4|     |
operator            |       0|enmem |             enmem|      |     |(ABS)
flags               |       1|enmem |             enmem|      |     |(ABS)
.eos                |        |endstr|              null|     4|     |(ABS)
token               |       0|extern|              null|      |     |.data
what                |       2|extern|              null|      |     |.data
phdm/mac_tst objdump --syms -a cofftag.o

cofftag.o:     file format coff-m68k
cofftag.o

SYMBOL TABLE:
[  0](sec -2)(fl 0x00)(ty   0)(scl 103) (nx 1) 0x00000000 cofftag.c
File
[  2](sec -2)(fl 0x00)(ty   a)(scl  15) (nx 1) 0x00000000 token
AUX lnno 0 size 0x4 tagndx 0 endndx 8
[  4](sec -1)(fl 0x00)(ty   b)(scl  16) (nx 0) 0x00000000 operator
[  5](sec -1)(fl 0x00)(ty   b)(scl  16) (nx 0) 0x00000001 flags
[  6](sec -1)(fl 0x00)(ty   0)(scl 102) (nx 1) 0x00000004 .eos
AUX lnno 0 size 0x4 tagndx 2
[  8](sec  1)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x00000000 .text
AUX scnlen 0x0 nreloc 0 nlnno 0
[ 10](sec  2)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x00000000 .data
AUX scnlen 0x8 nreloc 0 nlnno 0
[ 12](sec  3)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x00000008 .bss
AUX scnlen 0x0 nreloc 0 nlnno 0
[ 14](sec  2)(fl 0x00)(ty   0)(scl   2) (nx 0) 0x00000000 token
[ 15](sec  2)(fl 0x00)(ty   0)(scl   2) (nx 0) 0x00000002 what

The section number used is -1, not -2.  I still hope this helps.

Philippe

  reply	other threads:[~1999-04-05 16:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-31  9:22 Donn Terry
1999-03-31 10:24 ` Ian Lance Taylor
1999-04-05  8:31   ` Donn Terry
1999-04-05 16:39     ` Philippe De Muyter [this message]
1999-04-06  7:55       ` Donn Terry
1999-04-06  8:11         ` Ian Lance Taylor
1999-04-06  8:20           ` Donn Terry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199904052322.BAA16372@mail.macqel.be \
    --to=phdm@macqel.be \
    --cc=bfd@cygnus.com \
    --cc=donn@interix.com \
    --cc=gas2@cygnus.com \
    --cc=ian@airs.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).