Re: backwards compatible ld.so patch

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

 



On Sun, May 13, 2001 at 11:54:31AM -0700, Ryan Murray wrote:

> Attached is a patch that changes the MAP_BASE_ADDR macro to one that Dan
> mentioned in his question about a backwards-compatible change to ld.so
> that allows both new and old shlibs to run.
> 
> This seems to work -- I've run perl (with an old-binutils libperl.so), with
> a new-binutils built ld.so and libc.so, and it works fine.  The comment above
> the change should probably be updated to indicate the new state of things,
> as well...
> 
> Comments?

Wrong.  You're replacing a hack with something even more evil.

Right thing would be to make sure that the dynamic table is loaded before
MAP_BASE_ADDR gets dereferenced; then you can reactivate the commented out
code.

  Ralf


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux