public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* how to fix linker message with shared libobjc library?
@ 2000-08-06 12:35 Ovidiu Predescu
  2000-08-06 23:23 ` H . J . Lu
  0 siblings, 1 reply; 2+ messages in thread
From: Ovidiu Predescu @ 2000-08-06 12:35 UTC (permalink / raw)
  To: gcc

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]

Hi,

I get the following warning from the linker whenever I try linking a program 
against the shared version of libobjc:

/usr/bin/ld: warning: type and size of dynamic symbol 
`__objc_class_name_NXConstantString' are not defined

Such a warning is issued by the linker when compiling string{1,2}.m in the
testsuite directory for Objective-C.

This message doesn't appear when I link against the static version of the
library. Does anybody know how to eliminate the warning message?

Thanks,
Ovidiu



[-- Attachment #2: pgp00000.pgp --]
[-- Type: text/plain, Size: 820 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Content-Type: text/plain; charset=us-ascii


Hi,

I get the following warning from the linker whenever I try linking a program 
against the shared version of libobjc:

/usr/bin/ld: warning: type and size of dynamic symbol 
`__objc_class_name_NXConstantString' are not defined

Such a warning is issued by the linker when compiling string{1,2}.m in the
testsuite directory for Objective-C.

This message doesn't appear when I link against the static version of the
library. Does anybody know how to eliminate the warning message?

Thanks,
Ovidiu


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.2 (GNU/Linux)
Comment: Exmh version 2.2 06/23/2000

iD8DBQE5jb3o1cM8Hy0YC5kRAseYAJ46ipCeaH2Isnw8TCjR2lwrNNQQ+gCfT2h/
gad+oH34BfIFX8uDM+kM/co=
=W1Et
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to fix linker message with shared libobjc library?
  2000-08-06 12:35 how to fix linker message with shared libobjc library? Ovidiu Predescu
@ 2000-08-06 23:23 ` H . J . Lu
  0 siblings, 0 replies; 2+ messages in thread
From: H . J . Lu @ 2000-08-06 23:23 UTC (permalink / raw)
  To: Ovidiu Predescu; +Cc: gcc

On Sun, Aug 06, 2000 at 12:35:05PM -0700, Ovidiu Predescu wrote:
> 
> Hi,
> 
> I get the following warning from the linker whenever I try linking a program 
> against the shared version of libobjc:
> 
> /usr/bin/ld: warning: type and size of dynamic symbol 
> `__objc_class_name_NXConstantString' are not defined
> 
> Such a warning is issued by the linker when compiling string{1,2}.m in the
> testsuite directory for Objective-C.
> 
> This message doesn't appear when I link against the static version of the
> library. Does anybody know how to eliminate the warning message?

I think it is a bug in the Objective-C compiler. For ABIs with the
copy relocation, like ia32, a dynamic data symbol may have to have
size and type to work correctly. The Objective-C compiler should
either don't generate __objc_class_name_NXConstantString or output

	.type	__objc_class_name_NXConstantString,@object
__objc_class_name_NXConstantString:
.L???:
	....
	.size	__objc_class_name_NXConstantString,.L???-__objc_class_name_NXConstantString


H.J.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-08-06 23:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-06 12:35 how to fix linker message with shared libobjc library? Ovidiu Predescu
2000-08-06 23:23 ` H . J . Lu

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).