PSARC/2007/509 elfedit

Ali Bahrami Ali.Bahrami at sun.com
Thu Sep 6 12:00:35 PDT 2007


James Carlson wrote:
> Ali Bahrami writes:
>> I agree that there is not much value to the end user in setting
>> LD_NOEXEC_64 for elfedit. However, someone writing an elfedit module might
>> need to force the 32-bit version of their code to run for testing reasons.
>> The ability to let the user do that is one reason not to use /usr/lib/isaexec,
> 
> Actually, that's not a reason.
> 
> If you're using the /usr/lib/isaexec trick, you don't need
> LD_NOEXEC_64 at all.  The user can invoke /usr/bin/elfedit if he wants
> the system to choose, and can directly invoke /usr/bin/$ISA/elfedit
> if he wants to specify 32- or 64-bit operation exactly.

After I sent that message, I stepped out to get lunch, and almost
immediately had an "oops" moment. You're right, the "real" 32-bit
binary in /usr/bin/$ISA/elfedit is just sitting there waiting to
be run directly, and this is hardly less obvious than setting LD_NOEXEC_64.


>> while following the "linker herd" is the other.
> 
> That seems like the main reason.

Yes


> It wasn't a performance issue, but rather "another one of those
> things" issue.
> 
> That said, I give.  As long as you're comfortable in that crowd, I
> won't complain.

I'll discuss this further with Rod, and we'll decide which herd
to follow.

Thanks...

- Ali




More information about the opensolaris-arc mailing list