Questions tagged [relocation]

Relocation is the adaptation of a piece of code assembled on a certain address in memory to another address It is a typical task of dynamic linkers and program loaders, and thus last step in a standard development toolchain.

Relocation is the adaptation of a piece of code assembled on a certain address in memory to another address. It is a typical task of dynamic linkers and program loaders, and thus last step in a standard development toolchain. (typically make - preprocessor - compiler - assembler - archiver - linker - loader)

Relocations can be symbolic or by just adding the base load address of the module (binary/library), the latter is often called a fixup. The object code of some executable formats is assembled to start at 0, making the normal linking process have some relocation aspects also.

The standard book about this subject is "Linkers and Loaders" by John R. Levine.

247 questions
0
votes
0 answers

How to avoid "relocation truncated to fit" from .ARM.exidx?

I am experiencing relocation truncated to fit kind of error for my embedded ARM application compiled and linked with with GCC 4.9.3. I am using code relocation for this function from external flash (0x70000000) to internal RAM (0x08000000) to…
Petr
  • 486
  • 7
  • 19
0
votes
0 answers

Relocating some of the rows while keeping original IDs in both sheets

Finally, I have managed to relocate certain rows from Sheet1 to Sheet2 (Zeile = Row). Private Sub Worksheet_Change(ByVal Target As Range) Dim Zeile As Long Set Target = Intersect(Target, Range("J6:J1006")) If Target Is Nothing Then Exit…
Qralnaq
  • 73
  • 1
  • 7
0
votes
1 answer

Why GOT entry offset appears wrong?

I wrote simple shared library: extern void some_func(void); void function(void) { some_func(); } Compiled/built: gcc -fPIC -mcmodel=large -c test.c -o test.o gcc -fPIC -shared test.o -o libtest.so Disassembled, to see how some_func is…
Bulat M.
  • 680
  • 9
  • 25
0
votes
1 answer

Relocating a Node in a Singly Linked List Creates Infinite Loop

In my homework I was asked to relocate a specific node by his name field to specific index. I'm having trouble to figure out why is my list becomes an infinite list. The problem is in the function "changePlacement" Example: Given linked list :…
0
votes
2 answers

Relocation strings using awk/sed from a index file

I'd always appreciate all helps from this website. I would like to relocate strings based on the index number from an index file. Index numbers are shown on the first column in the index file (index.txt) and I would like to relocate "path" based on…
Jaeyoung Park
  • 339
  • 1
  • 6
0
votes
1 answer

MSP430 relocation types missing in documentation

If you check the slaa534.pdf file from Texas Instruments there are only 18 relocation types: Idx. Name. 1. R_MSP430_NONE 2. R_MSP430_ABS32 3. R_MSP430_ABS16 4. R_MSP430_ABS8 5. R_MSP430_PCR16 6. R_MSP430X_PCR20_EXT_SRC 7.…
UDKOX
  • 738
  • 3
  • 15
0
votes
1 answer

PHP relocation header not working

I have programmed a web application, which requires you to login first, before having access to the actual content of the application. I am setting the value 'logedIn' to false when a user enters the homepage like this:
zeno dhaene
  • 245
  • 3
  • 14
0
votes
1 answer

GCC-Assemby Error: Relocation R_X86_64_32S against '.data'

Situation Enviroment Arch Linux x86-64 (4.2.3-1-ARCH) GCC gcc (GCC) 5.2.0 Command gcc -Wall -g -o asm_printf asm_printf.s Error /usr/bin/ld: /tmp/cct4fa.o: Relocation R_X86_64_32S against '.data' can not be used when making a shared…
Mr Pudin
  • 50
  • 1
  • 7
0
votes
2 answers

Virtual/Logical Memory and Program relocation

Virtual memory along with logical memory helps to make sure programs do not corrupt each others data. Program relocation does an almost similar thing of making sure that multiple programs does not corrupt each other.Relocation modifies object…
0
votes
1 answer

R - moving multiple files between folders

Building on the question that was answered here about using file.rename in R to move a single file from ond folder to another, is there a way to build a looping function in R that would move all (multiple) files from one folder to another existing…
bshelt141
  • 1,183
  • 15
  • 31
0
votes
2 answers

Relocating U-Boot from internal ROM to SRAM on AT91RM9200

I'm trying to understand relocation of u-boot from internal ROM to SRAM. The below code shows that u-boot is copied from ROM to SRAM and then pc is jumped to _start_armboot. However I'm unable to figure out where the memory remap operation is…
Manx
  • 23
  • 5
0
votes
0 answers

what does "Symbol `_ZTISt16invalid_argument' causes overflow in R_X86_64_32 relocation" mean?

I've compiled a C++11 application under Scientific Linux 6.4 (64bit), using a self-compiled GCC 4.8.2. The application can be compiled fine, but when running it (with LD_LIBRARY_PATH set to include the gcc 4.8.2 lib64 directory so that it finds…
oliver
  • 6,204
  • 9
  • 46
  • 50
0
votes
0 answers

How to map all virtual addresses (VAs) in a PE image to Relative VAs

I want to read an image of a module (loaded in the memory of a process), into a buffer, using the Win32 C++ API. After reading I want to change all VAs in from the buffer, into RVAs. I've found the ImageRvaToVa function on MSDN, however, I would…
Benny
  • 607
  • 7
  • 20
0
votes
0 answers

InformixDB 2.5: symbol SQLSTATE: referenced symbol not found

I successfully installed Python2.5.6 and InformixDB2.5 on Solaris 10 Sparc When I run a Script I get the following Error: import informixdb File "/usr/local/lib/python2.5/site-packages/informixdb.py", line 146, in from _informixdb…
0
votes
1 answer

FreeRDP CMAKE Error

Hello I am brand new to linux and i am trying to install FreeRDP. I keep getting this error: /usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(hmac.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile…
1 2 3
16
17