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

            Bug ID: 25891
           Summary: ld: Implement --[no-]apply-dynamic-relocs
           Product: binutils
           Version: 2.35 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: i at maskray dot me
  Target Milestone: ---

GNU ld supports --no-apply-dynamic-relocs, but only for aarch64:

% aarch64-linux-gnu-ld --no-apply-dynamic-relocs a.o
% aarch64-linux-gnu-ld --apply-dynamic-relocs a.o 
aarch64-linux-gnu-ld: unrecognized option '--apply-dynamic-relocs'
aarch64-linux-gnu-ld: use the --help option for usage information

# gold and LLD support both and all targets support the option.

% aarch64-linux-gnu-ld.gold --apply-dynamic-relocs a.o
% aarch64-linux-gnu-ld.gold --no-apply-dynamic-relocs a.o


--no-apply-dynamic-relocs can rule out bugs (LLD defaults to
--no-apply-dynamic-relocsc
https://github.com/llvm/llvm-project/commit/0e4df539fa2c10a2ee55a7ed4d54afc381d73ab6)
and arguably is slightly better because zeros compress better.

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

Reply via email to