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?