]> granicus.if.org Git - clang/commit
For FreeBSD on mips, pass -G options to the linker
authorDimitry Andric <dimitry@andric.com>
Sun, 27 Dec 2015 06:47:09 +0000 (06:47 +0000)
committerDimitry Andric <dimitry@andric.com>
Sun, 27 Dec 2015 06:47:09 +0000 (06:47 +0000)
commit49f141fb7995d96b3a76e1df0df839385d3162b2
tree42caddc9e6789ced966fba3598cea5aa710f30eb
parent5ca937149c53a3369e248db285653f5739516f2c
For FreeBSD on mips, pass -G options to the linker

Summary:
On {mips,mipsel,mips64,mips64el}-freebsd, we need to pass any -G option to the linker.  See also:

https://gcc.gnu.org/onlinedocs/gcc/MIPS-Options.html#index-G-2007

This has been adapted from https://reviews.freebsd.org/D1190, with an added test case.

Reviewers: theraven, atanasyan, emaste

Subscribers: brooks, tomatabacu, cfe-commits, seanbruno, emaste

Differential Revision: http://reviews.llvm.org/D9114

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256461 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/freebsd.c