Skip to content

Instantly share code, notes, and snippets.

@al3xtjames
Last active May 5, 2018 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save al3xtjames/8d68ef87c4c2138ef89d3d6e20879401 to your computer and use it in GitHub Desktop.
Save al3xtjames/8d68ef87c4c2138ef89d3d6e20879401 to your computer and use it in GitHub Desktop.
--- misc/strings.c.orig
+++ misc/strings.c
@@ -335,7 +335,11 @@ void *cookie)
* If the ofile is not an object file then process it without reguard
* to sections.
*/
- if(ofile->object_addr == NULL || ofile->member_type == OFILE_LLVM_BITCODE){
+ if(ofile->object_addr == NULL
+#ifdef LTO_SUPPORT
+ || ofile->member_type == OFILE_LLVM_BITCODE
+#endif /* LTO_SUPPORT */
+ ){
if(ofile->file_type == OFILE_FAT && ofile->arch_flag.cputype != 0){
if(ofile->fat_header->magic == FAT_MAGIC_64){
addr = ofile->file_addr +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment