mirror of
git://git.musl-libc.org/musl
synced 2024-11-27 20:14:55 +08:00
e678fc6f32
the historical (non-standardized) install command is really inappropriate for installing binaries/libraries on a system that utilizes memory-mapped executable files. rather than replacing an existing file atomically, it overwrites the existing file. this can cause running programs to see a partially-modified version of the file, resulting in unpredictable behavior, or SIGBUS. a MAP_COPY mode for mmap would get around this problem, but Linux lacks MAP_COPY. the shell script added with this commit works around the problem by writing temporary files and moving them into place. unlike the historical install utility, it also support a -l option for installing a symbolic link atomically, via the same method. |
||
---|---|---|
.. | ||
install.sh | ||
mkalltypes.sed | ||
musl-gcc.specs.sh |