Fix Darwin related test fails.
Fix ARM-ELF related test fails.
Remove text attribute related code.