Fix printing the correct file path in the error message when the output file specified by `--dump-section` cannot be opened Fixes: #125113 on ELF, MachO, Wasm (cherry picked from commit 66bea0df75ccdd5ffed41d06c7301a116d11abcb)
Fix printing the correct file path in the error message when the output file specified by `--dump-section` cannot be opened Fixes: #125113 on ELF, MachO, Wasm (cherry picked from commit 66bea0df75ccdd5ffed41d06c7301a116d11abcb)