Fangrui Song
3110187f1f
[MC][PowerPC] Support .reloc *, BFD_RELOC_{NONE,16,32,64}, *
...
BFD_RELOC_NONE is useful for ld --gc-sections: it provides a generic way indicating a dependency between two sections.
2021-03-05 21:31:45 -08:00
Elvina Yakubova
b36a3e6140
[llvm-readobj] Update tests because of changes in llvm-readobj behavior
...
This patch updates tests using llvm-readobj and llvm-readelf, because
soon reading from stdin will be achievable only via a '-' as described
here: https://bugs.llvm.org/show_bug.cgi?id=46400 . Patch with changes to
llvm-readobj behavior is here: https://reviews.llvm.org/D83704
Differential Revision: https://reviews.llvm.org/D83912
Reviewed by: jhenderson, MaskRay, grimar
2020-07-20 10:39:04 +01:00
Fangrui Song
fc93787d7e
[MC][PowerPC] Make .reloc support arbitrary relocation types
...
Generalizes ad7199f3e6
(R_PPC_NONE/R_PPC64_NONE).
2020-03-28 17:04:31 -07:00
Fangrui Song
ad7199f3e6
[PowerPC] Support .reloc *, R_PPC{,64}_NONE, *
...
This can be used to create references among sections. When --gc-sections
is used, the referenced section will be retained if the origin section
is retained.
llvm-svn: 360990
2019-05-17 06:04:11 +00:00