This is the mail archive of the mailing list for the glibc 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: perl script to find symbols for libgcc-compat

On Sat, Sep 07, 2002 at 04:12:54PM -0400, Jack Howarth wrote:
> Hello,
>     As an aid to those arches which haven't yet clearly determined if
> they need to add a libgcc-compat for run-time resolution of the newly
> .hidden libgcc symbols, I have created a perl script to gather these
> symbols. Whether you can find all the symbols with it may be effected
> by how many binaries/libraries you have available to search. However
> it should at least clarify which arches need a libgcc-compat file added.
> The perl script is based on the following assumptions
> 1) that only defined internal symbols in are of interest
> 2) that "frame" related libgcc symbols can be ignored as they arrived
>     after the .hidden change
> 3) that of the files to be searched for these symbols, those compiled 
>     with c++ (as determined by libstdc++ linkage) can be ignored
> 4) likewise and libstdc++ themselves as c++ code can be
>     ignored.
> To run the program, place it in a directory with write access and
> execute it. When finished you will have a list of candidate symbols
> for libgcc-compat in final.list and a list of their occurrences in
> the files searched in found.list. If anyone finds any flaws in this
> search approach let me know and I'll see if I can fix it.


While you're here, do you think you could make the script operate on
.deb's?  It's easy enough - accept a list of packages on STDIN, unpack
them with dpkg-deb.  Then we could run it over the archive directly.

Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

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