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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.