FR-V FDPIC protected improvements and undefweak bug fix

Alexandre Oliva aoliva@redhat.com
Sat Feb 14 04:28:00 GMT 2004


We used to consider an undefweak symbol as binding locally.  Oops.  My
thinko.  Fixed in the patch below.

While at that, I figured I could do a slightly better job at
R_FRV_FUNCDESC relocations pointing to protected symbols.  Even though
we do need an R_FRV_FUNCDESC dynamic relocation to get the dynamic
loader to create a single function descriptor to represent the
function's address both within the shared library and in other modules
that might bind to the library's definition, we can get the relocation
to not require dynamic binding, since the dynamic loader creates the
function descriptor for the symbol's address, so we might as well
decay the relocation to use section+offset.

This patch introduces these two changes, and adjust the testsuite
accordingly.

Ok to install?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfd-frv-decay-protected-funcdesc.patch
Type: text/x-patch
Size: 29471 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20040214/0953c564/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Happy GNU Year!                     oliva@{lsd.ic.unicamp.br, gnu.org}
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist                Professional serial bug killer


More information about the Binutils mailing list