# QA issue - ELF binary has relocations in .text

**URL:** <https://hub.mender.io/t/qa-issue-elf-binary-has-relocations-in-text/1331>\
**Category:** General Discussions\
**Tags:** yocto, sumo, nxp, standalone\
**Created:** [December 6, 2019, 7:44am UTC](https://hub.mender.io/t/qa-issue-elf-binary-has-relocations-in-text/1331 "2019-12-06T07:44:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajithpv](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ajithpv/32/728_2.png) [@ajithpv](https://hub.mender.io/u/ajithpv)\
**Post date:** [December 6, 2019, 7:44am UTC](https://hub.mender.io/t/qa-issue-elf-binary-has-relocations-in-text/1331/1 "2019-12-06T07:44:51Z")

</div>

Hi,

When I’m doing the fresh Yocto build, I’m getting the below warning:

> WARNING: mender-2.0.0-r0 do\_package\_qa: QA Issue: ELF binary ‘\<build\_dir\>/tmp/work/aarch64-poky-linux/mender/2.0.0-r0/packages-split/mender/usr/bin/mender’ has relocations in .text [textrel]

I would like to know whether anyone has faced this similar warning during the build. Also, I would like to know how to avoid this warning.

Looking forward to your reply.  
Thank you in advance,  
Ajith P V

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [December 6, 2019, 8:10am UTC](https://hub.mender.io/t/qa-issue-elf-binary-has-relocations-in-text/1331/2 "2019-12-06T08:10:26Z")

</div>

Are you building with a custom recipe? This check is already disabled in the [official recipe](https://github.com/mendersoftware/meta-mender/blob/master/meta-mender-core/recipes-mender/mender/mender.inc#L52).

---

<div class="post-metadata">

**Author:** ![ajithpv](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ajithpv/32/728_2.png) [@ajithpv](https://hub.mender.io/u/ajithpv)\
**Post date:** [December 6, 2019, 8:48am UTC](https://hub.mender.io/t/qa-issue-elf-binary-has-relocations-in-text/1331/3 "2019-12-06T08:48:42Z")

</div>

Thank you for your reply.

I’m using the sumo branch and see that this changes are not present:

> <https://github.com/mendersoftware/meta-mender/blob/sumo/meta-mender-core/recipes-mender/mender/mender.inc#L39>

I believe it should be present in all the branches 🙂

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [December 6, 2019, 9:32am UTC](https://hub.mender.io/t/qa-issue-elf-binary-has-relocations-in-text/1331/4 "2019-12-06T09:32:34Z")

</div>

I see. We would very much like a pull request to fix that! 🙂

---

<div class="post-metadata">

**Author:** ![ajithpv](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ajithpv/32/728_2.png) [@ajithpv](https://hub.mender.io/u/ajithpv)\
**Post date:** [December 9, 2019, 4:57am UTC](https://hub.mender.io/t/qa-issue-elf-binary-has-relocations-in-text/1331/5 "2019-12-09T04:57:56Z")

</div>

I have created a [PR](https://github.com/mendersoftware/meta-mender/pull/873) for sumo 👍
