BinaryByter
gcc is saying the same
BinaryByter
oh wait I called my file .cpp
BinaryByter
i told gcc to be gcc and not g++
BinaryByter
URGGH
BinaryByter
dear gnu, why?
BinaryByter
[maximilian@localhost vbextreme]$ gcc ./t1.c -nostdlib ./t1.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int] _start () { ^~~~~~ [maximilian@localhost vbextreme]$
BinaryByter
well... now its a warning
BinaryByter
want to see the hexdump?
BinaryByter
its too big to fit into one message 😉
Daniele°
well... now its a warning
int _start() toggle warning
BinaryByter
its too big to fit into one message 😉
i'll tell you so much: the last adress of the hexdump is 5f8
BinaryByter
with no code inside of _start
Daniele°
🤔
No less 50byte but without libc
Daniele°
libc is optional
BinaryByter
i compiled with -nostdlib
BinaryByter
as you told me to
BinaryByter
0000000 457f 464c 0102 0001 0000 0000 0000 0000 0000010 0002 003e 0001 0000 0144 0040 0000 0000 0000020 0040 0000 0000 0000 03b8 0000 0000 0000 0000030 0000 0000 0040 0038 0004 0040 0009 0008 0000040 0001 0000 0005 0000 0000 0000 0000 0000 0000050 0000 0040 0000 0000 0000 0040 0000 0000 0000060 0198 0000 0000 0000 0198 0000 0000 0000 0000070 0000 0020 0000 0000 0004 0000 0004 0000 0000080 0120 0000 0000 0000 0120 0040 0000 0000 0000090 0120 0040 0000 0000 0024 0000 0000 0000 00000a0 0024 0000 0000 0000 0004 0000 0000 0000 00000b0 e550 6474 0004 0000 014c 0000 0000 0000 00000c0 014c 0040 0000 0000 014c 0040 0000 0000 00000d0 0014 0000 0000 0000 0014 0000 0000 0000 00000e0 0004 0000 0000 0000 e551 6474 0006 0000 00000f0 0000 0000 0000 0000 0000 0000 0000 0000 * 0000110 0000 0000 0000 0000 0010 0000 0000 0000 0000120 0004 0000 0014 0000 0003 0000 4e47 0055 0000130 a9a6 c352 71cc c0d8 67d8 1dda 1e73 3876 0000140 5315 7424 4855 e589 5d90 00c3 1b01 3b03 0000150 0010 0000 0001 0000 fff8 ffff 002c 0000 0000160 0014 0000 0000 0000 7a01 0052 7801 0110 0000170 0c1b 0807 0190 0000 001c 0000 001c 0000 0000180 ffc4 ffff 0007 0000 4100 100e 0286 0d43 0000190 4206 070c 0008 0000 4347 3a43 2820 4e47 00001a0 2955 3720 332e 312e 3220 3130 3038 3137 00001b0 2032 5228 6465 4820 7461 3720 332e 312e 00001c0 362d 0029 0000 0000 0000 0000 0000 0000 00001d0 0000 0000 0000 0000 0000 0000 0000 0000 00001e0 0000 0000 0003 0001 0120 0040 0000 0000 00001f0 0000 0000 0000 0000 0000 0000 0003 0002 0000200 0144 0040 0000 0000 0000 0000 0000 0000 0000210 0000 0000 0003 0003 014c 0040 0000 0000 0000220 0000 0000 0000 0000 0000 0000 0003 0004 0000230 0160 0040 0000 0000 0000 0000 0000 0000 0000240 0000 0000 0003 0005 0000 0000 0000 0000 0000250 0000 0000 0000 0000 0001 0000 0004 fff1 0000260 0000 0000 0000 0000 0000 0000 0000 0000 0000270 0000 0000 0004 fff1 0000 0000 0000 0000 0000280 0000 0000 0000 0000 0006 0000 0000 0003 0000290 014c 0040 0000 0000 0000 0000 0000 0000 00002a0 0019 0000 0001 0004 1000 0060 0000 0000 00002b0 0000 0000 0000 0000 0034 0000 0012 0002 00002c0 0144 0040 0000 0000 0007 0000 0000 0000 00002d0 002f 0000 0010 0004 1000 0060 0000 0000 00002e0 0000 0000 0000 0000 003b 0000 0010 0004 00002f0 1000 0060 0000 0000 0000 0000 0000 0000 0000300 0042 0000 0010 0004 1000 0060 0000 0000 0000310 0000 0000 0000 0000 7400 2e31 0063 5f5f 0000320 4e47 5f55 4845 465f 4152 454d 485f 5244 0000330 5f00 4c47 424f 4c41 4f5f 4646 4553 5f54 0000340 4154 4c42 5f45 5f00 625f 7373 735f 6174 0000350 7472 5f00 6465 7461 0061 655f 646e 0000 0000360 732e 6d79 6174 0062 732e 7274 6174 0062 0000370 732e 7368 7274 6174 0062 6e2e 746f 2e65 0000380 6e67 2e75 7562 6c69 2d64 6469 2e00 6574 0000390 7478 2e00 6865 665f 6172 656d 685f 7264 00003a0 2e00 6865 665f 6172 656d 2e00 6f63 6d6d 00003b0 6e65 0074 0000 0000 0000 0000 0000 0000 00003c0 0000 0000 0000 0000 0000 0000 0000 0000 * 00003f0 0000 0000 0000 0000 001b 0000 0007 0000 0000400 0002 0000 0000 0000 0120 0040 0000 0000 0000410 0120 0000 0000 0000 0024 0000 0000 0000 0000420 0000 0000 0000 0000 0004 0000 0000 0000 0000430 0000 0000 0000 0000 002e 0000 0001 0000 0000440 0006 0000 0000 0000 0144 0040 0000 0000 0000450 0144 0000 0000 0000 0007 0000 0000 0000 0000460 0000 0000 0000 0000 0001 0000 0000 0000 0000470 0000 0000 0000 0000 0034 0000 0001 0000 0000480 0002 0000 0000 0000 014c 0040 0000 0000 0000490 014c 0000 0000 0000 0014 0000 0000 0000 00004a0 0000 0000 0000 0000 0004 0000 0000 0000 00004b0 0000 0000 0000 0000 0042 0000 0001 0000 00004c0 0002 0000 0000 0000 0160 0040 0000 0000 00004d0 0160 0000 0000 0000 0038 0000 0000 0000 00004e0 0000 0000 0000 0000 0008 0000 0000 0000 00004f0 0000 0000 0000 0000 004c 0000 0001 0000 0000500 0030 0000 0000 0000 0000 0000 0000 0000 0000510 0198 0000 0000 0000 002c 0000 0000 0000 0000520 0000 0000 0000 0000 0001 0000 0000 0000 0000530 0001 0000 0000 0000 0001 0000 0002 0000 0000540 0000 0000 0000 0000 0000 0000 0000 0000 0000550 01c8 0000 0000 0000 0150 0000 0000 0000 0000560 0007 0000 000a 0000 0008 0000 0000 0000 0000570 0018 0000 0000 0000 0009 0000 0003 0000
BinaryByter
0000580 0000 0000 0000 0000 0000 0000 0000 0000 0000590 0318 0000 0000 0000 0047 0000 0000 0000 00005a0 0000 0000 0000 0000 0001 0000 0000 0000 00005b0 0000 0000 0000 0000 0011 0000 0003 0000 00005c0 0000 0000 0000 0000 0000 0000 0000 0000 00005d0 035f 0000 0000 0000 0055 0000 0000 0000 00005e0 0000 0000 0000 0000 0001 0000 0000 0000 00005f0 0000 0000 0000 0000 00005f8
BinaryByter
anyway, heres the hexdump
Dima
BinaryByter
😂
Daniele°
?
libc
BinaryByter
you just opposed yourself
BinaryByter
lol
BinaryByter
anyway, i'd love to show you the hello world in asm I did with 10 years of age
BinaryByter
but unfortunately, its on the computer of my mom
BinaryByter
but It was less than 50 bytes big :D
BinaryByter
really useful
ever heard of arduinos?
BinaryByter
One gig of ram isnt a lot
Daniele°
ever heard of arduinos?
Yes, I was a contributor 😊
BinaryByter
where is your 50 bytes hello world elf executable?
I'll submit it later, if you really want me to, but I think that we can both agree that its easily doable
BinaryByter
I'm cooking rn
Dima
Cooking up asm recipes
olli
I'll submit it later, if you really want me to, but I think that we can both agree that its easily doable
btw. 50 Bytes ELF compliant oder "hacky" solutions? I want to see it regardless
BinaryByter
Oh right, elf has a few restrictions...
BinaryByter
mhh... thats annoying
BinaryByter
I'll do it for dos 😂
Mihail
Not familiar with that
Mihail
But it'd still probably not be possible
olli
Oh right, elf has a few restrictions...
The ELF header is 52 or 64 bytes long for 32-bit and 64-bit binaries respectively. 🤦‍♂️ all these people with the bold claims
BinaryByter
Did i say that it has to be an elf tho?
Mihail
Did i say that it has to be an elf tho?
Ok then what is it gonna be?
BinaryByter
^ you said "easy"
Yea, i'm sorry i didnt think of elf
BinaryByter
Ok then what is it gonna be?
I'll tell you when its done =D
olli
Yea, i'm sorry i didnt think of elf
think before you type.. seems to be a general issue in this group
Mihail
I'll tell you when its done =D
Wasn't it done 6 years ago?
BinaryByter
Meh, i was just stretching to provoke him
BinaryByter
i didnt code asm 6 y ago
Mihail
We noticed
BinaryByter
Nice =D
Mihail
ever heard of arduinos?
Yeah they're that thing that you start to hate more and more the more you know them (at least for me)
BinaryByter
Yeah they're that thing that you start to hate more and more the more you know them (at least for me)
Yes, bit they are also the kind of thing where sparing memory is important
BinaryByter
lets collectively stop libc
Mihail
Let's collectively vote to mute Maxi
Mihail
They're like this toy in my mind
BinaryByter
meh
Daniele°
ever heard of arduinos?
if you use avr core Arduino you use my code 😊
Daniele°
but old wiring is Better than new Arduino core
BinaryByter
if you use avr core Arduino you use my code 😊
gawd, i will have to take the arduino from my brother, before he gets electrocuted
Daniele°
😂
Wim
if you use avr core Arduino you use my code 😊
I'm pretty sure if a assemble avr code, you're not in between
Wim
And taken you don't know your compiler, you'll never wrote a higher one either
Daniele°
I have write porting of Arduino scheduler for avr
Wim
So you wrote some scheduler for some os for avr?
Daniele°
Yes