elf
GCC outputs an executable ELF file when I want a shared library
I\'m trying to build a shared library in Cygwin using an i686-elf cross-compiler. The code is very simple:[详细]
2023-03-04 18:02 分类:问答arm gcc toolchain as arm-elf or arm-none-eabi, what is the difference?
When you build a gcc toolchain there is the possibility to build it asarm-elf or as arm-none-eabi, but what is the difference?[详细]
2023-03-04 05:51 分类:问答How do I delete a program header from an ELF binary
I want to write a utility to remove a program header from an ELF binary.For example, when I run readelf -l /my/elf I get a listing of all the program headers: PHDR IN开发者_开发百科TERP ... GNU_STACK[详细]
2023-03-02 20:45 分类:问答Using objdump/readelf and extern variable
I have library ab.so compose of 2 sources file a.m, a.h and b.m, b.h In a.m I have define a variable foo and in b.m I have declare it extern.[详细]
2023-03-01 15:33 分类:问答How does the BSS segment manage to hold the details if it does not occupy any file size?
The ELF sp开发者_开发技巧ecification conveys that the .bss section does not occupy any file size. I wonder then, how does it manage to hold the details if it does not occupy any file size ? Please cla[详细]
2023-02-28 03:12 分类:问答What segment of .o file contains function xyz?
Consider a question \"Which segment of abc.o contains function foo()?\" Is this the same question as \"What section of ELF contains this function foo()?\"[详细]
2023-02-24 00:23 分类:问答How to specify variable location in physical memory?
gcc allows to control a section where a variable is placed to using the section attribute: struct duart a __attribute__ ((section (\"DUART_A\"))) = { 0 };[详细]
2023-02-21 19:10 分类:问答Obtain source using debugging symbols
Is it possible to obtain the source of a linux shared library (.so) that was compiled with debugging information (gcc 开发者_如何学Go.. -g) ? Thank you for your time.The answer is: it depends - not on[详细]
2023-02-21 15:25 分类:问答Adding own symbols for file in gdb
Ok.. so I\'m working doing debugging on x86 with gdb. The particular files in question are stripped so I have no symbols from the binary itself. I have no access to the source code, but a rough idea o[详细]
2023-02-20 15:20 分类:问答solaris - compile 64bit gcc - elf class error
I\'m installing a modern version of gcc on solaris. I compiled gmp, mpfr and mpc, they\'re all 64bit. When I try to configure gcc as follows I get an error complaining that mpc,mpfr and gmp are the wr[详细]
2023-02-18 05:48 分类:问答