Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • e32b42b
  • /
  • test
  • /
  • MC
  • /
  • COFF
  • /
  • diff.s
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge
swh:1:cnt:aa683f26a7b131d3e5529f0ba454ebf0e91af913
directory badge
swh:1:dir:5042ae99ac69f56c8ec481a285713add7a854fe9

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
diff.s
// RUN: llvm-mc -filetype=obj -triple i686-pc-mingw32 %s | coff-dump.py | FileCheck %s

	.def	 _foobar;
	.scl	2;
	.type	32;
	.endef
	.text
	.long   0
	.globl	_foobar
	.align	16, 0x90
_foobar:                                # @foobar
# BB#0:
	ret

	.data
	.globl	_rust_crate             # @rust_crate
	.align	4
_rust_crate:
	.long   0
	.long   _foobar
	.long	_foobar-_rust_crate
	.long	_foobar-_rust_crate

// CHECK:      Name                     = .data
// CHECK:      SectionData              =
// CHECK-NEXT:   00 00 00 00 00 00 00 00 - 1C 00 00 00 20 00 00 00 |............ ...|
// CHECK:        Relocations              = [
// CHECK-NEXT:   0 = {
// CHECK-NEXT:     VirtualAddress           = 0x4
// CHECK-NEXT:     SymbolTableIndex         =
// CHECK-NEXT:     Type                     = IMAGE_REL_I386_DIR32 (6)
// CHECK-NEXT:     SymbolName               = _foobar
// CHECK-NEXT:   }
// CHECK-NEXT:   1 = {
// CHECK-NEXT:     VirtualAddress           = 0x8
// CHECK-NEXT:     SymbolTableIndex         = 0
// CHECK-NEXT:     Type                     = IMAGE_REL_I386_REL32 (20)
// CHECK-NEXT:     SymbolName               = .text
// CHECK-NEXT:   }
// CHECK-NEXT:   2 = {
// CHECK-NEXT:     VirtualAddress           = 0xC
// CHECK-NEXT:     SymbolTableIndex         = 0
// CHECK-NEXT:     Type                     = IMAGE_REL_I386_REL32 (20)
// CHECK-NEXT:     SymbolName               = .text
// CHECK-NEXT:   }
// CHECK-NEXT: ]

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API