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]
Other format: [Raw text]

Re: Does a zero-sized object in BSS go away?


Hi,

Consider

	.section .text
	.global _main
_main:
	;; Store the address of _zerosized and return.
	mov.w	#_zerosized,r0
	rts
	.comm _zerosized,0
	.end

When I assemble and link this file, I get a linker error:

  undefined reference to `_zerosized'

Is the linker supposed to assign an address to _zerosized?  Or simply
ignore it?  I am trying this on h8300-hms.

Thanks,

Kazu Hirata


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