Skip to content

Commit 60ad26c

Browse files
committed
kfreebsd also uses ELF, and hybrid binaries are thus supported
1 parent 8187bdd commit 60ad26c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/goto-cc/as_mode.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ int as_modet::as_hybrid_binary()
303303
debug() << "merging " << output_file << eom;
304304
std::string saved=output_file+".goto-cc-saved";
305305

306-
#ifdef __linux__
306+
#if defined(__linux__) || defined(__FreeBSD_kernel__)
307307
if(result==0)
308308
{
309309
// remove any existing goto-cc section

src/goto-cc/hybrid_binary.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int hybrid_binary(
2626

2727
int result;
2828

29-
#ifdef __linux__
29+
#if defined(__linux__) || defined(__FreeBSD_kernel__)
3030
std::string objcopy_cmd;
3131

3232
if(has_suffix(compiler_or_linker, "-ld"))

0 commit comments

Comments
 (0)