Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22116

Query on using -ffunction-sections to solve linking error using GCC-8 on AIX - "The csect is part of the .text section, and relocation entries”

$
0
0

While compiling my basecode on gcc-8.x in getting a sequence of errors from the linker like bellow:

ld: 0711-302 ERROR: Object SomeLibrary.a[SomeObject.o], csect <.text> The csect is part of the .text section, and relocation entries from the csect have been written to the .loader section.
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

After finishing the compilation, at the time of linking the library this error is popping up.

Earlier by basecode was compiling fine on gcc-4.x on AIX.

Got to see this related post talking about usage of -ffunction-sections to solve these errors, but could not get any luck.

It looks like the above-said option eliminates the unused code and data from the final executable is directly performed by the linker.

Any help to solve this on AIX?


Viewing all articles
Browse latest Browse all 22116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>