This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-2.0 | |
/* | |
* Andrew Lunn <[email protected]> | |
* Ben Peddell <[email protected]> | |
* | |
*/ | |
/dts-v1/; | |
#include "kirkwood.dtsi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* gcc -O3 -Wall -Werror homework.c -o homework */ | |
/* Accepts input from stdin. echo "Input String" | homework */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef unsigned char element_t; | |
/* Sort order doesn't really matter */ | |
static int sort_compare(const void *_a, const void *_b) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Convert a raw binary image into an ELF file suitable for loading into a disassembler | |
cat > raw$$.ld <<EOF | |
SECTIONS | |
{ | |
EOF | |
echo " . = $3;" >> raw$$.ld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys, os | |
if (len(sys.argv) < 2): | |
print sys.argv[0],"<syscalls.c>" | |
quit() | |
addressList = [] | |
with open(sys.argv[1]) as f: | |
next(f) # Ignore comment line | |
next(f) # Ignore type declaration |