File: compressed.c

package info (click to toggle)
python-pyelftools 0.32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 68,964 kB
  • sloc: python: 15,903; ansic: 298; asm: 86; makefile: 24; cpp: 18; sh: 4
file content (20 lines) | stat: -rw-r--r-- 619 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Generated by compiling with any GCC version and with a binutils
** distribution that includes support for compressed sections. GNU binutils
** 2.28 is fine.
**
** gcc -c -m32 -O0 -g compressed.c -o compressed_32.o
** gcc -c -m64 -O0 -g compressed.c -o compressed_64.o
**
** compressed_unknown_type.o is a copy of compressed_64.o that is hand
** hex-edited to replace the ch_field with 0x7ffffffe.
**
** compressed_bad_size.o is a copy of compressed_64.o that is hand
** hex-edited to replace the ch_size with 0x328 (instead of 0x327).
*/

#include <stdio.h>

int foo(int i) {
  printf ("i = %i\n", i);
  return 0;
}