Skip to content

Instantly share code, notes, and snippets.

@phikal
phikal / fix-pie.c
Created June 3, 2023 13:57 — forked from x-projs/mkexeloadable.c
Make the executable file can be loaded by dlopen() after glibc>=2.30.
/* REMOVE THE PIE-FLAG FROM AN EXECUTABLE
*
* Copyright (c) 2020 Yubo Xie <xyb@xyb.name>
* Copyright (c) 2023 Philip Kaludercic
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the “Software”), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
* modify, merge, publish, distribute, sublicense, and/or sell copies
@phikal
phikal / .dir-locals.el
Last active April 17, 2022 11:48 — forked from mooz/.dir-locals.el
My flymake settings for C/C++
;; just an example
((c++-mode . ((flymake-additional-clang-flags . ("-I../" "-std=c++0x")))))