Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- previous logs:
- 1 https://pastebin.com/gyzLGKEs first successful mips32 compile
- 2 https://pastebin.com/nHzYRDps copied over missing libc files/tidied up (missed copying c++ over in this one)
- 3 https://pastebin.com/AzFHxnPD libqmi (glib 2.52 and util-linux 2.29 upgraded as well)
- 4 https://pastebin.com/Cyh8eivj minidlna update
- 5 https://pastebin.com/L9w8arvC gudev added
- 6 https://pastebin.com/h2xFLf2V php7 updates etc
- 7 https://pastebin.com/bHPpZrRx updated ar71xx for 4.9 (also did it for ar934x platform ["wasp"--mips74k])
- 8 https://pastebin.com/zsdTjjKQ status update on the firmware (not really exclusive to the AC55U, just packing it using mkimage vs lzma-loader etc).
- 9 https://pastebin.com/qNMiWkD9 failure of AC55U due to sensitive MTD flash partitioning (likely due to shoe-horning of AR7134 devicetree file for QCA9558)
- 10 https://pastebin.com/1BPUmMzx just an update to glibc 2.29 and using the latest 4.9 committed by brainslayer to ensure we're all on teh same page.
- 11 https://pastebin.com/9jrT1gkP raw bootlog from the r6700v2/r6800/r6900v2. included so people can observe how the u-boot and "stage code seem to be "together"; that is, the u-boot seems to be customised to deal with the sercomm utilities (no mtdparts, but there is an sc_nand).
- 12 https://pastebin.com/TJHeu9VC discussing the sercomm boot tools and such.
- 13 https://pastebin.com/uadhgmvS just showing the boot log (without initramfs enabled).
- 14 https://pastebin.com/jNmY4y9D was just sharing the observation about initrd that wasn't really useful to the problem
- 15 https://pastebin.com/EUeDuLHZ briefly discussing the boot and problem with the dtb (device tree binary) not being "seen" by the kernel
- 16 https://pastebin.com/K7yuBYfv just a nothingness update (talking about clocksource driver being picked up when disabling the devicetree node calls in mt7621.c)
- 17 https://pastebin.com/LAewauYh discussing the devicetree hack created by The oh-so-clever Crispy One John Crispin (blogic), and how it must be used instead of the "appended_dtb" kernel configuration options. also pointed out the resulting file system driver issue
- 18 https://pastebin.com/uMBaREgn expressing my justified frustration at being unable to mount the bloody filesystem, which is/was likely caused by the network devices having "priority" on the CPU cores, thereby creating a "lock' that can only be opened with the drivers.
- 19 https://pastebin.com/nqYDn4XD successful driver loading, and the rdinit allows the sercommised firmware to "let go" and release the kernel for further booting. this is where i bricked my router trying to update/flash a compiled u-boot. at least i got this build to dump the stack before it died (https://pastebin.com/g1fsrWtm remember, it's MIPS!)
- 20 https://pastebin.com/ux4jky9c just discussing the transition to a d-link dir882 and the issue with the ralink_nand driver.
- 21 https://pastebin.com/m0Fer8cM just talking about wrapping ralink_nand.h.
- 22 https://pastebin.com/sDSU1JZg discussing RDinit success (in the sense that it works) when using DLINK's uclibc romfs, but no such success when invoking glibc-linked programs.
- 23 discussing the successful boot with initrd of a uclibc image
- today was a good day.
- i have managed to get a static gcc/g++ (with static binutils) fully working, linked to _glibc_. i haven't tested it thoroughly, but it was able to compile a program that called printf, where this gcc called as to complete the linkage.
- this is extremely exciting, even in light of the real limitations at boot!!!! below is a dump of some of the output from this build...
- they said it couldn't be done...
- #mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux
- sh-4.4# help
- GNU bash, version 4.4.12(3)-release (mipsel-none-linux-gnu)
- These shell commands are defined internally. Type `help' to see this list.
- Type `help name' to find out more about the function `name'.
- Use `info bash' to find out more about the shell in general.
- Use `man -k' or `info' to find out more about commands not in this list.
- A star (*) next to a name means that the command is disabled.
- job_spec [&] if COMMANDS; then COMMANDS; [ elif C>
- (( expression )) kill [-s sigspec | -n signum | -sigs>
- . filename [arguments] let arg [arg ...]
- : local [option] name[=value] ...
- [ arg... ] logout [n]
- [[ expression ]] mapfile [-d delim] [-n count] [-O or>
- alias [-p] [name[=value] ... ] popd [-n] [+N | -N]
- bind [-lpsvPSVX] [-m keymap] [-f file> printf [-v var] format [arguments]
- break [n] pushd [-n] [+N | -N | dir]
- builtin [shell-builtin [arg ...]] pwd [-LP]
- caller [expr] read [-ers] [-a array] [-d delim] [->
- case WORD in [PATTERN [| PATTERN]...)> readarray [-n count] [-O origin] [-s>
- cd [-L|[-P [-e]] [-@]] [dir] readonly [-aAf] [name[=value] ...] o>
- command [-pVv] command [arg ...] return [n]
- compgen [-abcdefgjksuv] [-o option] [> select NAME [in WORDS ... ;] do COMM>
- complete [-abcdefgjksuv] [-pr] [-DE] > set [-abefhkmnptuvxBCHP] [-o option->
- compopt [-o|+o option] [-DE] [name ..> shift [n]
- continue [n] shopt [-pqsu] [-o] [optname ...]
- coproc [NAME] command [redirections] source filename [arguments]
- declare [-aAfFgilnrtux] [-p] [name[=v> test [expr]
- dirs [-clpv] [+N] [-N] time [-p] pipeline
- echo [-neE] [arg ...] times
- enable [-a] [-dnps] [-f filename] [na> trap [-lp] [[arg] signal_spec ...]
- eval [arg ...] true
- exec [-cl] [-a name] [command [argume> type [-afptP] name [name ...]
- exit [n] typeset [-aAfFgilnrtux] [-p] name[=v>
- export [-fn] [name[=value] ...] or ex> ulimit [-SHabcdefiklmnpqrstuvxPT] [l>
- false umask [-p] [-S] [mode]
- fc [-e ename] [-lnr] [first] [last] o> unalias [-a] name [name ...]
- for NAME [in WORDS ... ] ; do COMMAND> unset [-f] [-v] [-n] [name ...]
- for (( exp1; exp2; exp3 )); do COMMAN> until COMMANDS; do COMMANDS; done
- function name { COMMANDS ; } or name > variables - Names and meanings of so>
- getopts optstring name [arg] wait [pid ...]
- hash [-lr] [-p pathname] [-dt] [name > while COMMANDS; do COMMANDS; done
- help [-dms] [pattern ...] { COMMANDS ; }
- history [-c] [-d offset] [n] or histo>
- sh-4.4# gcc -v
- Using built-in specs.
- COLLECT_GCC=gcc
- COLLECT_LTO_WRAPPER=/mnt/root/bin/../libexec/gcc/mipsel-none-linux-gnu/7.2.0/lto-wrapper
- Target: mipsel-none-linux-gnu
- Configured with: ../gcc7/configure --prefix=/tools --libdir=/tools/lib --build=x86_64-cross-darwin14 --host=mipsel-none-linux-gnu --target=mipsel-none-linux-gnu --with-local-prefix=/tools --enable-languages=c,c++ --with-system-zlib <SNIPPED BY BROLY>
- Thread model: posix
- gcc version 7.2.0 (GCC)
- sh-4.4# g++ -v
- Using built-in specs.
- COLLECT_GCC=g++
- COLLECT_LTO_WRAPPER=/mnt/root/bin/../libexec/gcc/mipsel-none-linux-gnu/7.2.0/lto-wrapper
- Target: mipsel-none-linux-gnu
- Configured with: ../gcc7/configure --prefix=/tools --libdir=/tools/lib --build=x86_64-cross-darwin14 --host=mipsel-none-linux-gnu --target=mipsel-none-linux-gnu --with-local-prefix=/tools --enable-languages=c,c++ --with-system-zlib <SNIPPED BY BROLY>
- Thread model: posix
- gcc version 7.2.0 (GCC)
- sh-4.4# cat t
- tmp/ tools/
- sh-4.4# cat /mnt/root/bin/test.c
- #include <stdlib.h>
- int main() {
- printf("Hi\n");
- }
- sh-4.4# pwd
- /
- sh-4.4# cd /mnt/root/bin
- sh-4.4# rm a.out
- sh-4.4# gcc test.c
- test.c:1:10: fatal error: stdlib.h: No such file or directory
- #include <stdlib.h>
- ^~~~~~~~~~
- compilation terminated.
- sh-4.4# gcc -I/mnt/root/include test.c
- test.c: In function 'main':
- test.c:6:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
- printf("Hi\n");
- ^~~~~~
- test.c:6:2: warning: incompatible implicit declaration of built-in function 'printf'
- test.c:6:2: note: include '<stdio.h>' or provide a declaration of 'printf'
- sh-4.4# ./a.out
- Hi
- sh-4.4# ar
- Usage: ar [emulation options] [-]{dmpqrstx}[abcDfilMNoPsSTuvV] [--plugin <name>] [member-name] [count] archive-file file...
- ar -M [<mri-script]
- commands:
- d - delete file(s) from the archive
- m[ab] - move file(s) in the archive
- p - print file(s) found in the archive
- q[f] - quick append file(s) to the archive
- r[ab][f][u] - replace existing or insert new file(s) into the archive
- s - act as ranlib
- t - display contents of archive
- x[o] - extract file(s) from the archive
- command specific modifiers:
- [a] - put file(s) after [member-name]
- [b] - put file(s) before [member-name] (same as [i])
- [D] - use zero for timestamps and uids/gids
- [U] - use actual timestamps and uids/gids (default)
- [N] - use instance [count] of name
- [f] - truncate inserted file names
- [P] - use full path names when matching
- [o] - preserve original dates
- [u] - only replace files that are newer than current archive contents
- generic modifiers:
- [c] - do not warn if the library had to be created
- [s] - create an archive index (cf. ranlib)
- [S] - do not build a symbol table
- [T] - make a thin archive
- [v] - be verbose
- [V] - display the version number
- @<file> - read options from <file>
- --target=BFDNAME - specify the target object format as BFDNAME
- optional:
- --plugin <p> - load the specified plugin
- emulation options:
- No emulation specific options
- ar: supported targets: elf32-tradlittlemips elf32-tradbigmips ecoff-littlemips ecoff-bigmips elf32-ntradlittlemips elf64-tradlittlemips elf32-ntradbigmips elf64-tradbigmips elf64-little elf64-big elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex
- sh-4.4# as
- ^C
- sh-4.4# as --help
- Usage: as [option...] [asmfile...]
- Options:
- -a[sub-option...] turn on listings
- Sub-options [default hls]:
- c omit false conditionals
- d omit debugging directives
- g include general info
- h include high-level source
- l include assembly
- m include macro expansions
- n omit forms processing
- s include symbols
- =FILE list to FILE (must be last sub-option)
- --alternate initially turn on alternate macro syntax
- --compress-debug-sections[={none|zlib|zlib-gnu|zlib-gabi}]
- compress DWARF debug sections using zlib
- --nocompress-debug-sections
- don't compress DWARF debug sections [default]
- -D produce assembler debugging messages
- --debug-prefix-map OLD=NEW
- map OLD to NEW in debug information
- --defsym SYM=VAL define symbol SYM to given value
- --em=[mipslelf | mipsbelf | mipself]
- emulate output (default mipslelf)
- --execstack require executable stack for this object
- --noexecstack don't require executable stack for this object
- --size-check=[error|warning]
- ELF .size directive check (default --size-check=error)
- --elf-stt-common=[no|yes]
- generate ELF common symbols with STT_COMMON type
- --sectname-subst enable section name substitution sequences
- -f skip whitespace and comment preprocessing
- -g --gen-debug generate debugging information
- --gstabs generate STABS debugging information
- --gstabs+ generate STABS debug info with GNU extensions
- --gdwarf-2 generate DWARF2 debugging information
- --gdwarf-sections generate per-function section names for DWARF line information
- --hash-size=<value> set the hash table size close to <value>
- --help show this message and exit
- --target-help show target specific options
- -I DIR add DIR to search list for .include directives
- -J don't warn about signed overflow
- -K warn when differences altered for long displacements
- -L,--keep-locals keep local symbols (e.g. starting with `L')
- -M,--mri assemble in MRI compatibility mode
- --MD FILE write dependency information in FILE (default none)
- -nocpp ignored
- -no-pad-sections do not pad the end of sections to alignment boundaries
- -o OBJFILE name the object-file output OBJFILE (default a.out)
- -R fold data section into text section
- --reduce-memory-overheads
- prefer smaller memory use at the cost of longer
- assembly times
- --statistics print various measured statistics from execution
- --strip-local-absolute strip local absolute symbols
- --traditional-format Use same format as native assembler when possible
- --version print assembler version number and exit
- -W --no-warn suppress warnings
- --warn don't suppress warnings
- --fatal-warnings treat warnings as errors
- --itbl INSTTBL extend instruction set to include instructions
- matching the specifications defined in file INSTTBL
- -w ignored
- -X ignored
- -Z generate object file even after errors
- --listing-lhs-width set the width in words of the output data column of
- the listing
- --listing-lhs-width2 set the width in words of the continuation lines
- of the output data column; ignored if smaller than
- the width of the first line
- --listing-rhs-width set the max width in characters of the lines from
- the source file
- --listing-cont-lines set the maximum number of continuation lines used
- for the output data column of the listing
- @FILE read options from FILE
- MIPS options:
- -EB generate big endian output
- -EL generate little endian output
- -g, -g2 do not remove unneeded NOPs or swap branches
- -G NUM allow referencing objects up to NUM bytes
- implicitly with the gp register [default 8]
- -mips1 generate MIPS ISA I instructions
- -mips2 generate MIPS ISA II instructions
- -mips3 generate MIPS ISA III instructions
- -mips4 generate MIPS ISA IV instructions
- -mips5 generate MIPS ISA V instructions
- -mips32 generate MIPS32 ISA instructions
- -mips32r2 generate MIPS32 release 2 ISA instructions
- -mips32r3 generate MIPS32 release 3 ISA instructions
- -mips32r5 generate MIPS32 release 5 ISA instructions
- -mips32r6 generate MIPS32 release 6 ISA instructions
- -mips64 generate MIPS64 ISA instructions
- -mips64r2 generate MIPS64 release 2 ISA instructions
- -mips64r3 generate MIPS64 release 3 ISA instructions
- -mips64r5 generate MIPS64 release 5 ISA instructions
- -mips64r6 generate MIPS64 release 6 ISA instructions
- -march=CPU/-mtune=CPU generate code/schedule for CPU, where CPU is one of:
- mips1, mips2, mips3, mips4, mips5, mips32,
- mips32r2, mips32r3, mips32r5, mips32r6, mips64,
- mips64r2, mips64r3, mips64r5, mips64r6, r3000,
- r2000, r3900, r6000, r4000, r4010, vr4100,
- vr4111, vr4120, vr4130, vr4181, vr4300, r4400,
- r4600, orion, r4650, r5900, loongson2e,
- loongson2f, r8000, r10000, r12000, r14000,
- r16000, vr5000, vr5400, vr5500, rm5200, rm5230,
- rm5231, rm5261, rm5721, rm7000, rm9000, 4kc, 4km,
- 4kp, 4ksc, 4kec, 4kem, 4kep, 4ksd, m4k, m4kp,
- m14k, m14kc, m14ke, m14kec, 24kc, 24kf2_1, 24kf,
- 24kf1_1, 24kfx, 24kx, 24kec, 24kef2_1, 24kef,
- 24kef1_1, 24kefx, 24kex, 34kc, 34kf2_1, 34kf,
- 34kf1_1, 34kfx, 34kx, 34kn, 74kc, 74kf2_1, 74kf,
- 74kf1_1, 74kf3_2, 74kfx, 74kx, 1004kc, 1004kf2_1,
- 1004kf, 1004kf1_1, interaptiv, interaptiv-mr2,
- m5100, m5101, p5600, 5kc, 5kf, 20kc, 25kf, sb1,
- sb1a, loongson3a, octeon, octeon+, octeon2,
- octeon3, xlr, xlp, i6400, p6600, from-abi
- -mCPU equivalent to -march=CPU -mtune=CPU. Deprecated.
- -no-mCPU don't generate code specific to CPU.
- For -mCPU and -no-mCPU, CPU must be one of:
- 3900, 4010, 4100, 4650
- -mips16 generate mips16 instructions
- -no-mips16 do not generate mips16 instructions
- -mmicromips generate microMIPS instructions
- -mno-micromips do not generate microMIPS instructions
- -msmartmips generate smartmips instructions
- -mno-smartmips do not generate smartmips instructions
- -mdsp generate DSP instructions
- -mno-dsp do not generate DSP instructions
- -mdspr2 generate DSP R2 instructions
- -mno-dspr2 do not generate DSP R2 instructions
- -mdspr3 generate DSP R3 instructions
- -mno-dspr3 do not generate DSP R3 instructions
- -mmt generate MT instructions
- -mno-mt do not generate MT instructions
- -mmcu generate MCU instructions
- -mno-mcu do not generate MCU instructions
- -mmsa generate MSA instructions
- -mno-msa do not generate MSA instructions
- -mxpa generate eXtended Physical Address (XPA) instructions
- -mno-xpa do not generate eXtended Physical Address (XPA) instructions
- -mvirt generate Virtualization instructions
- -mno-virt do not generate Virtualization instructions
- -minsn32 only generate 32-bit microMIPS instructions
- -mno-insn32 generate all microMIPS instructions
- -mfix-loongson2f-jump work around Loongson2F JUMP instructions
- -mfix-loongson2f-nop work around Loongson2F NOP errata
- -mfix-vr4120 work around certain VR4120 errata
- -mfix-vr4130 work around VR4130 mflo/mfhi errata
- -mfix-24k insert a nop after ERET and DERET instructions
- -mfix-cn63xxp1 work around CN63XXP1 PREF errata
- -mgp32 use 32-bit GPRs, regardless of the chosen ISA
- -mfp32 use 32-bit FPRs, regardless of the chosen ISA
- -msym32 assume all symbols have 32-bit values
- -O0 remove unneeded NOPs, do not swap branches
- -O remove unneeded NOPs and swap branches
- --trap, --no-break trap exception on div by 0 and mult overflow
- --break, --no-trap break exception on div by 0 and mult overflow
- -mhard-float allow floating-point instructions
- -msoft-float do not allow floating-point instructions
- -msingle-float only allow 32-bit floating-point operations
- -mdouble-float allow 32-bit and 64-bit floating-point operations
- --[no-]construct-floats [dis]allow floating point values to be constructed
- --[no-]relax-branch [dis]allow out-of-range branches to be relaxed
- -mignore-branch-isa accept invalid branches requiring an ISA mode switch
- -mno-ignore-branch-isa reject invalid branches requiring an ISA mode switch
- -mnan=ENCODING select an IEEE 754 NaN encoding convention, either of:
- legacy, 2008
- -KPIC, -call_shared generate SVR4 position independent code
- -call_nonpic generate non-PIC code that can operate with DSOs
- -mvxworks-pic generate VxWorks position independent code
- -non_shared do not generate code that can operate with DSOs
- -xgot assume a 32 bit GOT
- -mpdr, -mno-pdr enable/disable creation of .pdr sections
- -mshared, -mno-shared disable/enable .cpload optimization for
- position dependent (non shared) code
- -mabi=ABI create ABI conformant object file for:
- 32, o64, n32, 64, eabi
- -32 create o32 ABI object file (default)
- -n32 create n32 ABI object file
- -64 create 64 ABI object file
- Report bugs to <http://www.sourceware.org/bugzilla/>
- sh-4.4# objcopy
- Usage: objcopy [option(s)] in-file [out-file]
- Copies a binary file, possibly transforming it in the process
- The options are:
- -I --input-target <bfdname> Assume input file is in format <bfdname>
- -O --output-target <bfdname> Create an output file in format <bfdname>
- -B --binary-architecture <arch> Set output arch, when input is arch-less
- -F --target <bfdname> Set both input and output format to <bfdname>
- --debugging Convert debugging information, if possible
- -p --preserve-dates Copy modified/access timestamps to the output
- -D --enable-deterministic-archives
- Produce deterministic output when stripping archives
- -U --disable-deterministic-archives
- Disable -D behavior (default)
- -j --only-section <name> Only copy section <name> into the output
- --add-gnu-debuglink=<file> Add section .gnu_debuglink linking to <file>
- -R --remove-section <name> Remove section <name> from the output
- --remove-relocations <name> Remove relocations from section <name>
- -S --strip-all Remove all symbol and relocation information
- -g --strip-debug Remove all debugging symbols & sections
- --strip-dwo Remove all DWO sections
- --strip-unneeded Remove all symbols not needed by relocations
- -N --strip-symbol <name> Do not copy symbol <name>
- --strip-unneeded-symbol <name>
- Do not copy symbol <name> unless needed by
- relocations
- --only-keep-debug Strip everything but the debug information
- --extract-dwo Copy only DWO sections
- --extract-symbol Remove section contents but keep symbols
- -K --keep-symbol <name> Do not strip symbol <name>
- --keep-file-symbols Do not strip file symbol(s)
- --localize-hidden Turn all ELF hidden symbols into locals
- -L --localize-symbol <name> Force symbol <name> to be marked as a local
- --globalize-symbol <name> Force symbol <name> to be marked as a global
- -G --keep-global-symbol <name> Localize all symbols except <name>
- -W --weaken-symbol <name> Force symbol <name> to be marked as a weak
- --weaken Force all global symbols to be marked as weak
- -w --wildcard Permit wildcard in symbol comparison
- -x --discard-all Remove all non-global symbols
- -X --discard-locals Remove any compiler-generated symbols
- -i --interleave[=<number>] Only copy N out of every <number> bytes
- --interleave-width <number> Set N for --interleave
- -b --byte <num> Select byte <num> in every interleaved block
- --gap-fill <val> Fill gaps between sections with <val>
- --pad-to <addr> Pad the last section up to address <addr>
- --set-start <addr> Set the start address to <addr>
- {--change-start|--adjust-start} <incr>
- Add <incr> to the start address
- {--change-addresses|--adjust-vma} <incr>
- Add <incr> to LMA, VMA and start addresses
- {--change-section-address|--adjust-section-vma} <name>{=|+|-}<val>
- Change LMA and VMA of section <name> by <val>
- --change-section-lma <name>{=|+|-}<val>
- Change the LMA of section <name> by <val>
- --change-section-vma <name>{=|+|-}<val>
- Change the VMA of section <name> by <val>
- {--[no-]change-warnings|--[no-]adjust-warnings}
- Warn if a named section does not exist
- --set-section-flags <name>=<flags>
- Set section <name>'s properties to <flags>
- --add-section <name>=<file> Add section <name> found in <file> to output
- --update-section <name>=<file>
- Update contents of section <name> with
- contents found in <file>
- --dump-section <name>=<file> Dump the contents of section <name> into <file>
- --rename-section <old>=<new>[,<flags>] Rename section <old> to <new>
- --long-section-names {enable|disable|keep}
- Handle long section names in Coff objects.
- --change-leading-char Force output format's leading character style
- --remove-leading-char Remove leading character from global symbols
- --reverse-bytes=<num> Reverse <num> bytes at a time, in output sections with content
- --redefine-sym <old>=<new> Redefine symbol name <old> to <new>
- --redefine-syms <file> --redefine-sym for all symbol pairs
- listed in <file>
- --srec-len <number> Restrict the length of generated Srecords
- --srec-forceS3 Restrict the type of generated Srecords to S3
- --strip-symbols <file> -N for all symbols listed in <file>
- --strip-unneeded-symbols <file>
- --strip-unneeded-symbol for all symbols listed
- in <file>
- --keep-symbols <file> -K for all symbols listed in <file>
- --localize-symbols <file> -L for all symbols listed in <file>
- --globalize-symbols <file> --globalize-symbol for all in <file>
- --keep-global-symbols <file> -G for all symbols listed in <file>
- --weaken-symbols <file> -W for all symbols listed in <file>
- --add-symbol <name>=[<section>:]<value>[,<flags>] Add a symbol
- --alt-machine-code <index> Use the target's <index>'th alternative machine
- --writable-text Mark the output text as writable
- --readonly-text Make the output text write protected
- --pure Mark the output file as demand paged
- --impure Mark the output file as impure
- --prefix-symbols <prefix> Add <prefix> to start of every symbol name
- --prefix-sections <prefix> Add <prefix> to start of every section name
- --prefix-alloc-sections <prefix>
- Add <prefix> to start of every allocatable
- section name
- --file-alignment <num> Set PE file alignment to <num>
- --heap <reserve>[,<commit>] Set PE reserve/commit heap to <reserve>/
- <commit>
- --image-base <address> Set PE image base to <address>
- --section-alignment <num> Set PE section alignment to <num>
- --stack <reserve>[,<commit>] Set PE reserve/commit stack to <reserve>/
- <commit>
- --subsystem <name>[:<version>]
- Set PE subsystem to <name> [& <version>]
- --compress-debug-sections[={none|zlib|zlib-gnu|zlib-gabi}]
- Compress DWARF debug sections using zlib
- --decompress-debug-sections Decompress DWARF debug sections using zlib
- --elf-stt-common=[yes|no] Generate ELF common symbols with STT_COMMON
- type
- -M --merge-notes Remove redundant entries in note sections
- --no-merge-notes Do not attempt to remove redundant notes (default)
- -v --verbose List all object files modified
- @<file> Read options from <file>
- -V --version Display this program's version number
- -h --help Display this output
- --info List object formats & architectures supported
- objcopy: supported targets: elf32-tradlittlemips elf32-tradbigmips ecoff-littlemips ecoff-bigmips elf32-ntradlittlemips elf64-tradlittlemips elf32-ntradbigmips elf64-tradbigmips elf64-little elf64-big elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex
- sh-4.4# readelf
- Usage: readelf <option(s)> elf-file(s)
- Display information about the contents of ELF format files
- Options are:
- -a --all Equivalent to: -h -l -S -s -r -d -V -A -I
- -h --file-header Display the ELF file header
- -l --program-headers Display the program headers
- --segments An alias for --program-headers
- -S --section-headers Display the sections' header
- --sections An alias for --section-headers
- -g --section-groups Display the section groups
- -t --section-details Display the section details
- -e --headers Equivalent to: -h -l -S
- -s --syms Display the symbol table
- --symbols An alias for --syms
- --dyn-syms Display the dynamic symbol table
- -n --notes Display the core notes (if present)
- -r --relocs Display the relocations (if present)
- -u --unwind Display the unwind info (if present)
- -d --dynamic Display the dynamic section (if present)
- -V --version-info Display the version sections (if present)
- -A --arch-specific Display architecture specific information (if any)
- -c --archive-index Display the symbol/file index in an archive
- -D --use-dynamic Use the dynamic section info when displaying symbols
- -x --hex-dump=<number|name>
- Dump the contents of section <number|name> as bytes
- -p --string-dump=<number|name>
- Dump the contents of section <number|name> as strings
- -R --relocated-dump=<number|name>
- Dump the contents of section <number|name> as relocated bytes
- -z --decompress Decompress section before dumping it
- -w[lLiaprmfFsoRt] or
- --debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,
- =frames-interp,=str,=loc,=Ranges,=pubtypes,
- =gdb_index,=trace_info,=trace_abbrev,=trace_aranges,
- =addr,=cu_index]
- Display the contents of DWARF2 debug sections
- --dwarf-depth=N Do not display DIEs at depth N or greater
- --dwarf-start=N Display DIEs starting with N, at the same depth
- or deeper
- -I --histogram Display histogram of bucket list lengths
- -W --wide Allow output width to exceed 80 characters
- @<file> Read options from <file>
- -H --help Display this information
- -v --version Display the version number of readelf
- sh-4.4# gcc --help
- Usage: gcc [options] file...
- Options:
- -pass-exit-codes Exit with highest error code from a phase.
- --help Display this information.
- --target-help Display target specific command line options.
- --help={common|optimizers|params|target|warnings|[^]{joined|separate|undocumented}}[,...].
- Display specific types of command line options.
- (Use '-v --help' to display command line options of sub-processes).
- --version Display compiler version information.
- -dumpspecs Display all of the built in spec strings.
- -dumpversion Display the version of the compiler.
- -dumpmachine Display the compiler's target processor.
- -print-search-dirs Display the directories in the compiler's search path.
- -print-libgcc-file-name Display the name of the compiler's companion library.
- -print-file-name=<lib> Display the full path to library <lib>.
- -print-prog-name=<prog> Display the full path to compiler component <prog>.
- -print-multiarch Display the target's normalized GNU triplet, used as
- a component in the library path.
- -print-multi-directory Display the root directory for versions of libgcc.
- -print-multi-lib Display the mapping between command line options and
- multiple library search directories.
- -print-multi-os-directory Display the relative path to OS libraries.
- -print-sysroot Display the target libraries directory.
- -print-sysroot-headers-suffix Display the sysroot suffix used to find headers.
- -Wa,<options> Pass comma-separated <options> on to the assembler.
- -Wp,<options> Pass comma-separated <options> on to the preprocessor.
- -Wl,<options> Pass comma-separated <options> on to the linker.
- -Xassembler <arg> Pass <arg> on to the assembler.
- -Xpreprocessor <arg> Pass <arg> on to the preprocessor.
- -Xlinker <arg> Pass <arg> on to the linker.
- -save-temps Do not delete intermediate files.
- -save-temps=<arg> Do not delete intermediate files.
- -no-canonical-prefixes Do not canonicalize paths when building relative
- prefixes to other gcc components.
- -pipe Use pipes rather than intermediate files.
- -time Time the execution of each subprocess.
- -specs=<file> Override built-in specs with the contents of <file>.
- -std=<standard> Assume that the input sources are for <standard>.
- --sysroot=<directory> Use <directory> as the root directory for headers
- and libraries.
- -B <directory> Add <directory> to the compiler's search paths.
- -v Display the programs invoked by the compiler.
- -### Like -v but options quoted and commands not executed.
- -E Preprocess only; do not compile, assemble or link.
- -S Compile only; do not assemble or link.
- -c Compile and assemble, but do not link.
- -o <file> Place the output into <file>.
- -pie Create a position independent executable.
- -shared Create a shared library.
- -x <language> Specify the language of the following input files.
- Permissible languages include: c c++ assembler none
- 'none' means revert to the default behavior of
- guessing the language based on the file's extension.
- Options starting with -g, -f, -m, -O, -W, or --param are automatically
- passed on to the various sub-processes invoked by gcc. In order to pass
- other options on to these processes the -W<letter> options must be used.
- For bug reporting instructions, please see:
- <https://gcc.gnu.org/bugs/>.
- sh-4.4# g++ --help
- Usage: g++ [options] file...
- Options:
- -pass-exit-codes Exit with highest error code from a phase.
- --help Display this information.
- --target-help Display target specific command line options.
- --help={common|optimizers|params|target|warnings|[^]{joined|separate|undocumented}}[,...].
- Display specific types of command line options.
- (Use '-v --help' to display command line options of sub-processes).
- --version Display compiler version information.
- -dumpspecs Display all of the built in spec strings.
- -dumpversion Display the version of the compiler.
- -dumpmachine Display the compiler's target processor.
- -print-search-dirs Display the directories in the compiler's search path.
- -print-libgcc-file-name Display the name of the compiler's companion library.
- -print-file-name=<lib> Display the full path to library <lib>.
- -print-prog-name=<prog> Display the full path to compiler component <prog>.
- -print-multiarch Display the target's normalized GNU triplet, used as
- a component in the library path.
- -print-multi-directory Display the root directory for versions of libgcc.
- -print-multi-lib Display the mapping between command line options and
- multiple library search directories.
- -print-multi-os-directory Display the relative path to OS libraries.
- -print-sysroot Display the target libraries directory.
- -print-sysroot-headers-suffix Display the sysroot suffix used to find headers.
- -Wa,<options> Pass comma-separated <options> on to the assembler.
- -Wp,<options> Pass comma-separated <options> on to the preprocessor.
- -Wl,<options> Pass comma-separated <options> on to the linker.
- -Xassembler <arg> Pass <arg> on to the assembler.
- -Xpreprocessor <arg> Pass <arg> on to the preprocessor.
- -Xlinker <arg> Pass <arg> on to the linker.
- -save-temps Do not delete intermediate files.
- -save-temps=<arg> Do not delete intermediate files.
- -no-canonical-prefixes Do not canonicalize paths when building relative
- prefixes to other gcc components.
- -pipe Use pipes rather than intermediate files.
- -time Time the execution of each subprocess.
- -specs=<file> Override built-in specs with the contents of <file>.
- -std=<standard> Assume that the input sources are for <standard>.
- --sysroot=<directory> Use <directory> as the root directory for headers
- and libraries.
- -B <directory> Add <directory> to the compiler's search paths.
- -v Display the programs invoked by the compiler.
- -### Like -v but options quoted and commands not executed.
- -E Preprocess only; do not compile, assemble or link.
- -S Compile only; do not assemble or link.
- -c Compile and assemble, but do not link.
- -o <file> Place the output into <file>.
- -pie Create a position independent executable.
- -shared Create a shared library.
- -x <language> Specify the language of the following input files.
- Permissible languages include: c c++ assembler none
- 'none' means revert to the default behavior of
- guessing the language based on the file's extension.
- Options starting with -g, -f, -m, -O, -W, or --param are automatically
- passed on to the various sub-processes invoked by g++. In order to pass
- other options on to these processes the -W<letter> options must be used.
- For bug reporting instructions, please see:
- <https://gcc.gnu.org/bugs/>.
- sh-4.4#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement