modifying and saving global variables on a executable file using libelf !!!!

This is a discussion on modifying and saving global variables on a executable file using libelf !!!! within the C Programming forums, part of the General Programming Boards category; i have a project that requires to use global varibales an array for example, append to it some items and ...

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    10

    modifying and saving global variables on a executable file using libelf !!!!

    i have a project that requires to use global varibales an array for example, append to it some items and save this array using only the executable file (im not allowed to use other files ) modification should be done on the exe file .The only indication i have is to use "libelf" i tried to look at the structure of an elf file but im still not able to access global variables(data segment) and change them.plz i need some help tx in advance.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,663
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 24
    Last Post: 09-14-2009, 03:31 PM
  2. Writing and modifying data in a file
    By Micko in forum C Programming
    Replies: 2
    Last Post: 02-17-2005, 02:42 AM

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