OpenSolaris

Printable Version Enter a New Search
Bug ID 6529613
Synopsis bogus dld_str global symbol in dld, dls, and aggr
State 10-Fix Delivered (Fix available in build)
Category:Subcategory kernel:gld
Keywords oss-bite-size
Sponsor
Submitter
Responsible Engineer Shuguo Yang
Reported Against snv_58
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_98
Fixed In snv_98
Release Fixed solaris_nevada(snv_98)
Related Bugs 6226441
Submit Date 28-February-2007
Last Update Date 10-September-2008
Description
<sys/dld_impl.h> defines dld_str_t as follows:

typedef struct dld_str  dld_str_t;

/*
 * dld_str_t object definition.
 */
struct dld_str {
...
} dld_str; 

In addition to defining dld_str_t as a structure of type "struct dld_str", this also results in a bogus global variable named "dld_str" to be instanciated in all files that include <sys/dld_impl.h>:

zhadum(/kernel/misc/sparcv9)$ nm dls | grep dld_str
[234]   |                   8|                 272|OBJT |GLOB |0    |COMMON |dld_str

zhadum(/kernel/drv/sparcv9)$ nm dld | grep dld_str
...
[238]   |                   8|                 272|OBJT |GLOB |0    |COMMON |dld_str
...

zhadum(/kernel/drv/sparcv9)$ nm aggr | grep dld_str
[238]   |                   8|                 272|OBJT |GLOB |0    |COMMON |dld_str
...
Work Around
N/A
Comments
N/A