outbin: register the mapfile; check for input clobber; remove on fail

- Register the map file with the filename system.
- Check to see if the mapfile is clobbering the input.
- Remove the map file if the output file is also removed.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin (Intel) 2026-06-29 13:46:20 -07:00 committed by H. Peter Anvin
parent 720a32672c
commit dad1d8ca42
3 changed files with 6 additions and 1 deletions

View file

@ -19,6 +19,7 @@ enum filenames {
FN_ERRFILE, /* Error message file */
FN_LISTFILE, /* Listing file */
FN_DEPENDFILE, /* Dependency file */
FN_MAPFILE, /* Map file (outbin) */
FN_NFILES
};