Questions tagged [object-files]

An object file is the real output from the compilation phase.

An object file is the real output from the compilation phase. It's mostly machine code, but has info that allows a linker to see what symbols are in it as well as symbols it requires in order to work. (For reference, "symbols" are basically names of global objects, functions, etc.)

A linker takes all these object files and combines them to form one executable (assuming that it can, ie: that there aren't any duplicate or undefined symbols). A lot of compilers will do this for you (read: they run the linker on their own) if you don't tell them to "just compile" using command-line options. (-c is a common "just compile; don't link" option.)

293 questions
0
votes
0 answers

undefined reference to `_binary_resources_fonts

for mupdf while convering the objectfile to executable Im getting the following errors undefined reference to _binary_resources_fonts_urw_Dingbats_cff_start' llvm-link:(.text+0x5e490): undefined reference to…
0
votes
1 answer

Inline assembly not produced when linking with main() file clang

I have the following code with an inline assembly in C: #include #include __attribute__((noinline)) int *get_indecies(int *padding, int pad_size, int size, int alias_type); int *get_indecies(int *padding, int pad_size, int…
0
votes
2 answers

XCode on Apple M1 shows "linking in object file built for iOS" or "ld: warning: directory not found for option" or "'Framework not found"

I am trying to compile a "WebViewGold" ios app on an M1 processor MacBook Pro, using XCode latest (13.4.1) version. I have greatly struggled to find a solution to those XCode error codes. I have browsed related answers in threads like: building for…
Dario Fumagalli
  • 1,064
  • 1
  • 16
  • 23
0
votes
1 answer

How to visualise .obj files in colab?

I have a generated obj file which I want to visualise in google colab. What's the easiest way to visualise it directly in google colab? A (admittely mild) google search did not return much...
Rexcirus
  • 2,459
  • 3
  • 22
  • 42
0
votes
1 answer

COFF x86_64 relocation types

I am working on linker development for an open source project. The target architecture is AMD_X86_X64. In AMD_X86_X64 specification The relocation types' calculations for ELF are declared for example, R_X86_64_64 the calculation is S + A. How to do…
0
votes
0 answers

How can you write to an Object File from JavaScript?

I have a string with hexadecimal code for an object file I have generated in a program previously in my JavaScript file. How can I create an object file with this code, preferably with the fs module? So far, I've tried using the hex and binary…
0
votes
1 answer

Each label address used, adds 24 bytes more (plus 8 bytes (totalling 32 bytes)) to the .o file's total size

In my FASM project (Object), I'm trying to create a jump-table and I use dq for each jump address but there is a problem! For each dq .jmp1 (jump address definition), 24 bytes more (plus 8 bytes for .jmp1 address (totalling 32 bytes)) will be added…
HelloMachine
  • 355
  • 2
  • 8
0
votes
1 answer

How to map LTO sections to output sections in GCC (Arm) linker?

I have a linker file that I use as input for Gnu Arm Embedded Toolchain. It contains, among other things, an output section like this: .text : { . = ALIGN(4); *(.text*) *(.rodata*) } > FLASH , where FLASH is a MEMORY block. My issue is that,…
jgreen81
  • 705
  • 1
  • 6
  • 14
0
votes
1 answer

WxWidgets Compile Help

I tried to compile WxWidgets (Latest; VC9; Release), but it outputted only *.obj and *.pch files, no *.lib files. I know *.obj files are Object Files and *.pch files are Pre-Compiled Headers, but do I reference them from C++ or do I somehow have to…
0
votes
0 answers

Python Package Cannot Find libboost_python36.so.1.67.0

System : Ubuntu 18.04. Python 3.8 is my global install, but I have multiple local installs of various versions of Python from 2.7, 3.4, 3.6, 3.7, 3.8 and 3.9. I have a project I am using with a boost dependency. When I try to import it it…
Jibril
  • 967
  • 2
  • 11
  • 29
0
votes
0 answers

OBJ Wavefront file: issues due to face vertex order

I am facing some strange problem with a simple obj-file I created. The obj-file contains 8 vertices which represent the corners of a cuboid-like shape. For each of the vertices I calculate a vertex normal (which I need for rendering). The object…
Concode
  • 1
  • 2
0
votes
1 answer

Can I get objdump --full-contents to only print the raw text?

I have an object file which with a section containing proper ASCII (or Latin-1?) text. So, if I write: $ objdump -s my_file.so --section=.rodata looks like this (only presenting a few lines from the middle, it's obviously very long): 070a80…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
0
votes
0 answers

using prebuilt static/shared libs for my executable: Android makefile

seems this questions is asked couple of times and i have visited all of them and it did not help thus posting here.. objective: making executable using prebuilt libraries(static and shared) staying parallel to my exe code DIR1---------…
0
votes
0 answers

assembly - what if the loader change the position of section in memort

1 section .data 2 00000000 00 sum: db 0 3 00000001 [10000000] tbl: dd L 4 section .text 5 …
GO VEGAN
  • 1,113
  • 3
  • 15
  • 44
0
votes
1 answer

OpenGL not displaying indicies correclty for cube?

I was teaching myself opengl (in c++) and I thought it through and got a working set of indices that make a cube: GLushort indicies[] = { 2, 0, 1, 1, 2, 3, 3, 1, 4, 5, 1, 4, 4, 5, 7, 7, 5, 6, 0, 7, 6, 0, 7, 2, 7,…
Jason
  • 2,198
  • 3
  • 23
  • 59