• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Ethereum
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
      • Zcash
      • Des
      • X86isa
      • Sha-2
      • Yul
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Axe
      • Poseidon
      • Where-do-i-place-my-book
      • Aleo
      • Bigmems
      • Builtins
      • Execloader
        • Elf-reader
        • Mach-o-reader
          • Read-load_commands
          • Read-section_data_sz_structures
          • Mach-o-section-header
            • Mach-o-section-header-fix
            • Make-mach-o-section-header
            • Mach-o-section-header-equiv
            • Mach-o-section-header-p
            • Change-mach-o-section-header
              • Mach-o-section-header->segname
              • Mach-o-section-header->sectname
              • Mach-o-section-header->reserved3
              • Mach-o-section-header->reserved2
              • Mach-o-section-header->reserved1
              • Mach-o-section-header->reloff
              • Mach-o-section-header->offset
              • Mach-o-section-header->nreloc
              • Mach-o-section-header->size
              • Mach-o-section-header->flags
              • Mach-o-section-header->align
              • Mach-o-section-header->addr
            • Mach-o-header
            • Populate-mach-o-contents
            • Good-mach-o-p
            • Fill-data-segment-bytes
            • Fill-text-text-section-bytes
            • Fill-text-segment-bytes
            • Fill-text-cstring-section-bytes
            • Fill-text-const-section-bytes
            • Fill-data-dyld-section-bytes
            • Fill-data-data-section-bytes
            • Fill-data-const-section-bytes
            • Fill-data-common-section-bytes
            • Fill-data-bss-section-bytes
            • Read-mach_header
            • Populate-mach-o
            • Mach-o-section-headers
          • Merge-first-split-bytes
          • Split-bytes
          • Take-till-zero
          • Charlist->bytes
          • Merge-bytes
          • Bytes->charlist
          • String->bytes
          • Bytes->string
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Mach-o-section-header

    Change-mach-o-section-header

    Modifying constructor for mach-o-section-header structures.

    Syntax
    (change-mach-o-section-header x 
                                  [:sectname <sectname>] 
                                  [:segname <segname>] 
                                  [:addr <addr>] 
                                  [:size <size>] 
                                  [:offset <offset>] 
                                  [:align <align>] 
                                  [:reloff <reloff>] 
                                  [:nreloc <nreloc>] 
                                  [:flags <flags>] 
                                  [:reserved1 <reserved1>] 
                                  [:reserved2 <reserved2>] 
                                  [:reserved3 <reserved3>]) 
    

    This is an often useful alternative to make-mach-o-section-header.

    We construct a new mach-o-section-header structure that is a copy of x, except that you can explicitly change some particular fields. Any fields you don't mention just keep their values from x.

    Definition

    This is an ordinary change- macro introduced by defprod.

    Macro: change-mach-o-section-header

    (defmacro change-mach-o-section-header (x &rest args)
      (std::change-aggregate
           'mach-o-section-header
           x args
           '((:sectname . mach-o-section-header->sectname)
             (:segname . mach-o-section-header->segname)
             (:addr . mach-o-section-header->addr)
             (:size . mach-o-section-header->size)
             (:offset . mach-o-section-header->offset)
             (:align . mach-o-section-header->align)
             (:reloff . mach-o-section-header->reloff)
             (:nreloc . mach-o-section-header->nreloc)
             (:flags . mach-o-section-header->flags)
             (:reserved1 . mach-o-section-header->reserved1)
             (:reserved2 . mach-o-section-header->reserved2)
             (:reserved3 . mach-o-section-header->reserved3))
           'change-mach-o-section-header
           'nil))