You are attempting to link your project in such a way that the target of a relative addressing scheme is further away than can be supported with the 32-bit displacement of the chosen relative addressing mode. This could be because the current project is larger, because it is linking object files in a different order, or because there’s an unnecessarily expansive mapping scheme in play.
This question is a perfect example of why it’s often productive to do a web search on the generic portion of an error message – you find things like this:
http://www.technovelty.org/code/c/relocation-truncated.html
Which offers some curative suggestions.
Related Posts:
- What is the difference between C and embedded C?
- Convert char to int in C and C++
- ARM Assembler – How do I use CMP, BLT and BGT?
- warning: incompatible implicit declaration of built-in function ‘xyz’
- conflicting types error when compiling c program using gcc
- What is a file with extension .a?
- (.text+0x20): undefined reference to `main’ and undefined reference to function
- Error: initializer element is not computable at load time
- Removing trailing newline character from fgets() input
- “Multiple definition”, “first defined here” errors
- What happens during a “relocation has invalid symbol index” error?
- Using floats with sprintf() in embedded C
- What are .axf files?
- How big can a 64 bit unsigned integer be?
- How to use execvp()
- How to use execvp() to execute a command
- How does strtok() split the string into tokens in C?
- What is *(uint32_t*)?
- what is Segmentation fault (core dumped)? [duplicate]
- How to convert an int to string in C?
- How to print in C
- Why should we typedef a struct so often in C?
- What is a string of hexadecimal digits?
- What is newline character — ‘\n’
- Why does ENOENT mean “No such file or directory”?
- What does the question mark character (‘?’) mean?
- makefile:4: *** missing separator. Stop
- Stack smashing detected
- How do I determine the size of my array in C?
- Undefined reference to pthread_create
- Difference between malloc and calloc?
- What is Bit Masking?
- segmentation fault : 11
- What are .a and .so files?
- So what does “return 0” actually mean?
- warning: assignment makes integer from pointer without a cast
- Why use bzero over memset?
- How do we check if a pointer is NULL pointer?
- how to use wait in C
- what is the meaning of == sign?
- How do I use extern to share variables between source files?
- Cannot assign requested address – possible causes?
- Invalid read of size 8 – Valgrind + C
- error: called object is not a function or function pointer
- munmap_chunk(): invalid pointer
- strcpy vs strdup
- Warning comparison between pointer and integer in C language
- No Symbol Table using GDB on Compiled Programs
- What is char ** in C?
- Eclipse C++ : “Program “g++” not found in PATH”
- Difference between scanf() and fgets()
- Return char[]/string from a function [duplicate]
- Is there a printf converter to print in binary format?
- What is a bus error? Is it different from a segmentation fault?
- Difference between char* and const char*?
- Output single character in C
- Get the current time in C
- Does connect() block for TCP socket?
- Converting a C program to MIPS
- C: linker command failed with exit code 1
- What’s the equivalent of new/delete of C++ in C?
- sizeof float (3.0) vs (3.0f)
- Get text from user input using C
- How to trigger SIGUSR1 and SIGUSR2?
- How do I lowercase a string in C?
- warning: expression result unused
- error: indirection requires pointer operand (‘int’ invalid)
- What is the difference between exit(0) and exit(1) in C?
- What does “%.*s” mean in printf?
- Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) standard C memory issue
- Display value found at given address gdb
- Array definition – Expression must have a constant value
- How to print a char array in C through printf?
- How to clear all the elements of array in C?
- Constant pointer vs Pointer to constant
- Variable warning set but not used
- Expected declaration specifier error in function
- strcmp not working
- C char* to int conversion
- error: aggregate value used where an integer was expected
- char pointers: invalid conversion from ‘char*’ to ‘char’?
- Compiling a .C file: Undefined symbols for architecture x86_64
- malloc(): memory corruption
- Does C have a string type?
- how use EOF stdin in C
- Execution of printf() and Segmentation Fault
- How does the strtok function in C work? [duplicate]
- error: function returns address of local variable
- Return a `struct` from a function in C
- Reaching EOF with fgets
- C: scanf to array
- What are “prototypes” in a C program?
- What’s the difference between “mod” and “remainder”?
- undefined reference to `std::ios_base::Init::Init()’
- previous declaration of ‘function’ was here in C [duplicate]
- typedef fixed length array
- How to solve static declaration follows non-static declaration in GCC C code?
- meaning of &variable (passed to function)
- How to Compare 2 Character Arrays [duplicate]
- error: `itoa` was not declared in this scope