HomeFreeBSD

When elftoolchain's objcopy (or strip) is rewriting a file in-place,

Description

When elftoolchain's objcopy (or strip) is rewriting a file in-place,
make it create the temporary file in the same directory as the source
file by default, instead of always using $TMPDIR or /tmp. If creating
that file fails because the directory is not writable, also fallback to
$TMPDIR or /tmp.

This has also been submitted upstream as:
https://sourceforge.net/p/elftoolchain/tickets/597/

Reported by: cem
PR: 250872
MFC after: 2 weeks

Details

Provenance
dimAuthored on Nov 18 2020, 6:40 PM
Parents
rG1e4309ae4e7d: Fix octeon_pmc post-r334827
Branches
Unknown
Tags
Unknown

Event Timeline