Skip to content

Instantly share code, notes, and snippets.

View nickalcock's full-sized avatar

Nick Alcock nickalcock

  • Oracle Corporation
  • Ely, Cambridgeshire, UK
View GitHub Profile
@nickalcock
nickalcock / check_for_ffast_math.py
Last active October 28, 2022 14:36 — forked from moyix/check_for_ffast_math.py
Hacky script to check for the set_fast_math constructor in an executable/shared library using objdump
#!/usr/bin/env python
import subprocess
import multiprocessing
import re
import sys
def get_init_array(filename):
# Call objdump -s -j .init_array <filename> to get the contents of the .init_array section
try: