Skip to main content
2 votes
1 answer
37 views

I was looking to the symbols in the libc.a file and I noticed there some "ABS" symbols. For example, there is the "_nl_current_LC_COLLATE_used" symbol. Here is the output of ...
Orel's user avatar
  • 1,214
0 votes
0 answers
48 views

For -std=c17 (and higher) DW_AT_language is C11: $ echo "int x;" | gcc -c -xc - -fPIC -o x.o -g -std=c17 $ gcc -shared -o x.so x.o $ readelf x.so -w | grep -P '(DW_AT_language\s*:|DWARF ...
pmor's user avatar
  • 6,929
0 votes
1 answer
78 views

I have a .out eabi binary file and I'm trying to parse out all the symbol names, addresses, types, and byte sizes. I found some information about this using readelf, but its not super clear to me ...
user1174394's user avatar
0 votes
1 answer
100 views

Can anyone explain how the contents of a section are relocated using the -R option for readelf? I would like to see an example of this so I can understand how it works. When I build an executable ...
srek's user avatar
  • 3
1 vote
1 answer
329 views

I'm trying to learn the ELF format and am implementing an ELF parser. So far, I've implemented the ELF header parser, and I'm working on parsing segments, especially the .text segment. I'm stuck here ...
CroxxN's user avatar
  • 11
2 votes
1 answer
475 views

I want to know each symbol's size in elf executable or dynamic library and I assume the total symble size and other stuff's size can add up to the file size. From size command I can see all section ...
Lewis Chan's user avatar
0 votes
1 answer
826 views

I'm trying to inject some compiled code into an elf executable. The strategy is to write some bytes at the end of the 'code' segment. The reason why I chose that segment is because I need my payload ...
matteobu02's user avatar
2 votes
2 answers
438 views

I'm looking into the possibilities to get a list of all global and static variables that are in my application, with their name, size, and address. My toolchain (TI CCS 12.3) produces an ELF output ...
Arjan Oskam's user avatar
1 vote
0 answers
211 views

Why does adding the below struct to my public header cause my android binary size (libMyLibrary.so) to increase by 4KB? #define EXPORT __attribute__((visibility("default"))) struct EXPORT ...
rstr1112's user avatar
  • 460
1 vote
0 answers
134 views

I made this simple C program and compiled it without ASLR #include <stdio.h> #include <stdlib.h> int a = 10; int b = 20; int main(int argc, char *argv[]) { printf("%lx\n",&...
linux's user avatar
  • 21
2 votes
1 answer
263 views

Is there a switch in objdump or readelf which can tell if an ELF binary was built on Redhat or SUSE? I only have binary and no source code. Is there any other way (like strings command or nm) that ...
Rajat's user avatar
  • 509
1 vote
1 answer
205 views

arm-none-eabi-gcc's default linker script defines several sections with VMA of 0. Most of these contain debug information: /* Stabs debugging sections. */ .stab 0 : { *(.stab) } ....
AJM's user avatar
  • 1,942
4 votes
2 answers
1k views

I am running readelf -w on my (C++) executable to examine some debug sections and it prints the following warnings a couple of times: $ readelf -w a.out ... readelf: Warning: Corrupt offset (...
andreee's user avatar
  • 4,778
0 votes
1 answer
100 views

So I have two different ELF files, one that came precompiled and the other I compiled from source. The output from readelf is: Precompiled File (File1): ELF Header: Magic: 7f 45 4c 46 01 01 01 00 ...
The Dude's user avatar
  • 681
1 vote
1 answer
410 views

Look at this readelf of an ELF file, the first LOAD segment has offset 0. How is that even possible? Isn't the ELF header at offset 0? readelf -l
runningupthatroad's user avatar

15 30 50 per page
1
2 3 4 5
10