The title is confusing, i try to explain here clearly:
There are two server we using now: one is linux server with the GCC
version (3.4.5);
the other one is the Sun server with GCC version (2.95.3)
There is one application which we will filter some message infor
through the object file.
Now, we find that using higher version GCC compiled the same source
file, we can't filter
the message info we wanted. But using the other server with lower
version GCC, the appl
can be worked normally.
We checked the object file and found that the object file which
generated by higher ver
GCC has no info we wanted, but the object file generated by lower ver
GCC has the info
we wanted.
My question is that:
1> Can we modify the generated object file content through
adjusting some compile
option with higher version GCC to be same with the object file which
generated by lower
version GCC? If so, which compile option will be worked?
2> Is there other way we can try without downgrade the GCC
version?
Thanks all!
BR.
A) the same source, compiled with different versions of the compiler, one
functions properly, and one does not?
or
B) You're looking for information within the object file itself, one version
has it, and the other doesn't?
or
Something else entirely?
I suspect A is the case, but ????
The B is the case we want to resolved. sorry for confusing.
We tried to use different GCC to compile the same code. Lower
version GCC can generate the object files which contain the info we
want
But the object files which generated by higher version GCC can't
include the info we want
So, I ask for help whether this problem or phenonmena can be
resolved by adjusting the compile option of GCC or other ways without
downgrade the GCC version,
Thanks for your responding!
On 11月23日, 上午2时09分, "OldSchool" <oldschool0...@yahoo.com> wrote:
> "xugang" <xugangs...@gmail.com> wrote in message
> But the object files which generated by higher version GCC can't
> include the info we want
>
Since you don't include anything relevant as to either what you're
searching for, or better still "why", I can't offer anything
relevant.
If it truly is stuff inserted into the object file generated by one
compiler (and not the other), then I'd expect that whatever it is
you're doing a) isn't portable and b) can't be relied on.
Of course, without knowing anything about the compile options used for
either, it could also be something as simple as the executable has
been stripped, or debugging switches weren't set, or ???
The idea of trying to find something in an object file that your
actual code didn't put there mystifies me a bit, as you may not have
sufficient control to insure that is present in the object file
(witness the case before you)