bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/31445] New: -Trodata should throw a warning


From: sweeten.jacob at gmail dot com
Subject: [Bug ld/31445] New: -Trodata should throw a warning
Date: Sat, 02 Mar 2024 19:37:38 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=31445

            Bug ID: 31445
           Summary: -Trodata should throw a warning
           Product: binutils
           Version: 2.40
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: sweeten.jacob at gmail dot com
  Target Milestone: ---

Recently, I was trying to set the offset of the .rodata segment for building a
kernel. Since you can use -Ttext and -Tdata to set the offsets of those
segments, I assumed I could use -Trodata as well. Since ld didn't throw an
error or warning, I assumed it would work, so I was confused when it apparently
didn't work at all.

My suggestion is that using -Trodata should throw a warning telling the user to
use --section-start instead since -Trodata is apparently not implemented.
Alternatively, -Trodata could be aliased to --section-start

See also:
https://stackoverflow.com/questions/78091665/ld-wont-move-rodata-section-with-trodata-offset/78093929#78093929

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]