http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54933



             Bug #: 54933

           Summary: 'builtin symbol' referenced in section ... defined in

                    discarded section

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: lto

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: ch...@gcc.gnu.org

            Target: x86





Created attachment 28450

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28450

preprocessed files



The attached case is a self-content skeleton reducing a newlib build, that

builds with -fno-builtin, used in a standard way (e.g no -fno-builtin.



this illustrates a problem when "malloc" and "free" are defined from the same

file, but the prevailing "free" version is called from no-builtin site, and the

"malloc" builtin version is called from the main site, so we get:



---

`malloc' referenced in section `.text' of bug.ltrans0.ltrans.o: defined in

discarded section `.text' of malloc.o (symbol from plugin)

---



malloc is PREVAILING_DEF_IRONLY. shouldn't it be PREVAILING_DEF ?



tested with binutils 2.22 and 2.23.51

Reply via email to