Help understanding error message

This is a discussion on Help understanding error message within the C Programming forums, part of the General Programming Boards category; I'm getting this error message Code: /usr/bin/ld: ./gz_obj/gzip.o: bad reloc symbol index (0x130000 >= 0x90) for offset 0x100000a in section ...

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    101

    Question Help understanding error message

    I'm getting this error message

    Code:
    /usr/bin/ld: ./gz_obj/gzip.o: bad reloc symbol index (0x130000 >= 0x90) for offset 0x100000a in section `.text'
    ./gz_obj/gzip.o: could not read symbols: Bad value
    I'm not sure of what additional info is relevant for this.
    I'm using pre-compiled object files, one of them is gzip.0 Can this be an error in that file that is not related to my code? Or am I linking it wrong maybe?
    Here is the Makefile
    Code:
    FLAGS  = -Wall -g -std=c99 -lpthread -D_REENTRANT -lrt -D_XOPEN_SOURCE=600
    CC     = gcc
    p4.c aux_functions.c semlib.c aux_functions.h semlib.h myfs_aux.c myfs_aux.h
            ${CC} ${FLAGS} -lm -o p4 p4.c aux_functions.c semlib.c myfs_aux.c ./des_obj/*.o ./gz_obj/*.o ./ham_obj/*.o

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,340
    Seems to me like you got the wrong library for your architecture.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Katy, Texas
    Posts
    2,309
    Although I've never experienced this error, it smells to me like the gzip.o object file might be corrupt.

    A relocatable address is an address that has to be changed by the LOADER when the program is brought into memory.
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Understanding Headers
    By AeonMoth in forum C++ Programming
    Replies: 2
    Last Post: 06-27-2007, 05:53 AM
  3. trouble understanding the source file structure
    By Mario F. in forum C++ Programming
    Replies: 5
    Last Post: 05-26-2006, 06:46 PM
  4. understanding recursive functions
    By houler in forum C Programming
    Replies: 7
    Last Post: 12-09-2004, 11:56 AM
  5. Understanding Programmers
    By kuphryn in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 03-30-2003, 10:42 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21