object-files Questions

1

What does long and short mean in the context of sections in the object file? It seems to refer to its size, but there is no documentation on it. Here we see the section name .rdata$T is long, but I...
Semifluid asked 20/3, 2021 at 16:42

5

Solved

I'm currently writing a C++ application which implements an Oscillator in conjuction with math.h. The code I have should work fine for the application (trying to compile an object file), bu I'm get...
Laynelayney asked 6/8, 2012 at 22:45

5

Solved

I have a static library, say mystaticlib.a. I want to see its contents, such as the number of object files inside it. How can I do this on gcc?
Neidaneidhardt asked 21/9, 2010 at 3:31

3

Solved

How to make an object file to executable file?
Grissel asked 4/12, 2009 at 13:23

1

Solved

I'd like to know how to get this berkeley format output: $ size --format=berkeley /bin/ls text data bss dec hex filename 124042 4728 4832 133602 209e2 /bin/ls From this sysv format output: $ si...
Scallion asked 26/9, 2020 at 1:34

5

Solved

I already tried this, I opened a a.out file with a text editor but I get only a bunch of characters with some instructions in it like: üÙ

7

Solved

I am working on a C++ program and the compiled object code from a single 1200-line file (which initializes a rather complex state machine) comes out to nearly a megabyte. What could be making the f...
Suffuse asked 22/1, 2009 at 19:1

3

I'm trying to build an object file using CMake, but I can't seem to get CMake to build something other than a complete executable. I'm basically looking for the result of the following compilation ...
Jeremiahjeremias asked 22/1, 2011 at 0:18

1

Solved

In my objdump -t output, I see the following two lines: 00000000000004d2 l F .text.unlikely 00000000000000ec function-signature-goes-here [clone .cold.427] and 00000000000018e0 g F .text 000000...
Chura asked 3/2, 2020 at 19:37

2

Solved

I have header util.hpp containing a simple struct: // util.hpp struct Point { float x; float y; }; Two cpp files, let's call them a.cpp and b.cpp, both include util.hpp: // a.cpp #include "...
Szechwan asked 7/7, 2019 at 13:20

0

I'm trying to use a 3rd party object file in my 64 bit Delphi app, however it simply crashes. Including their mod64.obj compiles and links OK and the functions in the obj can be called, but then t...
Rhizoid asked 23/4, 2019 at 14:27

2

I was looking in the gcc manual on linux (man gcc), for the -c option (gcc -c infile) which states: -c: Compile or assemble the source files, but do not link. The linking stage simply is not don...
Allx asked 8/11, 2018 at 14:55

5

Solved

How can I view symbols in a .o file? nm does not work for me. I use g++/linux.
Wally asked 7/10, 2010 at 10:55

2

Solved

For example, I define a macro: #ifdef VERSION //.... do something #endif How can I check if VERSION exist in my object file or not? I tried to disassemble it with objdump, but found no actual v...
Kratzer asked 11/4, 2012 at 8:59

2

Solved

I have a static library libfoo.a, which is just a compression of multiple .o files. I am looking for a way to list all symbols that appear in the static library as UND have no definition in this ...
Entanglement asked 19/7, 2018 at 16:31

2

Solved

I have a Qt project that uses qmake. To improve clarity and readability, I'd like to keep the source files build system generated files (such as object files) separate. So my first step was pu...
Hancock asked 9/8, 2010 at 13:20

1

I am confused at to whether there is a difference between "segment" and "section" when referring to object files/executables. According to https://en.wikipedia.org/wiki/Object_file: Most object...
Nathan asked 8/4, 2018 at 13:52

0

I want to rewrite object files so that most of the functions' addresses are altered to a no-op function. How can I do this? More context: In C++ I want to auto-mock all functions by default. To go...
Riccio asked 19/4, 2017 at 5:56

4

Solved

I'm in the progress of writing a compiler for a subset of Java, using boost::spirit, for lexing and parsing. During compilation of the lexer/parser phase, the compiler consumes 1.6GB of RAM (g++ (G...
Unwept asked 9/9, 2013 at 8:46

2

Solved

I wrote the simple C program (test.c) below:- #include<stdio.h> int main() { return 0; } and executed the follwing to understand size changes in .bss segment. gcc test.c -o test size tes...
Ashok asked 18/11, 2016 at 14:1

1

Solved

I have problem understanding how are standard libraries for programming languages, other than C, written. As far as i understand, C standard libraries can be implemented in mixture of C and assemb...

1

Solved

This is really a linker / object-file question, but tagging with assembly since compilers never do this. (Although maybe they could!) Consider this function, where I want to handle one special cas...
Leannleanna asked 17/2, 2016 at 21:48

1

Solved

I couldn't find the difference between translation unit, compilation unit, object file, executable...At many places I've seen that one is used instead of other. I am aware that these files are gen...

4

I'm trying to run a basic assembly file using 64 Bit Mac OS X Lion, using nasm and ld which are installed by default with Xcode. I've written an assembly file, which prints a character, and I got...
Donato asked 5/8, 2011 at 13:58

1

Solved

Whilst looking at a bugfix in the LLVM source code, I came across the term, "virtual section" and wondered what it meant. I tried Googling a few different terms and browsing the source code furthe...
Habiliment asked 15/10, 2015 at 9:44

© 2022 - 2024 — McMap. All rights reserved.