Skip to content

Add support for GNU Hurd #8211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/man/cbmc.1
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Set analysis architecture, which defaults to the host architecture. Use one of:
\fB\-\-os\fR \fIos\fR
Set analysis operating system, which defaults to the host operating system. Use
one of: \fBfreebsd\fR, \fBlinux\fR, \fBmacos\fR, \fBnetbsd\fR, \fBopenbsd\fR,
\fBsolaris\fR, or \fBwindows\fR.
\fBsolaris\fR, \fBhurd\fR, or \fBwindows\fR.
.TP
\fB\-\-i386\-linux\fR, \fB\-\-i386\-win32\fR, \fB\-\-i386\-macos\fR, \fB\-\-ppc\-macos\fR, \fB\-\-win32\fR, \fB\-\-winx64\fR
Set analysis architecture and operating system.
Expand Down
2 changes: 1 addition & 1 deletion doc/man/goto-analyzer.1
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ Set analysis architecture, which defaults to the host architecture. Use one of:
\fB\-\-os\fR \fIos\fR
Set analysis operating system, which defaults to the host operating system. Use
one of: \fBfreebsd\fR, \fBlinux\fR, \fBmacos\fR, \fBnetbsd\fR, \fBopenbsd\fR,
\fBsolaris\fR, or \fBwindows\fR.
\fBsolaris\fR, \fBhurd\fR, or \fBwindows\fR.
.TP
\fB\-\-i386\-linux\fR, \fB\-\-i386\-win32\fR, \fB\-\-i386\-macos\fR, \fB\-\-ppc\-macos\fR, \fB\-\-win32\fR, \fB\-\-winx64\fR
Set analysis architecture and operating system.
Expand Down
2 changes: 1 addition & 1 deletion doc/man/janalyzer.1
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ Set analysis architecture, which defaults to the host architecture. Use one of:
\fB\-\-os\fR \fIos\fR
Set analysis operating system, which defaults to the host operating system. Use
one of: \fBfreebsd\fR, \fBlinux\fR, \fBmacos\fR, \fBnetbsd\fR, \fBopenbsd\fR,
\fBsolaris\fR, or \fBwindows\fR.
\fBsolaris\fR, \fBhurd\fR, or \fBwindows\fR.
.TP
\fB\-\-i386\-linux\fR, \fB\-\-i386\-win32\fR, \fB\-\-i386\-macos\fR, \fB\-\-ppc\-macos\fR, \fB\-\-win32\fR, \fB\-\-winx64\fR
Set analysis architecture and operating system.
Expand Down
2 changes: 1 addition & 1 deletion doc/man/jbmc.1
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Set analysis architecture, which defaults to the host architecture. Use one of:
\fB\-\-os\fR \fIos\fR
Set analysis operating system, which defaults to the host operating system. Use
one of: \fBfreebsd\fR, \fBlinux\fR, \fBmacos\fR, \fBnetbsd\fR, \fBopenbsd\fR,
\fBsolaris\fR, or \fBwindows\fR.
\fBsolaris\fR, \fBhurd\fR, or \fBwindows\fR.
.TP
\fB\-\-i386\-linux\fR, \fB\-\-i386\-win32\fR, \fB\-\-i386\-macos\fR, \fB\-\-ppc\-macos\fR, \fB\-\-win32\fR, \fB\-\-winx64\fR
Set analysis architecture and operating system.
Expand Down
3 changes: 2 additions & 1 deletion src/goto-cc/hybrid_binary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ int hybrid_binary(
int result = 0;

#if defined(__linux__) || defined(__FreeBSD_kernel__) || \
defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || \
defined(__gnu_hurd__)
// we can use objcopy for both object files and executables
(void)building_executable;

Expand Down
4 changes: 3 additions & 1 deletion src/util/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ bool configt::set(const cmdlinet &cmdline)
ansi_c.mode = ansi_ct::flavourt::CLANG;
ansi_c.preprocessor=ansi_ct::preprocessort::CLANG;
}
else if(os == "linux" || os == "solaris" || os == "netbsd")
else if(os == "linux" || os == "solaris" || os == "netbsd" || os == "hurd")
{
ansi_c.lib=configt::ansi_ct::libt::LIB_FULL;
ansi_c.os=configt::ansi_ct::ost::OS_LINUX;
Expand Down Expand Up @@ -1509,6 +1509,8 @@ irep_idt configt::this_operating_system()
this_os="linux";
#elif __SVR4
this_os="solaris";
#elif __gnu_hurd__
this_os = "hurd";
#else
this_os="unknown";
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/util/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class symbol_table_baset;
"set operating system (default: " + \
id2string(configt::this_operating_system()) + \
") to one of: {yfreebsd}, {ylinux}, {ymacos}, {ynetbsd}, {yopenbsd}, " \
"{ysolaris}, or {ywindows}\n" \
"{ysolaris}, {yhurd}, or {ywindows}\n" \
" {y--i386-linux}, {y--i386-win32}, {y--i386-macos}, {y--ppc-macos}, " \
"{y--win32}, {y--winx64} \t " \
"set architecture and operating system\n" \
Expand Down