discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nm not finding __objc_class names Re: Loading bundle resources using


From: David Chisnall
Subject: Re: nm not finding __objc_class names Re: Loading bundle resources using GNUstep runtime 2.0
Date: Sat, 22 Feb 2020 13:39:12 +0000
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0

On 22/02/2020 03:46, Patryk Laurent wrote:
I believe that there is (or at least was) already dl_iterate_phdr,
and that for some reason this was added to get the list of classes
without actually loading
the object file?  If that path still exists, its perhaps possible this
series of issues, is people using this API,
and calling frameworkClasses without causing the loading shared object.
It seems an important part of the process is to determine if the listed classes 
in are implemented elsewhere (eg., in a framework). These scripts determine 
this by checking the output for no for class names having a “U” next to them, 
in which case they are such “elsewhere” classes.

Do the methods you are proposing inform on whether classes are implemented “in 
this module” versus “elsewhere”?

Only classes defined in a given binary are listed in the __objc_classes section. Classes that are referenced are listed in the __objc_class_refs section. Enumerating the __objc_classes section will give a complete list of all of the classes in a given binary.

David




reply via email to

[Prev in Thread] Current Thread [Next in Thread]