Support for ELF's STT_COMMON symbol type

Alan Modra amodra@bigpond.net.au
Thu Oct 4 00:02:00 GMT 2007


On Wed, Oct 03, 2007 at 07:41:17AM -0700, Ian Lance Taylor wrote:
> Alan Modra <amodra@bigpond.net.au> writes:
> > ld.so won't like STT_COMMON..
> 
> I hope that is not correct.

See glibc/elf/do-lookup.h

	if (__builtin_expect (ELFW(ST_TYPE) (sym->st_info) > STT_FUNC
			      && ELFW(ST_TYPE) (sym->st_info) != STT_TLS, 0))
	  /* Ignore all but STT_NOTYPE, STT_OBJECT and STT_FUNC
	     entries (and STT_TLS if TLS is supported) since these
	     are no code/data definitions.  */
	  return NULL;

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list