STRIP(1) Strumenti di sviluppo GNU STRIP(1) NOME strip - Scarta i simboli dai file oggetto. SINTASSI strip [-F bfdname |--target=bfdname] [-I bfdname |--input-target=bfdname] [-O bfdname |--output-target=bfdname] [-s|--strip-all] [-S|-g|-d|--strip-debug] [--strip-dwo] [-K symbolname|--keep-symbol=symbolname] [-M|--merge-notes][--no-merge-notes] [-N symbolname |--strip-symbol=symbolname] [-w|--wildcard] [-x|--discard-all] [-X |--discard-locals] [-R sectionname |--remove-section=sectionname] [--keep-section=sectionpattern] [--remove-relocations=sectionpattern] [--strip-section-headers] [-o file] [-p|--preserve-dates] [-D|--enable-deterministic-archives] [-U|--disable-deterministic-archives] [--keep-section-symbols] [--keep-file-symbols] [--only-keep-debug] [-v |--verbose] [-V|--version] [--help] [--info] objfile... DESCRIZIONE GNU strip discards all symbols from object files objfile. The list of object files may include archives. At least one object file must be given. strip modifica i file nominati negli argomenti, invece di scrivere copie modificate con nomi differenti. OPZIONI -F bfdname --target=bfdname Tratta il objfile originale come un file con il codice oggetto nel formato bfdname, e lo riscrive nello stesso formato. --help Mostra un sommario delle opzioni di strip ed esce. --info Visualizza un elenco che mostra tutte le architetture e i formati oggetto disponibili. -I bfdname --input-target=bfdname Tratta l'originale objfile come file con il codice oggetto nel formato bfdname. -O bfdname --output-target=bfdname Sostituisce objfile con un file nel formato di output bfdname. -R sectionname --remove-section=sectionname Rimuove tutte le sezioni chiamate sectionname dal file di output. Questa opzione puo essere data piu di una volta. Notare che l'uso inappropriato di questa opzione puo rendere inutilizzabile il file di output. Il carattere "wildcard" * puo essere dato alla fine di sectionname. In tal caso, qualsiasi sezione che inizia con sectionname verra rimossa. If the first character of sectionpattern is the exclamation point (!) then matching sections will not be removed even if an earlier use of --remove-section on the same command line would otherwise remove it. For example: --remove-section=.text.* --remove-section=!.text.foo will remove all sections matching the pattern '.text.*', but will not remove the section '.text.foo'. --keep-section=sectionpattern When removing sections from the output file, keep sections that match sectionpattern. --remove-relocations=sectionpattern Remove relocations from the output file for any section matching sectionpattern. This option may be given more than once. Note that using this option inappropriately may make the output file unusable. Wildcard characters are accepted in sectionpattern. For example: --remove-relocations=.text.* will remove the relocations for all sections matching the patter '.text.*'. If the first character of sectionpattern is the exclamation point (!) then matching sections will not have their relocation removed even if an earlier use of --remove-relocations on the same command line would otherwise cause the relocations to be removed. For example: --remove-relocations=.text.* --remove-relocations=!.text.foo will remove all relocations for sections matching the pattern '.text.*', but will not remove relocations for the section '.text.foo'. --strip-section-headers Strip section headers. This option is specific to ELF files. Implies --strip-all and --merge-notes. -s --strip-all Rimuove tutti i simboli. -g -S -d --strip-debug Rimuove solo i simboli di debug. --strip-dwo Remove the contents of all DWARF .dwo sections, leaving the remaining debugging sections and all symbols intact. See the description of this option in the objcopy section for more information. --strip-unneeded Remove all symbols that are not needed for relocation processing in addition to debugging symbols and sections stripped by --strip-debug. -K symbolname --keep-symbol=symbolname Quando viene sguarnito dei simboli, mantiene solo il simbolo symbolname anche se normalmente verrebbe rimosso. Quest'opzione puo essere data piu di una volta. -M --merge-notes --no-merge-notes For ELF files, attempt (or do not attempt) to reduce the size of any SHT_NOTE type sections by removing duplicate notes. The default is to attempt this reduction unless stripping debug or DWO information. -N symbolname --strip-symbol=symbolname Rimuove il simbolo symbolname dal file sorgente. Questa opzione puo essere data piu di una volta, e puo essere combinata con opzioni di strip diverse da -K. -o file Mette il risultato di strip in file, invece di sostituire il file esistente. Quando viene usato questo argomento, puo essere specificato solo un argomento objfile. -p --preserve-dates Preserva le date di accesso e modifica del file. -D --enable-deterministic-archives Opera in modalita deterministica. Quando si copiano i membri dell'archivio e si scrive l'indice di archivio, usa zero per gli UID, i GID e le marcature temporali, e usa permessi di file coerenti per tutti i file. Se binutils e stato configurato con --enable-deterministic-archives, questa modalita e attiva in modo predefinito. Puo essere disabilitata col modificatore -U. -U --disable-deterministic-archives Do not operate in deterministic mode. This is the inverse of the -D option, above: when copying archive members and writing the archive index, use their actual UID, GID, timestamp, and file mode values. Questo e il predefinito a meno che binutils non sia stato configurato con --enable-deterministic-archives. -w --wildcard Permette le espressioni regolari in symbolname usate in altre opzioni da riga di comando. Gli operatori punto di domanda (?), asterisco (*), barra inversa (\) e parentesi quadre ([]) possono essere usati ovunque nel nome del simbolo. Se il primo carattere del nome del simbolo e il punto esclamativo (!), il senso dell'opzione per tale simbolo e invertito. Per esempio: -w -K !foo -K fo* would cause strip to only keep symbols that start with the letters "fo", but to discard the symbol "foo". -x --discard-all Rimuove i simboli non globali. -X --discard-locals Rimuove i simboli locali generati dal compilatore. (Questi normalmente iniziano con L o ..) --keep-section-symbols When stripping a file, perhaps with --strip-debug or --strip-unneeded, retain any symbols specifying section names, which would otherwise get stripped. --keep-file-symbols Quando semplifica un file, magari con --strip-debug o con --strip-unneeded, mantiene qualsiasi simbolo che specifichi nomi di file sorgenti, che altrimenti sarebbero rimossi. --only-keep-debug Strip a file, emptying the contents of any sections that would not be stripped by --strip-debug and leaving the debugging sections intact. In ELF files, this preserves all the note sections in the output as well. Note - the section headers of the stripped sections are preserved, including their sizes, but the contents of the section are discarded. The section headers are preserved so that other tools can match up the debuginfo file with the real executable, even if that executable has been relocated to a different address space. The intention is that this option will be used in conjunction with --add-gnu-debuglink to create a two part executable. One a stripped binary which will occupy less space in RAM and in a distribution and the second a debugging information file which is only needed if debugging abilities are required. The suggested procedure to create these files is as follows: 1. "foo" then... 1. crea un file contenente le informazioni di debug. 1. eseguibile completamente sguarnito. 1. per aggiungere un collegamento alle informazioni di debugging nell'eseguibile sguarnito. Nota---la scelta di ".dbg" come estensione del file di informazioni di debug e arbitraria. Anche il passo "--only-keep-debug" e opzionale. Si puo invece fare questo: 1. 1. 1. 1. ad esempio il file a cui punta --add-gnu-debuglink puo essere l'eseguibile completo. Non deve essere un file creato dall'opzione --only-keep-debug. Note---this switch is only intended for use on fully linked files. It does not make sense to use it on object files where the debugging information may be incomplete. Besides the gnu_debuglink feature currently only supports the presence of one filename containing debugging information, not multiple filenames on a one-per-object-file basis. -V --version Mostra il numero di versione di strip. -v --verbose Output prolisso: elenca tutti i file oggetto modificati. Nel caso di archivi, strip -v elenca tutti i membri dell'archivio. @file Legge le opzioni da riga di comando da file. Le opzioni lette sono inserite al posto dell'opzione originale @file. Se file non esiste o non puo essere letto, l'opzione sara trattata letteralmente, e non rimossa. Le opzioni in file sono separate da spazi vuoti. Si puo includere uno spazio vuoto in un'opzione racchiudendo l'intera opzione fra apici, singoli o doppi. Puo essere incluso qualsiasi carattere (compresa la barra inversa) facendo precedere al carattere una barra inversa. Il file puo esso stesso contenere ulteriori opzioni @file; ciascuna di queste opzioni sara elaborata ricorsivamente. VEDERE ANCHE I campi Info per binutils. COPYRIGHT Copyright (c) 1991-2024 Free Software Foundation, Inc. E permesso copiare, distribuire e/o modificare questo documento nei termini della "Licenza per documentazione libera GNU" (GNU Free Documentation License), versione 1.3 o ogni versione successiva pubblicata dalla Free Software Foundation; senza sezioni non modificabili, senza testi di prima di copertina e di quarta di copertina. Una copia della licenza e inclusa nella sezione intitolata "Licenza per la documentazione libera GNU" (GNU Free Documentation License). TRADUZIONE La traduzione italiana di questa pagina di manuale e stata creata da Giulio Daprela e Marco Curreli Questa traduzione e documentazione libera; leggere la GNU General Public License Versione 3 o successiva per le condizioni di copyright. Non ci assumiamo alcuna responsabilita. Per segnalare errori nella traduzione di questa pagina di manuale inviare un messaggio a . binutils-2.42.0 1 febbraio 2024 STRIP(1)