Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
12 views

I have a pre-built image of a shared library, and that library implements main() with something like: int main(...) { bootstrap(...); return 0; } bootstrap(...) { /*...*/ sc_main(...);...
sh1's user avatar
  • 5,010
0 votes
2 answers
167 views

https://github.com/PoutineSyropErable/MapleKernel The BareBones dir. debug2 branch. e5cf6d69e3f9f053 commit hash. How is a proper 32PM -> 16RM mode switch done on modern x86_64? My 16 bit code is ...
Self learning student's user avatar
5 votes
1 answer
76 views

I'm writing a hello-world program in i386 assembly for OpenBSD 7.8. The program works if the string (buf argument of write(2)) is in .data or on the stack, but write(2) returns EFAULT (== 14) if the ...
pts's user avatar
  • 88.7k
1 vote
1 answer
106 views

The ELF manual says that SHT_DYNAMIC sections can only appear once in any given ELF object file. SHT_DYNAMIC: This section holds information for dynamic linking. An object file may have only one ...
matteobu02's user avatar
1 vote
0 answers
49 views

I have an ELF file (more specifically, a 32-bit MIPS-III statically linked one). The code in it starts with something like: entry: 00100008 28 0c 00 70 clear at 0010000c 28 14 00 70 clear ...
Behrad Sharifi's user avatar
0 votes
1 answer
64 views

I have the main program prog which links with shared libraries called base and db. The shared library db itself links with base and also with a shared library pluginloader which also links with base ...
VZ.'s user avatar
  • 22.9k
3 votes
1 answer
56 views

From ELF documentation: Loadable process segments must have congruent values for p_vaddr and p_offset, modulo the page size. What is the motivation for this rule? Following it generates gaps in ...
mdjukan's user avatar
  • 173
3 votes
1 answer
104 views

I have function foo which is used by inclusion of header and linking with the implementation staticaly: main.c: #include <stdio.h> #include "foo.h" int main(void) { printf("%f\...
fedoseevtaf's user avatar
1 vote
2 answers
126 views

I noticed that ELF binaries often do not respect their Alignment value for LOAD segments. The alignment is specified in the program header and man pages describe the p_align value like this: ...
Fee's user avatar
  • 897
1 vote
1 answer
83 views

I am trying to run an application that is set user id root on Raspbian : -rwsr-xr-x 1 root user 508K May 11 13:55 my_app This application is shipped with a shared library installed in a non ...
vazlsky's user avatar
  • 2,360
2 votes
1 answer
6k views

As native libraries soon need to support 16KB page size I would like to test existing .so libraries. According to the Google documentation this can be done using atest: You can run atest ...
Robert's user avatar
  • 43.4k
0 votes
1 answer
77 views

Given that I know the virtual address of an instruction I and the address at which the .text section containing that instruction was loaded T, how can I find the file offset of that instruction within ...
BeeOnRope's user avatar
  • 66.3k
1 vote
0 answers
50 views

Im working currently on a sideproject that centers around building a kind of "diy debugger" for an embedded controller im working with. I can not attach debugger directly to it, but im able ...
Xeroe's user avatar
  • 19
1 vote
1 answer
121 views

I'm working on the picoCTF reverse engineering challenge GDB Test Drive, where the goal is to retrieve the encrypted flag using the decryption function inside the binary. But instead of using GDB, ...
Nalan PandiKumar's user avatar
1 vote
3 answers
882 views

I'm trying to understand the difference between partial and full RELRO when compiling ELF files. What I gather from various sources is that only under full RELRO is the entirety of the GOT protected. ...
Daniel Walker's user avatar
0 votes
1 answer
75 views

I try to mmap an ELF64 compiler with GCC, but my mappings end up failing when I try to map 0x4a5000: Mapping attempt: vaddr=0x4a5000, filesz=23416, prot=3, fd=3, offset=675664 Here are the mappings my ...
Quentin's user avatar
  • 79
0 votes
0 answers
199 views

I'm looking at a bunch of ELF binaries that have a curious entry in the program header (segment) table: Type PT_NOTE, p_offset=p_addr=0x254, p_filesz=p_memsz=0x44 The offset points in the middle of ...
Seva Alekseyev's user avatar
0 votes
1 answer
58 views

With a binary executable and a /proc/pid/maps of a process which spawns from it, I want to map a runtime instruction address at this time (can be retrieved by gdb or any debuggers) towards the ...
Evian's user avatar
  • 1,225
1 vote
0 answers
37 views

I am build code for a cortex-m0 using arm-none-eabi. My project has lots of functions removed using the -ffunction-sections -fdata-sections -Wl,--gc-sections options. When I start stepping into my ...
Trampas's user avatar
  • 451
0 votes
0 answers
151 views

I have a working system, based on the EVM board for the TI Sitara AM64x. It is running u-boot 2024.04, compiled from the TI SDK 10 and can boot my ELF file containing my app and threatX OS using the ...
TabascoEye's user avatar
1 vote
0 answers
96 views

When working in a raw/freestanding environment, I have a question about the .bss section in ELF files. If I link and set the output format to binary (not ELF), where will the .bss section be in the ...
Viliam Holly's user avatar
1 vote
1 answer
58 views

While doing some experiments inspired by many interesting articles on tiny ELF executables, I've noticed GNU's ld generates a different executable when fed with a nasm-generated .o object file or with ...
MestreLion's user avatar
-1 votes
1 answer
146 views

I am using stm32cubeIDE and trying to store crc at the end of binary for update purposes.I am using this method because otherwise the debug will not work and i have to mark the .crc region as NOLOAD ...
Hamza Jamil's user avatar
6 votes
1 answer
180 views

In Computer Systems: A Programmer’s Perspective (CSAPP), the book mentions that “Uninitialized global variables get weak symbols.” After some experimentation, I found this description seems ...
StaY_Hungry's user avatar
1 vote
1 answer
132 views

A c++17 inline variable will be compiled to a unique symbol by gcc. If use clang it will be a weak symbol. I found documentation of symbol binding at Oracle Linker, but there is no unique binding in ...
undefined's user avatar

1
2 3 4 5
49