Date: Wed, 25 Jul 2018 10:42:14 -0700 From: John Baldwin <jhb@FreeBSD.org> To: Li-Wen Hsu <lwhsu@freebsd.org> Cc: freebsd-riscv@freebsd.org Subject: Re: What's the 'fbsd' linker emulations? Message-ID: <3ad0b3dd-20e9-9db8-84a9-6eb4493fc87e@FreeBSD.org> In-Reply-To: <CAKBkRUxQaEEwLJDyBpmYGv5d9J2OWtPM1bMeAbTpy4O7jRBFyg@mail.gmail.com> References: <CAKBkRUxQaEEwLJDyBpmYGv5d9J2OWtPM1bMeAbTpy4O7jRBFyg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 7/24/18 11:38 AM, Li-Wen Hsu wrote: > Hi John, > > In https://reviews.freebsd.org/D16319 you talked about 'fbsd' linker > emulations. What's that and what we can do to have that for RISC-V? If you look at the list of linker emulations used in, e.g. sys/conf/kern.mk you will find that on almost all architectures we have a 'foo_fbsd' linker emulation rather than using 'foo'. My guess is that this is used to specify alternate paths for rtld among other things. Hmm, looking in binutils they aren't used for the rtld path though but to set the OSABI in binaries and other things. This makes me wonder though why your original patch is needed at all. binutils doesn't use FreeBSD's rtld path for any of its backends. I believe the compiler driver always specifies the path to rtld, so I wonder if the bug was an incorrectly configured/built GCC and the previous patch should be reverted? -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ad0b3dd-20e9-9db8-84a9-6eb4493fc87e>