mkinitrd reports error "File format not recognized" from /usr/bin/strip

Solution Verified - Updated -

Issue

  • When trying to build an initrd.img for the kernel ,getting the below error:
# mkinitrd -v -f initrd $(uname -r)
...
/usr/bin/strip: /lib/modules/2.6.18-274.el5/kernel/drivers/usb/host/uhci-hcd.ko: File format not recognized
/usr/bin/strip: /lib/modules/2.6.18-274.el5/kernel/fs/jbd/jbd.ko: File format not recognized
/usr/bin/strip: /lib/modules/2.6.18-274.el5/kernel/fs/ext3/ext3.ko: File format not recognized
...

Environment

  • Red Hat Enterprise Linux 5
  • binutils-2.17.50.0.6-9.0.1.el5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content