https://sourceware.org/bugzilla/show_bug.cgi?id=31445
Nick Clifton <nickc at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nickc at redhat dot com Last reconfirmed| |2024-03-19 Assignee|unassigned at sourceware dot org |nickc at redhat dot com Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED --- Comment #6 from Nick Clifton <nickc at redhat dot com> --- Hi Jacob, It would really help if you were able to upload a small example to reproduce this problem. I have tried to create my own test case, but so far I cannot make the linker misbehave. The reason that the linker does not complain about the -Trodata option is that it is treating it as a shortened form of -Trodata-segment. (Any long option can be shortened providing that it is still distinguishable from other options). I suspect that the issue is that the linker is not creating separate segments for text and data, and so the .rodata section is just being placed after the .text section. This is the default behaviour for many architectures, including ARM. You might find that adding "-zseparate-code" to the linker command line will help. (Without a test case, I could not check this for myself). Cheers Nick -- You are receiving this mail because: You are on the CC list for the bug.