rpmbuild failed with "Not enough room for program headers, try linking with -N" in Red Hat Enterprise Linux 6

Solution In Progress - Updated -

Issue

I'm trying to build a custom package, but it failed with the following error.

BFD: /home/tester/rpmbuild/BUILDROOT/...snip.../stfdhfmB: Not enough room for program headers, try linking with -N
/usr/bin/strip:/home/tester/rpmbuild/BUILDROOT/...snip.../stfdhfmB[.hash]: Bad value

How can I avoid this error?

Environment

Red Hat Enterprise Linux 6

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