summaryrefslogtreecommitdiff
path: root/src/linker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/linker.rs')
-rw-r--r--src/linker.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linker.rs b/src/linker.rs
index 8065abd..b1ee0a8 100644
--- a/src/linker.rs
+++ b/src/linker.rs
@@ -13,7 +13,7 @@ Position-independent code is NOT supported, and makes executables
larger anyways. Make sure you compile with `-fno-pic` or equivalent.
Example usage:
-```
+```ignore
let mut linker = Linker::new();
linker.add_input("main.o")?;
linker.add_input("libc.so.6")?;
@@ -50,7 +50,7 @@ This ensures that all destructors are called for local objects in main.
- If you want a small executable, it's best not to use the STL.
- For some reason, `std::cout` and `std::cin` don't work. If you can figure out why, please let me know.
You can get around this with something like
-```
+```cpp
std::ofstream cout("/dev/stdout");
std::ifstream cin("/dev/stdin");
```