forked from FourierSignal/Hello-World
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScratch_pad
More file actions
33 lines (22 loc) · 1013 Bytes
/
Copy pathScratch_pad
File metadata and controls
33 lines (22 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ERESI project :elf reverse engineering system interface
www.phrack.org/archive/issues/61/8.txt
63/9.txt
Learning Linux binary Analysis: Ryan "elfmaster" O'nill
https://cirosantilli.com/elf-hello-world
assembly file : gcc -S foo.c > foo.s
list file: gcc -Wa,-adhln -g foo.c > foo.list
map file: gcc -Wl,-Map=output.map foo.c
(or) @linker level: ld -Map output.map -T linker_script.ld -N -o output.elf sourcefile1.o sourcefile2.o
elf file : gcc foo.c -o foo.elf (or) gcc foo.c -o foo (or) gcc foo.c generates elf a.out
List file: is source/assembly mix file used for debugging and optimizing programs
------------
generating a mixed source and assembly listing using gcc
$ gcc -Wa,-adhln -g source_code.c > assembly_list.s
The options:
-g: Produce debugging information
-Wa,option: Pass option as an option to the assembler
-adhln:
a: turn on listings
d: omit debugging directives; n: omit forms processing
h: include high-level source
l: include assembly