Thread: Help understanding error message

  1. #1
    Registered User
    Join Date
    Apr 2008

    Question Help understanding error message

    I'm getting this error message

    /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
    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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    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.

  3. #3
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Katy, Texas
    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, 12:56 PM
  5. Understanding Programmers
    By kuphryn in forum A Brief History of
    Replies: 15
    Last Post: 03-30-2003, 11:42 AM

Tags for this Thread