GCC --hash-style=gnu

| | Comments (0)

Fedora Core 6 以後, Mandriva 2007.1 以後, GCC 使用了新的預設參數 --hash-style=gnu,
據說可以提昇 50% 動態連結速度(dynamic linking speed), 缺點是無法和舊版的 glibc 及 dynamic linker 相容,
所以用新參數編譯的程式無法在舊系統執行, 會出現 Floating point exception (core dumped)
若要使程式能在舊系統執行, 需在編譯時加 --hash-style=sysv 參數,
如: gcc -g -o hello -Wl,--hash-style=sysv hello.c
ref. FC6 Release Notes 12.2.2. GCC Compiler Collection

Leave a comment

March 2009

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Entry

This page contains a single entry by Pank published on October 15, 2007 4:32 PM.

嘸蝦米輸入法 for SCIM install script was the previous entry in this blog.

Easy Urpmi is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.