flat assembler
Message board for the users of flat assembler.

Index > Linux > [solved] Format ELF64 executable 3 + large strtab no exec

Author
Thread Post new topic Reply to topic
duanebonas6822



Joined: 06 Dec 2024
Posts: 22
duanebonas6822 15 Jan 2025, 19:34
Does anybody know why if i create a large strtab; not even with a symtab; defined the elf file executes ok when i run strace but when run in GDB or readelf i get unrecognised file format, i have had this working for ages its just started doing it, Also is it possible to also make the executable with just USE64 alone if i manually create all the tables and stuff, but as soon as i add a lot of string tables the binary always says not an exec file. I mean if i create the ehdr and phdr all manually just i have a lot of libC functions i need to use, and no way am i being arsed with a linker. ? anyone has any info on why its just started doing this i had debug info working for years with large tables any comments appreciated, cheers

_________________
d.bonas
Post 15 Jan 2025, 19:34
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 1043
Location: Russia
macomics 15 Jan 2025, 22:01
You should attach a sample code that reproduces your problem. It is not very clear from the text where you are making a mistake.
Post 15 Jan 2025, 22:01
View user's profile Send private message Reply with quote
duanebonas6822



Joined: 06 Dec 2024
Posts: 22
duanebonas6822 15 Jan 2025, 23:29
I think i have solved it , i would with code but my binary is really big loads of libraries added, i think its related to the REL + JMPREL and the way the GOT and PLT are setup. cheers for reply tho i no asking a complex code question with no code is asking for blood out of a stone im getting the hang of FASM now hah
Post 15 Jan 2025, 23:29
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.