This is the mail archive of the libc-alpha@sourceware.org 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: [PATCH v4] BFD: Prevent writing the MIPS _gp_disp symbol into symbol tables


On Tue, 1 May 2018, Maciej W. Rozycki wrote:

>  As I noted stripping the problematic symbol is IMO the best solution.  
> Using `$CC -print-prog-name=strip' to discover where the right `strip' 
> binary is should be a straightforward way to arrange that in a platform 
> `configure' fragment.  Then we can dump `_gp_disp' from .abilist files.

But adding an extra step to the process for linking shared objects (which 
is in architecture-independent code; after-link is used for executables as 
well as shared libraries, so doesn't seem suitable here) seems like excess 
complexity here, compared to changing existing handling of absolute 
symbols in abilist.awk to do something else (a net reduction in the amount 
of code).

Does strip even work to remove symbols from the dynamic symbol table (as 
opposed to the static symbol table)?

-- 
Joseph S. Myers
joseph@codesourcery.com


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