This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Improve ELF linker for non-ELF input


On Thu, Apr 22, 2004 at 01:39:34PM -0700, H. J. Lu wrote:
> The current ELF linker can link in non-ELF input if it doesn't
> reference symbols in DSO. This patch improves it a little bit so
> that simple function call to DSO works.
> 
> 
> H.J.
> ------
> 2004-04-22  H.J. Lu  <hongjiu.lu@intel.com>
> 
> 	* elflink.c (_bfd_elf_link_create_dynamic_sections): Clear
> 	the ELF_LINK_NON_ELF bit on _DYNAMIC.
> 	(_bfd_elf_fix_symbol_flags): Increment PLT count for dynamic
> 	symbols referenced by non-ELF files.
> 

This patch is incomplete. Here is the new one. With it, I can link
non-ELF input on Linux to generate working ELF executable.

H.J.

Attachment: bfd-elf-mix-3.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]