Add -mxgot to CPP flags, because for this test, GOT grows larger than 64k.
Details
Diff Detail
- Repository
- rOLDT svn-test-suite
Event Timeline
| MultiSource/Benchmarks/tramp3d-v4/Makefile | ||
|---|---|---|
| 17 | Does a linker fails without this option? Usually a linker automatically starts to create multi-GOT if a regular single GOT is overflowed. It's interesting if this option does not work in that case. | |
| MultiSource/Benchmarks/tramp3d-v4/Makefile | ||
|---|---|---|
| 17 | Yes it does, with this error: additional relocation overflows omitted from the output | |
| MultiSource/Benchmarks/tramp3d-v4/Makefile | ||
|---|---|---|
| 17 | Interesting. What options do you use to build the test case: 32/64 static/dynamic etc? | |
The test fail can be reproduced by running optimization level -O0 or -O1 with mips64r6 n64. Both big- and little-endian fail.
I forget that tramp3d-v4 test case consists a single file and this file is big enough. Could you apply the same changes to the CMakeLists.txt?
Does a linker fails without this option? Usually a linker automatically starts to create multi-GOT if a regular single GOT is overflowed. It's interesting if this option does not work in that case.