[lld-macho] Fix trailing slash in oso_prefix
authorKeith Smiley <keithbsmiley@gmail.com>
Wed, 10 Nov 2021 05:28:56 +0000 (21:28 -0800)
committerKeith Smiley <keithbsmiley@gmail.com>
Fri, 12 Nov 2021 19:29:08 +0000 (11:29 -0800)
commiteb6f9f3123e6043d559fdfd921714626ff542cee
tree372b1450035389dbf790b6cb35759cb5a3d5b50b
parent1b651be0465de70cfa22ce4f715d3501a4dcffc1
[lld-macho] Fix trailing slash in oso_prefix

Previously if you passed `-oso_prefix path/to/foo/` with a trailing
slash at the end, using `real_path` would remove that slash, but that
slash is necessary to make sure OSO prefix paths end up as valid
relative paths instead of starting with `/`.

Differential Revision: https://reviews.llvm.org/D113541
lld/MachO/Driver.cpp
lld/test/MachO/stabs.s