Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ELF support

Posted on 2001-09-02
12
Medium Priority
?
438 Views
Last Modified: 2006-11-17
How do I get ELF binary support under RH7.1?
0
Comment
Question by:dryzone
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
12 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6449911
you need to recompile the kernel with ELF support enabled.
A kernel with ELF suppport can be identified with
   ls -l /proc/kcore_elf
0
 
LVL 1

Author Comment

by:dryzone
ID: 6451069
That will not work. I am running an enhanced kernel (Win4Lin). I therefore cannot compile the kernel as the Trelos patch will then not work. I therefore need to have ELF loaded somehhow as a module.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6451425
Even for Win4Lin you can compile your own kernel. You just need to look at the scripts provided for Win4Lin ...
Anyway, you also may enable ELF as module, compile and install it.
0
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 
LVL 1

Author Comment

by:dryzone
ID: 6451563
Win4Lin -- no, I had lengthy discussions with Vistasource about that and the decission was not to do it.
Module....yes, but  that I never been successful with.
Have a method which will work???
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6451587
> .. was not to do it.
I simply did it ;-)
> Have a method which will work?
Sorry, no.
0
 

Expert Comment

by:ghinsmathai
ID: 6459376
Did not face any problems loadinf elf as a module !!! Did the following
1) make xconfig
2? General setup -> Kernel support for ELF binaries (as a module)
3) make dep bzImage modules
4) could see binfmt_elf.o in ./fs/


Hope that helps
0
 
LVL 5

Expert Comment

by:garboua
ID: 6464178
dryzone, do not listen to all the foolishness from whatsTheirFaces Vistasource.  ahoffmann is correct, compile the kernel yourself it is not that hard to do.  I don't have any exp with Win4Lin, but the kernel is the kernel and those I know about :-)))
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6464939
ROFLOL
0
 
LVL 1

Author Comment

by:dryzone
ID: 6466103
The 6 machines I have running linux all have custom kernels compiled for ide/scsi and other non standard issues for cdburners etc, except for one which I run with an "win4Lin enhanced kernel" Vistasource repeatedly told me ONLY to use standard kernels when applying their patch when I confronted them with the problem.

Ahoffmann is probably right an I have the greatest respect for his answers, as he helped me several times in the past swiftly and with great clarity.

However, I followed the path of trying to run Win4Lin with a recompiled kernel with dire results. Most of the time the kernel just wont boot. When it does, it dies halfway during bootup with a kernel-panic. When I apply the same patch to a standard kernel it works again.

This is the reason I really prefer to add ELF support as a module as I will not get into trouble with Win4Lin patch VS Custom Kernel.

I lately had the need for an important program installed unfortunately needing ELF support.

I will try ghinsmattai's suggestions this weekend, although I prefer not to use xconfig as I will lose the Win4Lin Patch also - so his is basically equiocvalent to a kernel compile.


As I never done an "inmsmod" on ELF I posed this question.
I do not want to recompile the kernel - period.
So it has to be an "insmod" regarding ELF.
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 200 total points
ID: 6466570
> .. I prefer not to use xconfig as I will lose the Win4Lin Patch also ..
hmm, usualy no. make config or make menuconfig just uses the .config file, rewites it but only changeing what have been applied through the dialog.
If you still mind, simply edit .config and use:

   CONFIG_BINFMT_ELF=m

This does not have any influence to Win4Lin's settings and/or patches.
0
 
LVL 1

Author Comment

by:dryzone
ID: 6466736
That is something i did not know.
will try that.
0
 
LVL 1

Author Comment

by:dryzone
ID: 6528737
It did not work.
Elf and Win4lind do not want "live" together in the same kernel.
Called Vistasource again and they say "Use a standard kernel and dont recompile else our win4lin patch does not work"

Anyway,
I will give Ahoffmann the points due to his help in previous cases, but this did not solve the problem.

0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month11 days, 23 hours left to enroll

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question