Accessing static variable from outside

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I understand that this is off-topic, but still if some one has any ideas ...

I have a global variable that is defined static in an object file (say
1.o). Now I want to be able to get the value of this variable in
ANOTHER object file (say 2.o) without changing the source of 1.c.

Any ideas, anyone? I know that as per C, this is not possible. But may
be some clever hack?

Thanks,

Rajat

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux