Skip to content

Instantly share code, notes, and snippets.

@Pamplemousse
Last active April 25, 2020 18:20
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 Pamplemousse/9d2af2998d1a5e8ea0e98be621786064 to your computer and use it in GitHub Desktop.
Save Pamplemousse/9d2af2998d1a5e8ea0e98be621786064 to your computer and use it in GitHub Desktop.
/*
* Help write shellcodes targetting MSP430:
* ```
* msp430-elf-as shellcode.s -o shellcode.o
* msp430-elf-objcopy --dump-section .text=shellcode shellcode.o
* od -An -t x1 shellcode | tr -d ' '
* ```
*/
with import <nixpkgs> {
crossSystem = (import <nixpkgs/lib>).systems.examples.msp430;
};
mkShell {
buildInputs = [ ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment