Re:How statically linked programs run on Linux
by johntb86 on Sunday November 17, 2013 @09:38PM
(#6752166)
Hopefully Linux doesn't allow anything like Windows' shared data sections: http://msdn.microsoft.com/en-us/library/h90dkhs0(v=vs.90).as...
[ Parent
| on HN ]
Re:How statically linked programs run on Linux
by amscanne on Sunday November 17, 2013 @09:54PM
(#6752210)
AFAIK there's no shared, writable section in ELF.
But of course you could still easily mmap() a file to achieve the same thing (even from the shared library .init functions).
I can understand that the shared section might be abused by goofy programmers ("Hey guys! We don't need to open a file for storage, we can just build it into the DDL!") ... but is there a reason you think it's a bad idea otherwise?