if its from 6.1, then most probably it is in elf format already. a.out has
been phased out long time ago (since 1995) and most modern kernels dont
support it anymore by default. To make sure it is indeed in elf format,
run:

objdump -f <your_obj_file>

. If it is in a.out format, you are out of luck. That would mean compiling
your .o from the source code.

rowel

Orlando Andico said:
> On Mon, 12 Jan 2004, Rowel Atienza wrote:
> ..
>> > we have .o files (source code not included) from a redhat 6.1 system
>> that we want to link to in the redhat9 current system but there are
>> many symbols missing (function names starting with a "_").
>> >
>> > the .o files are UI libraries.  we have the code for the
>> applications but now the UI libraries.
>
> if the function names start with a "_" then -- that's hard. the old
> A.OUT  format used function names starting with a "_" I believe so it's
> not ELF.  Believable, since it's old. Problem is, current
> compiler/linker is ELF.  Short answer: you can't link them together.
>
> However the binaries still work probably meaning you have A.OUT support
> libraries. It's one thing to be able to run a binary, and quite another
> to  link it with some .O files created by an ELF toolchain.
>


--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to