Skip to content
Commit 66aa045f authored by Rafael Espindola's avatar Rafael Espindola
Browse files

Add a -fuse-init-array option to cc1 and map to the UseInitArray target

option. On the driver, check if we are using libraries from gcc 4.7 or newer
and if so pass -fuse-init-array to the frontend.
The crtbegin*.o files in gcc 4.7 no longer call the constructors listed in
.ctors, so we have to use .init_array.

llvm-svn: 158694
parent 9a63cfaf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment