I'd like to set all Global Symbols to be prefixed with '_' ; however, when I set GlobalPrefix in TargetMCAsmInfo.cpp, this also applies to library calls (adds extra underscore which makes 3 so linkage failure), which I don't want. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130227/6b8aebdb/attachment.html>
So GlobalPrefix is set to "_", which is fine but I want to exclude external library calls from that (I don't want the prefix on library routines), for example, something like __subsf3. What's the best way to do this? On Wed, Feb 27, 2013 at 11:05 AM, Ryan Taylor <ryta1203 at gmail.com> wrote:> I'd like to set all Global Symbols to be prefixed with '_' ; however, when > I set GlobalPrefix in TargetMCAsmInfo.cpp, this also applies to library > calls (adds extra underscore which makes 3 so linkage failure), which I > don't want. > > Thanks. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130227/1ec073b5/attachment.html>
In short, I'd like to append prefix '_' to globals but not global externals? Is this possible using AsmInfo? On Wed, Feb 27, 2013 at 12:37 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:> So GlobalPrefix is set to "_", which is fine but I want to exclude > external library calls from that (I don't want the prefix on library > routines), for example, something like __subsf3. What's the best way to do > this? > > > On Wed, Feb 27, 2013 at 11:05 AM, Ryan Taylor <ryta1203 at gmail.com> wrote: > >> I'd like to set all Global Symbols to be prefixed with '_' ; however, >> when I set GlobalPrefix in TargetMCAsmInfo.cpp, this also applies to >> library calls (adds extra underscore which makes 3 so linkage failure), >> which I don't want. >> >> Thanks. >> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130227/4b60dc7d/attachment.html>