Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

3 anos atrás
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760
  1. This is binutils.info, produced by makeinfo version 6.5 from
  2. binutils.texi.
  3. Copyright (C) 1991-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with no
  7. Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
  8. Texts. A copy of the license is included in the section entitled "GNU
  9. Free Documentation License".
  10. INFO-DIR-SECTION Software development
  11. START-INFO-DIR-ENTRY
  12. * Binutils: (binutils). The GNU binary utilities.
  13. END-INFO-DIR-ENTRY
  14. INFO-DIR-SECTION Individual utilities
  15. START-INFO-DIR-ENTRY
  16. * addr2line: (binutils)addr2line. Convert addresses to file and line.
  17. * ar: (binutils)ar. Create, modify, and extract from archives.
  18. * c++filt: (binutils)c++filt. Filter to demangle encoded C++ symbols.
  19. * cxxfilt: (binutils)c++filt. MS-DOS name for c++filt.
  20. * dlltool: (binutils)dlltool. Create files needed to build and use DLLs.
  21. * nm: (binutils)nm. List symbols from object files.
  22. * objcopy: (binutils)objcopy. Copy and translate object files.
  23. * objdump: (binutils)objdump. Display information from object files.
  24. * ranlib: (binutils)ranlib. Generate index to archive contents.
  25. * readelf: (binutils)readelf. Display the contents of ELF format files.
  26. * size: (binutils)size. List section sizes and total size.
  27. * strings: (binutils)strings. List printable strings from files.
  28. * strip: (binutils)strip. Discard symbols.
  29. * elfedit: (binutils)elfedit. Update ELF header and property of ELF files.
  30. * windmc: (binutils)windmc. Generator for Windows message resources.
  31. * windres: (binutils)windres. Manipulate Windows resources.
  32. END-INFO-DIR-ENTRY
  33. 
  34. File: binutils.info, Node: Top, Next: ar, Up: (dir)
  35. Introduction
  36. ************
  37. This brief manual contains documentation for the GNU binary utilities
  38. (GNU Arm Embedded Toolchain 10-2020-q4-major) version 2.35.1:
  39. This document is distributed under the terms of the GNU Free
  40. Documentation License version 1.3. A copy of the license is included in
  41. the section entitled "GNU Free Documentation License".
  42. * Menu:
  43. * ar:: Create, modify, and extract from archives
  44. * nm:: List symbols from object files
  45. * objcopy:: Copy and translate object files
  46. * objdump:: Display information from object files
  47. * ranlib:: Generate index to archive contents
  48. * size:: List section sizes and total size
  49. * strings:: List printable strings from files
  50. * strip:: Discard symbols
  51. * c++filt:: Filter to demangle encoded C++ symbols
  52. * cxxfilt: c++filt. MS-DOS name for c++filt
  53. * addr2line:: Convert addresses to file and line
  54. * windmc:: Generator for Windows message resources
  55. * windres:: Manipulate Windows resources
  56. * dlltool:: Create files needed to build and use DLLs
  57. * readelf:: Display the contents of ELF format files
  58. * elfedit:: Update ELF header and property of ELF files
  59. * Common Options:: Command-line options for all utilities
  60. * Selecting the Target System:: How these utilities determine the target
  61. * debuginfod:: Using binutils with debuginfod
  62. * Reporting Bugs:: Reporting Bugs
  63. * GNU Free Documentation License:: GNU Free Documentation License
  64. * Binutils Index:: Binutils Index
  65. 
  66. File: binutils.info, Node: ar, Next: nm, Prev: Top, Up: Top
  67. 1 ar
  68. ****
  69. ar [-]P[MOD] [--plugin NAME] [--target BFDNAME] [--output DIRNAME] [RELPOS] [COUNT] ARCHIVE [MEMBER...]
  70. ar -M [ <mri-script ]
  71. The GNU 'ar' program creates, modifies, and extracts from archives.
  72. An "archive" is a single file holding a collection of other files in a
  73. structure that makes it possible to retrieve the original individual
  74. files (called "members" of the archive).
  75. The original files' contents, mode (permissions), timestamp, owner,
  76. and group are preserved in the archive, and can be restored on
  77. extraction.
  78. GNU 'ar' can maintain archives whose members have names of any
  79. length; however, depending on how 'ar' is configured on your system, a
  80. limit on member-name length may be imposed for compatibility with
  81. archive formats maintained with other tools. If it exists, the limit is
  82. often 15 characters (typical of formats related to a.out) or 16
  83. characters (typical of formats related to coff).
  84. 'ar' is considered a binary utility because archives of this sort are
  85. most often used as "libraries" holding commonly needed subroutines.
  86. 'ar' creates an index to the symbols defined in relocatable object
  87. modules in the archive when you specify the modifier 's'. Once created,
  88. this index is updated in the archive whenever 'ar' makes a change to its
  89. contents (save for the 'q' update operation). An archive with such an
  90. index speeds up linking to the library, and allows routines in the
  91. library to call each other without regard to their placement in the
  92. archive.
  93. You may use 'nm -s' or 'nm --print-armap' to list this index table.
  94. If an archive lacks the table, another form of 'ar' called 'ranlib' can
  95. be used to add just the table.
  96. GNU 'ar' can optionally create a _thin_ archive, which contains a
  97. symbol index and references to the original copies of the member files
  98. of the archive. This is useful for building libraries for use within a
  99. local build tree, where the relocatable objects are expected to remain
  100. available, and copying the contents of each object would only waste time
  101. and space.
  102. An archive can either be _thin_ or it can be normal. It cannot be
  103. both at the same time. Once an archive is created its format cannot be
  104. changed without first deleting it and then creating a new archive in its
  105. place.
  106. Thin archives are also _flattened_, so that adding one thin archive
  107. to another thin archive does not nest it, as would happen with a normal
  108. archive. Instead the elements of the first archive are added
  109. individually to the second archive.
  110. The paths to the elements of the archive are stored relative to the
  111. archive itself.
  112. GNU 'ar' is designed to be compatible with two different facilities.
  113. You can control its activity using command-line options, like the
  114. different varieties of 'ar' on Unix systems; or, if you specify the
  115. single command-line option '-M', you can control it with a script
  116. supplied via standard input, like the MRI "librarian" program.
  117. * Menu:
  118. * ar cmdline:: Controlling 'ar' on the command line
  119. * ar scripts:: Controlling 'ar' with a script
  120. 
  121. File: binutils.info, Node: ar cmdline, Next: ar scripts, Up: ar
  122. 1.1 Controlling 'ar' on the Command Line
  123. ========================================
  124. ar [-X32_64] [-]P[MOD] [--plugin NAME] [--target BFDNAME] [--output DIRNAME] [RELPOS] [COUNT] ARCHIVE [MEMBER...]
  125. When you use 'ar' in the Unix style, 'ar' insists on at least two
  126. arguments to execute: one keyletter specifying the _operation_
  127. (optionally accompanied by other keyletters specifying _modifiers_), and
  128. the archive name to act on.
  129. Most operations can also accept further MEMBER arguments, specifying
  130. particular files to operate on.
  131. GNU 'ar' allows you to mix the operation code P and modifier flags
  132. MOD in any order, within the first command-line argument.
  133. If you wish, you may begin the first command-line argument with a
  134. dash.
  135. The P keyletter specifies what operation to execute; it may be any of
  136. the following, but you must specify only one of them:
  137. 'd'
  138. _Delete_ modules from the archive. Specify the names of modules to
  139. be deleted as MEMBER...; the archive is untouched if you specify no
  140. files to delete.
  141. If you specify the 'v' modifier, 'ar' lists each module as it is
  142. deleted.
  143. 'm'
  144. Use this operation to _move_ members in an archive.
  145. The ordering of members in an archive can make a difference in how
  146. programs are linked using the library, if a symbol is defined in
  147. more than one member.
  148. If no modifiers are used with 'm', any members you name in the
  149. MEMBER arguments are moved to the _end_ of the archive; you can use
  150. the 'a', 'b', or 'i' modifiers to move them to a specified place
  151. instead.
  152. 'p'
  153. _Print_ the specified members of the archive, to the standard
  154. output file. If the 'v' modifier is specified, show the member
  155. name before copying its contents to standard output.
  156. If you specify no MEMBER arguments, all the files in the archive
  157. are printed.
  158. 'q'
  159. _Quick append_; Historically, add the files MEMBER... to the end of
  160. ARCHIVE, without checking for replacement.
  161. The modifiers 'a', 'b', and 'i' do _not_ affect this operation; new
  162. members are always placed at the end of the archive.
  163. The modifier 'v' makes 'ar' list each file as it is appended.
  164. Since the point of this operation is speed, implementations of 'ar'
  165. have the option of not updating the archive's symbol table if one
  166. exists. Too many different systems however assume that symbol
  167. tables are always up-to-date, so GNU 'ar' will rebuild the table
  168. even with a quick append.
  169. Note - GNU 'ar' treats the command 'qs' as a synonym for 'r' -
  170. replacing already existing files in the archive and appending new
  171. ones at the end.
  172. 'r'
  173. Insert the files MEMBER... into ARCHIVE (with _replacement_). This
  174. operation differs from 'q' in that any previously existing members
  175. are deleted if their names match those being added.
  176. If one of the files named in MEMBER... does not exist, 'ar'
  177. displays an error message, and leaves undisturbed any existing
  178. members of the archive matching that name.
  179. By default, new members are added at the end of the file; but you
  180. may use one of the modifiers 'a', 'b', or 'i' to request placement
  181. relative to some existing member.
  182. The modifier 'v' used with this operation elicits a line of output
  183. for each file inserted, along with one of the letters 'a' or 'r' to
  184. indicate whether the file was appended (no old member deleted) or
  185. replaced.
  186. 's'
  187. Add an index to the archive, or update it if it already exists.
  188. Note this command is an exception to the rule that there can only
  189. be one command letter, as it is possible to use it as either a
  190. command or a modifier. In either case it does the same thing.
  191. 't'
  192. Display a _table_ listing the contents of ARCHIVE, or those of the
  193. files listed in MEMBER... that are present in the archive.
  194. Normally only the member name is shown, but if the modifier 'O' is
  195. specified, then the corresponding offset of the member is also
  196. displayed. Finally, in order to see the modes (permissions),
  197. timestamp, owner, group, and size the 'v' modifier should be
  198. included.
  199. If you do not specify a MEMBER, all files in the archive are
  200. listed.
  201. If there is more than one file with the same name (say, 'fie') in
  202. an archive (say 'b.a'), 'ar t b.a fie' lists only the first
  203. instance; to see them all, you must ask for a complete listing--in
  204. our example, 'ar t b.a'.
  205. 'x'
  206. _Extract_ members (named MEMBER) from the archive. You can use the
  207. 'v' modifier with this operation, to request that 'ar' list each
  208. name as it extracts it.
  209. If you do not specify a MEMBER, all files in the archive are
  210. extracted.
  211. Files cannot be extracted from a thin archive, and there are
  212. restrictions on extracting from archives created with 'P': The
  213. paths must not be absolute, may not contain '..', and any
  214. subdirectories in the paths must exist. If it is desired to avoid
  215. these restrictions then used the '--output' option to specify an
  216. output directory.
  217. A number of modifiers (MOD) may immediately follow the P keyletter,
  218. to specify variations on an operation's behavior:
  219. 'a'
  220. Add new files _after_ an existing member of the archive. If you
  221. use the modifier 'a', the name of an existing archive member must
  222. be present as the RELPOS argument, before the ARCHIVE
  223. specification.
  224. 'b'
  225. Add new files _before_ an existing member of the archive. If you
  226. use the modifier 'b', the name of an existing archive member must
  227. be present as the RELPOS argument, before the ARCHIVE
  228. specification. (same as 'i').
  229. 'c'
  230. _Create_ the archive. The specified ARCHIVE is always created if
  231. it did not exist, when you request an update. But a warning is
  232. issued unless you specify in advance that you expect to create it,
  233. by using this modifier.
  234. 'D'
  235. Operate in _deterministic_ mode. When adding files and the archive
  236. index use zero for UIDs, GIDs, timestamps, and use consistent file
  237. modes for all files. When this option is used, if 'ar' is used
  238. with identical options and identical input files, multiple runs
  239. will create identical output files regardless of the input files'
  240. owners, groups, file modes, or modification times.
  241. If 'binutils' was configured with
  242. '--enable-deterministic-archives', then this mode is on by default.
  243. It can be disabled with the 'U' modifier, below.
  244. 'f'
  245. Truncate names in the archive. GNU 'ar' will normally permit file
  246. names of any length. This will cause it to create archives which
  247. are not compatible with the native 'ar' program on some systems.
  248. If this is a concern, the 'f' modifier may be used to truncate file
  249. names when putting them in the archive.
  250. 'i'
  251. Insert new files _before_ an existing member of the archive. If
  252. you use the modifier 'i', the name of an existing archive member
  253. must be present as the RELPOS argument, before the ARCHIVE
  254. specification. (same as 'b').
  255. 'l'
  256. This modifier is accepted but not used.
  257. 'N'
  258. Uses the COUNT parameter. This is used if there are multiple
  259. entries in the archive with the same name. Extract or delete
  260. instance COUNT of the given name from the archive.
  261. 'o'
  262. Preserve the _original_ dates of members when extracting them. If
  263. you do not specify this modifier, files extracted from the archive
  264. are stamped with the time of extraction.
  265. 'O'
  266. Display member offsets inside the archive. Use together with the
  267. 't' option.
  268. 'P'
  269. Use the full path name when matching or storing names in the
  270. archive. Archives created with full path names are not POSIX
  271. compliant, and thus may not work with tools other than up to date
  272. GNU tools. Modifying such archives with GNU 'ar' without using 'P'
  273. will remove the full path names unless the archive is a thin
  274. archive. Note that 'P' may be useful when adding files to a thin
  275. archive since 'r' without 'P' ignores the path when choosing which
  276. element to replace. Thus
  277. ar rcST archive.a subdir/file1 subdir/file2 file1
  278. will result in the first 'subdir/file1' being replaced with 'file1'
  279. from the current directory. Adding 'P' will prevent this
  280. replacement.
  281. 's'
  282. Write an object-file index into the archive, or update an existing
  283. one, even if no other change is made to the archive. You may use
  284. this modifier flag either with any operation, or alone. Running
  285. 'ar s' on an archive is equivalent to running 'ranlib' on it.
  286. 'S'
  287. Do not generate an archive symbol table. This can speed up
  288. building a large library in several steps. The resulting archive
  289. can not be used with the linker. In order to build a symbol table,
  290. you must omit the 'S' modifier on the last execution of 'ar', or
  291. you must run 'ranlib' on the archive.
  292. 'T'
  293. Make the specified ARCHIVE a _thin_ archive. If it already exists
  294. and is a regular archive, the existing members must be present in
  295. the same directory as ARCHIVE.
  296. 'u'
  297. Normally, 'ar r'... inserts all files listed into the archive. If
  298. you would like to insert _only_ those of the files you list that
  299. are newer than existing members of the same names, use this
  300. modifier. The 'u' modifier is allowed only for the operation 'r'
  301. (replace). In particular, the combination 'qu' is not allowed,
  302. since checking the timestamps would lose any speed advantage from
  303. the operation 'q'.
  304. 'U'
  305. Do _not_ operate in _deterministic_ mode. This is the inverse of
  306. the 'D' modifier, above: added files and the archive index will get
  307. their actual UID, GID, timestamp, and file mode values.
  308. This is the default unless 'binutils' was configured with
  309. '--enable-deterministic-archives'.
  310. 'v'
  311. This modifier requests the _verbose_ version of an operation. Many
  312. operations display additional information, such as filenames
  313. processed, when the modifier 'v' is appended.
  314. 'V'
  315. This modifier shows the version number of 'ar'.
  316. The 'ar' program also supports some command-line options which are
  317. neither modifiers nor actions, but which do change its behaviour in
  318. specific ways:
  319. '--help'
  320. Displays the list of command-line options supported by 'ar' and
  321. then exits.
  322. '--version'
  323. Displays the version information of 'ar' and then exits.
  324. '-X32_64'
  325. 'ar' ignores an initial option spelled '-X32_64', for compatibility
  326. with AIX. The behaviour produced by this option is the default for
  327. GNU 'ar'. 'ar' does not support any of the other '-X' options; in
  328. particular, it does not support '-X32' which is the default for AIX
  329. 'ar'.
  330. '--plugin NAME'
  331. The optional command-line switch '--plugin NAME' causes 'ar' to
  332. load the plugin called NAME which adds support for more file
  333. formats, including object files with link-time optimization
  334. information.
  335. This option is only available if the toolchain has been built with
  336. plugin support enabled.
  337. If '--plugin' is not provided, but plugin support has been enabled
  338. then 'ar' iterates over the files in '${libdir}/bfd-plugins' in
  339. alphabetic order and the first plugin that claims the object in
  340. question is used.
  341. Please note that this plugin search directory is _not_ the one used
  342. by 'ld''s '-plugin' option. In order to make 'ar' use the linker
  343. plugin it must be copied into the '${libdir}/bfd-plugins'
  344. directory. For GCC based compilations the linker plugin is called
  345. 'liblto_plugin.so.0.0.0'. For Clang based compilations it is
  346. called 'LLVMgold.so'. The GCC plugin is always backwards
  347. compatible with earlier versions, so it is sufficient to just copy
  348. the newest one.
  349. '--target TARGET'
  350. The optional command-line switch '--target BFDNAME' specifies that
  351. the archive members are in an object code format different from
  352. your system's default format. See *Note Target Selection::, for
  353. more information.
  354. '--output DIRNAME'
  355. The '--output' option can be used to specify a path to a directory
  356. into which archive members should be extracted. If this option is
  357. not specified then the current directory will be used.
  358. Note - although the presence of this option does imply a 'x'
  359. extraction operation that option must still be included on the
  360. command line.
  361. 
  362. File: binutils.info, Node: ar scripts, Prev: ar cmdline, Up: ar
  363. 1.2 Controlling 'ar' with a Script
  364. ==================================
  365. ar -M [ <SCRIPT ]
  366. If you use the single command-line option '-M' with 'ar', you can
  367. control its operation with a rudimentary command language. This form of
  368. 'ar' operates interactively if standard input is coming directly from a
  369. terminal. During interactive use, 'ar' prompts for input (the prompt is
  370. 'AR >'), and continues executing even after errors. If you redirect
  371. standard input to a script file, no prompts are issued, and 'ar'
  372. abandons execution (with a nonzero exit code) on any error.
  373. The 'ar' command language is _not_ designed to be equivalent to the
  374. command-line options; in fact, it provides somewhat less control over
  375. archives. The only purpose of the command language is to ease the
  376. transition to GNU 'ar' for developers who already have scripts written
  377. for the MRI "librarian" program.
  378. The syntax for the 'ar' command language is straightforward:
  379. * commands are recognized in upper or lower case; for example, 'LIST'
  380. is the same as 'list'. In the following descriptions, commands are
  381. shown in upper case for clarity.
  382. * a single command may appear on each line; it is the first word on
  383. the line.
  384. * empty lines are allowed, and have no effect.
  385. * comments are allowed; text after either of the characters '*' or
  386. ';' is ignored.
  387. * Whenever you use a list of names as part of the argument to an 'ar'
  388. command, you can separate the individual names with either commas
  389. or blanks. Commas are shown in the explanations below, for
  390. clarity.
  391. * '+' is used as a line continuation character; if '+' appears at the
  392. end of a line, the text on the following line is considered part of
  393. the current command.
  394. Here are the commands you can use in 'ar' scripts, or when using 'ar'
  395. interactively. Three of them have special significance:
  396. 'OPEN' or 'CREATE' specify a "current archive", which is a temporary
  397. file required for most of the other commands.
  398. 'SAVE' commits the changes so far specified by the script. Prior to
  399. 'SAVE', commands affect only the temporary copy of the current archive.
  400. 'ADDLIB ARCHIVE'
  401. 'ADDLIB ARCHIVE (MODULE, MODULE, ... MODULE)'
  402. Add all the contents of ARCHIVE (or, if specified, each named
  403. MODULE from ARCHIVE) to the current archive.
  404. Requires prior use of 'OPEN' or 'CREATE'.
  405. 'ADDMOD MEMBER, MEMBER, ... MEMBER'
  406. Add each named MEMBER as a module in the current archive.
  407. Requires prior use of 'OPEN' or 'CREATE'.
  408. 'CLEAR'
  409. Discard the contents of the current archive, canceling the effect
  410. of any operations since the last 'SAVE'. May be executed (with no
  411. effect) even if no current archive is specified.
  412. 'CREATE ARCHIVE'
  413. Creates an archive, and makes it the current archive (required for
  414. many other commands). The new archive is created with a temporary
  415. name; it is not actually saved as ARCHIVE until you use 'SAVE'.
  416. You can overwrite existing archives; similarly, the contents of any
  417. existing file named ARCHIVE will not be destroyed until 'SAVE'.
  418. 'DELETE MODULE, MODULE, ... MODULE'
  419. Delete each listed MODULE from the current archive; equivalent to
  420. 'ar -d ARCHIVE MODULE ... MODULE'.
  421. Requires prior use of 'OPEN' or 'CREATE'.
  422. 'DIRECTORY ARCHIVE (MODULE, ... MODULE)'
  423. 'DIRECTORY ARCHIVE (MODULE, ... MODULE) OUTPUTFILE'
  424. List each named MODULE present in ARCHIVE. The separate command
  425. 'VERBOSE' specifies the form of the output: when verbose output is
  426. off, output is like that of 'ar -t ARCHIVE MODULE...'. When
  427. verbose output is on, the listing is like 'ar -tv ARCHIVE
  428. MODULE...'.
  429. Output normally goes to the standard output stream; however, if you
  430. specify OUTPUTFILE as a final argument, 'ar' directs the output to
  431. that file.
  432. 'END'
  433. Exit from 'ar', with a '0' exit code to indicate successful
  434. completion. This command does not save the output file; if you
  435. have changed the current archive since the last 'SAVE' command,
  436. those changes are lost.
  437. 'EXTRACT MODULE, MODULE, ... MODULE'
  438. Extract each named MODULE from the current archive, writing them
  439. into the current directory as separate files. Equivalent to 'ar -x
  440. ARCHIVE MODULE...'.
  441. Requires prior use of 'OPEN' or 'CREATE'.
  442. 'LIST'
  443. Display full contents of the current archive, in "verbose" style
  444. regardless of the state of 'VERBOSE'. The effect is like 'ar tv
  445. ARCHIVE'. (This single command is a GNU 'ar' enhancement, rather
  446. than present for MRI compatibility.)
  447. Requires prior use of 'OPEN' or 'CREATE'.
  448. 'OPEN ARCHIVE'
  449. Opens an existing archive for use as the current archive (required
  450. for many other commands). Any changes as the result of subsequent
  451. commands will not actually affect ARCHIVE until you next use
  452. 'SAVE'.
  453. 'REPLACE MODULE, MODULE, ... MODULE'
  454. In the current archive, replace each existing MODULE (named in the
  455. 'REPLACE' arguments) from files in the current working directory.
  456. To execute this command without errors, both the file, and the
  457. module in the current archive, must exist.
  458. Requires prior use of 'OPEN' or 'CREATE'.
  459. 'VERBOSE'
  460. Toggle an internal flag governing the output from 'DIRECTORY'.
  461. When the flag is on, 'DIRECTORY' output matches output from 'ar -tv
  462. '....
  463. 'SAVE'
  464. Commit your changes to the current archive, and actually save it as
  465. a file with the name specified in the last 'CREATE' or 'OPEN'
  466. command.
  467. Requires prior use of 'OPEN' or 'CREATE'.
  468. 
  469. File: binutils.info, Node: nm, Next: objcopy, Prev: ar, Up: Top
  470. 2 nm
  471. ****
  472. nm [-A|-o|--print-file-name] [-a|--debug-syms]
  473. [-B|--format=bsd] [-C|--demangle[=STYLE]]
  474. [-D|--dynamic] [-fFORMAT|--format=FORMAT]
  475. [-g|--extern-only] [-h|--help]
  476. [-l|--line-numbers] [--inlines]
  477. [-n|-v|--numeric-sort]
  478. [-P|--portability] [-p|--no-sort]
  479. [-r|--reverse-sort] [-S|--print-size]
  480. [-s|--print-armap] [-t RADIX|--radix=RADIX]
  481. [-u|--undefined-only] [-V|--version]
  482. [-X 32_64] [--defined-only] [--no-demangle]
  483. [--plugin NAME]
  484. [--no-recurse-limit|--recurse-limit]]
  485. [--size-sort] [--special-syms]
  486. [--synthetic] [--with-symbol-versions] [--target=BFDNAME]
  487. [OBJFILE...]
  488. GNU 'nm' lists the symbols from object files OBJFILE.... If no
  489. object files are listed as arguments, 'nm' assumes the file 'a.out'.
  490. For each symbol, 'nm' shows:
  491. * The symbol value, in the radix selected by options (see below), or
  492. hexadecimal by default.
  493. * The symbol type. At least the following types are used; others
  494. are, as well, depending on the object file format. If lowercase,
  495. the symbol is usually local; if uppercase, the symbol is global
  496. (external). There are however a few lowercase symbols that are
  497. shown for special global symbols ('u', 'v' and 'w').
  498. 'A'
  499. The symbol's value is absolute, and will not be changed by
  500. further linking.
  501. 'B'
  502. 'b'
  503. The symbol is in the BSS data section. This section typically
  504. contains zero-initialized or uninitialized data, although the
  505. exact behavior is system dependent.
  506. 'C'
  507. The symbol is common. Common symbols are uninitialized data.
  508. When linking, multiple common symbols may appear with the same
  509. name. If the symbol is defined anywhere, the common symbols
  510. are treated as undefined references. For more details on
  511. common symbols, see the discussion of -warn-common in *note
  512. Linker options: (ld.info)Options.
  513. 'D'
  514. 'd'
  515. The symbol is in the initialized data section.
  516. 'G'
  517. 'g'
  518. The symbol is in an initialized data section for small
  519. objects. Some object file formats permit more efficient
  520. access to small data objects, such as a global int variable as
  521. opposed to a large global array.
  522. 'i'
  523. For PE format files this indicates that the symbol is in a
  524. section specific to the implementation of DLLs. For ELF
  525. format files this indicates that the symbol is an indirect
  526. function. This is a GNU extension to the standard set of ELF
  527. symbol types. It indicates a symbol which if referenced by a
  528. relocation does not evaluate to its address, but instead must
  529. be invoked at runtime. The runtime execution will then return
  530. the value to be used in the relocation.
  531. 'I'
  532. The symbol is an indirect reference to another symbol.
  533. 'N'
  534. The symbol is a debugging symbol.
  535. 'n'
  536. The symbol is in the read-only data section.
  537. 'p'
  538. The symbol is in a stack unwind section.
  539. 'R'
  540. 'r'
  541. The symbol is in a read only data section.
  542. 'S'
  543. 's'
  544. The symbol is in an uninitialized or zero-initialized data
  545. section for small objects.
  546. 'T'
  547. 't'
  548. The symbol is in the text (code) section.
  549. 'U'
  550. The symbol is undefined.
  551. 'u'
  552. The symbol is a unique global symbol. This is a GNU extension
  553. to the standard set of ELF symbol bindings. For such a symbol
  554. the dynamic linker will make sure that in the entire process
  555. there is just one symbol with this name and type in use.
  556. 'V'
  557. 'v'
  558. The symbol is a weak object. When a weak defined symbol is
  559. linked with a normal defined symbol, the normal defined symbol
  560. is used with no error. When a weak undefined symbol is linked
  561. and the symbol is not defined, the value of the weak symbol
  562. becomes zero with no error. On some systems, uppercase
  563. indicates that a default value has been specified.
  564. 'W'
  565. 'w'
  566. The symbol is a weak symbol that has not been specifically
  567. tagged as a weak object symbol. When a weak defined symbol is
  568. linked with a normal defined symbol, the normal defined symbol
  569. is used with no error. When a weak undefined symbol is linked
  570. and the symbol is not defined, the value of the symbol is
  571. determined in a system-specific manner without error. On some
  572. systems, uppercase indicates that a default value has been
  573. specified.
  574. '-'
  575. The symbol is a stabs symbol in an a.out object file. In this
  576. case, the next values printed are the stabs other field, the
  577. stabs desc field, and the stab type. Stabs symbols are used
  578. to hold debugging information.
  579. '?'
  580. The symbol type is unknown, or object file format specific.
  581. * The symbol name.
  582. The long and short forms of options, shown here as alternatives, are
  583. equivalent.
  584. '-A'
  585. '-o'
  586. '--print-file-name'
  587. Precede each symbol by the name of the input file (or archive
  588. member) in which it was found, rather than identifying the input
  589. file once only, before all of its symbols.
  590. '-a'
  591. '--debug-syms'
  592. Display all symbols, even debugger-only symbols; normally these are
  593. not listed.
  594. '-B'
  595. The same as '--format=bsd' (for compatibility with the MIPS 'nm').
  596. '-C'
  597. '--demangle[=STYLE]'
  598. Decode ("demangle") low-level symbol names into user-level names.
  599. Besides removing any initial underscore prepended by the system,
  600. this makes C++ function names readable. Different compilers have
  601. different mangling styles. The optional demangling style argument
  602. can be used to choose an appropriate demangling style for your
  603. compiler. *Note c++filt::, for more information on demangling.
  604. '--no-demangle'
  605. Do not demangle low-level symbol names. This is the default.
  606. '--recurse-limit'
  607. '--no-recurse-limit'
  608. '--recursion-limit'
  609. '--no-recursion-limit'
  610. Enables or disables a limit on the amount of recursion performed
  611. whilst demangling strings. Since the name mangling formats allow
  612. for an inifinite level of recursion it is possible to create
  613. strings whose decoding will exhaust the amount of stack space
  614. available on the host machine, triggering a memory fault. The
  615. limit tries to prevent this from happening by restricting recursion
  616. to 2048 levels of nesting.
  617. The default is for this limit to be enabled, but disabling it may
  618. be necessary in order to demangle truly complicated names. Note
  619. however that if the recursion limit is disabled then stack
  620. exhaustion is possible and any bug reports about such an event will
  621. be rejected.
  622. '-D'
  623. '--dynamic'
  624. Display the dynamic symbols rather than the normal symbols. This
  625. is only meaningful for dynamic objects, such as certain types of
  626. shared libraries.
  627. '-f FORMAT'
  628. '--format=FORMAT'
  629. Use the output format FORMAT, which can be 'bsd', 'sysv', or
  630. 'posix'. The default is 'bsd'. Only the first character of FORMAT
  631. is significant; it can be either upper or lower case.
  632. '-g'
  633. '--extern-only'
  634. Display only external symbols.
  635. '-h'
  636. '--help'
  637. Show a summary of the options to 'nm' and exit.
  638. '-l'
  639. '--line-numbers'
  640. For each symbol, use debugging information to try to find a
  641. filename and line number. For a defined symbol, look for the line
  642. number of the address of the symbol. For an undefined symbol, look
  643. for the line number of a relocation entry which refers to the
  644. symbol. If line number information can be found, print it after
  645. the other symbol information.
  646. '--inlines'
  647. When option '-l' is active, if the address belongs to a function
  648. that was inlined, then this option causes the source information
  649. for all enclosing scopes back to the first non-inlined function to
  650. be printed as well. For example, if 'main' inlines 'callee1' which
  651. inlines 'callee2', and address is from 'callee2', the source
  652. information for 'callee1' and 'main' will also be printed.
  653. '-n'
  654. '-v'
  655. '--numeric-sort'
  656. Sort symbols numerically by their addresses, rather than
  657. alphabetically by their names.
  658. '-p'
  659. '--no-sort'
  660. Do not bother to sort the symbols in any order; print them in the
  661. order encountered.
  662. '-P'
  663. '--portability'
  664. Use the POSIX.2 standard output format instead of the default
  665. format. Equivalent to '-f posix'.
  666. '-r'
  667. '--reverse-sort'
  668. Reverse the order of the sort (whether numeric or alphabetic); let
  669. the last come first.
  670. '-S'
  671. '--print-size'
  672. Print both value and size of defined symbols for the 'bsd' output
  673. style. This option has no effect for object formats that do not
  674. record symbol sizes, unless '--size-sort' is also used in which
  675. case a calculated size is displayed.
  676. '-s'
  677. '--print-armap'
  678. When listing symbols from archive members, include the index: a
  679. mapping (stored in the archive by 'ar' or 'ranlib') of which
  680. modules contain definitions for which names.
  681. '-t RADIX'
  682. '--radix=RADIX'
  683. Use RADIX as the radix for printing the symbol values. It must be
  684. 'd' for decimal, 'o' for octal, or 'x' for hexadecimal.
  685. '-u'
  686. '--undefined-only'
  687. Display only undefined symbols (those external to each object
  688. file).
  689. '-V'
  690. '--version'
  691. Show the version number of 'nm' and exit.
  692. '-X'
  693. This option is ignored for compatibility with the AIX version of
  694. 'nm'. It takes one parameter which must be the string '32_64'.
  695. The default mode of AIX 'nm' corresponds to '-X 32', which is not
  696. supported by GNU 'nm'.
  697. '--defined-only'
  698. Display only defined symbols for each object file.
  699. '--plugin NAME'
  700. Load the plugin called NAME to add support for extra target types.
  701. This option is only available if the toolchain has been built with
  702. plugin support enabled.
  703. If '--plugin' is not provided, but plugin support has been enabled
  704. then 'nm' iterates over the files in '${libdir}/bfd-plugins' in
  705. alphabetic order and the first plugin that claims the object in
  706. question is used.
  707. Please note that this plugin search directory is _not_ the one used
  708. by 'ld''s '-plugin' option. In order to make 'nm' use the linker
  709. plugin it must be copied into the '${libdir}/bfd-plugins'
  710. directory. For GCC based compilations the linker plugin is called
  711. 'liblto_plugin.so.0.0.0'. For Clang based compilations it is
  712. called 'LLVMgold.so'. The GCC plugin is always backwards
  713. compatible with earlier versions, so it is sufficient to just copy
  714. the newest one.
  715. '--size-sort'
  716. Sort symbols by size. For ELF objects symbol sizes are read from
  717. the ELF, for other object types the symbol sizes are computed as
  718. the difference between the value of the symbol and the value of the
  719. symbol with the next higher value. If the 'bsd' output format is
  720. used the size of the symbol is printed, rather than the value, and
  721. '-S' must be used in order both size and value to be printed.
  722. '--special-syms'
  723. Display symbols which have a target-specific special meaning.
  724. These symbols are usually used by the target for some special
  725. processing and are not normally helpful when included in the normal
  726. symbol lists. For example for ARM targets this option would skip
  727. the mapping symbols used to mark transitions between ARM code,
  728. THUMB code and data.
  729. '--synthetic'
  730. Include synthetic symbols in the output. These are special symbols
  731. created by the linker for various purposes. They are not shown by
  732. default since they are not part of the binary's original source
  733. code.
  734. '--with-symbol-versions'
  735. Enables the display of symbol version information if any exists.
  736. The version string is displayed as a suffix to the symbol name,
  737. preceeded by an @ character. For example 'foo@VER_1'. If the
  738. version is the default version to be used when resolving
  739. unversioned references to the symbol then it is displayed as a
  740. suffix preceeded by two @ characters. For example 'foo@@VER_2'.
  741. '--target=BFDNAME'
  742. Specify an object code format other than your system's default
  743. format. *Note Target Selection::, for more information.
  744. 
  745. File: binutils.info, Node: objcopy, Next: objdump, Prev: nm, Up: Top
  746. 3 objcopy
  747. *********
  748. objcopy [-F BFDNAME|--target=BFDNAME]
  749. [-I BFDNAME|--input-target=BFDNAME]
  750. [-O BFDNAME|--output-target=BFDNAME]
  751. [-B BFDARCH|--binary-architecture=BFDARCH]
  752. [-S|--strip-all]
  753. [-g|--strip-debug]
  754. [--strip-unneeded]
  755. [-K SYMBOLNAME|--keep-symbol=SYMBOLNAME]
  756. [-N SYMBOLNAME|--strip-symbol=SYMBOLNAME]
  757. [--strip-unneeded-symbol=SYMBOLNAME]
  758. [-G SYMBOLNAME|--keep-global-symbol=SYMBOLNAME]
  759. [--localize-hidden]
  760. [-L SYMBOLNAME|--localize-symbol=SYMBOLNAME]
  761. [--globalize-symbol=SYMBOLNAME]
  762. [--globalize-symbols=FILENAME]
  763. [-W SYMBOLNAME|--weaken-symbol=SYMBOLNAME]
  764. [-w|--wildcard]
  765. [-x|--discard-all]
  766. [-X|--discard-locals]
  767. [-b BYTE|--byte=BYTE]
  768. [-i [BREADTH]|--interleave[=BREADTH]]
  769. [--interleave-width=WIDTH]
  770. [-j SECTIONPATTERN|--only-section=SECTIONPATTERN]
  771. [-R SECTIONPATTERN|--remove-section=SECTIONPATTERN]
  772. [--keep-section=SECTIONPATTERN]
  773. [--remove-relocations=SECTIONPATTERN]
  774. [-p|--preserve-dates]
  775. [-D|--enable-deterministic-archives]
  776. [-U|--disable-deterministic-archives]
  777. [--debugging]
  778. [--gap-fill=VAL]
  779. [--pad-to=ADDRESS]
  780. [--set-start=VAL]
  781. [--adjust-start=INCR]
  782. [--change-addresses=INCR]
  783. [--change-section-address SECTIONPATTERN{=,+,-}VAL]
  784. [--change-section-lma SECTIONPATTERN{=,+,-}VAL]
  785. [--change-section-vma SECTIONPATTERN{=,+,-}VAL]
  786. [--change-warnings] [--no-change-warnings]
  787. [--set-section-flags SECTIONPATTERN=FLAGS]
  788. [--set-section-alignment SECTIONPATTERN=ALIGN]
  789. [--add-section SECTIONNAME=FILENAME]
  790. [--dump-section SECTIONNAME=FILENAME]
  791. [--update-section SECTIONNAME=FILENAME]
  792. [--rename-section OLDNAME=NEWNAME[,FLAGS]]
  793. [--long-section-names {enable,disable,keep}]
  794. [--change-leading-char] [--remove-leading-char]
  795. [--reverse-bytes=NUM]
  796. [--srec-len=IVAL] [--srec-forceS3]
  797. [--redefine-sym OLD=NEW]
  798. [--redefine-syms=FILENAME]
  799. [--weaken]
  800. [--keep-symbols=FILENAME]
  801. [--strip-symbols=FILENAME]
  802. [--strip-unneeded-symbols=FILENAME]
  803. [--keep-global-symbols=FILENAME]
  804. [--localize-symbols=FILENAME]
  805. [--weaken-symbols=FILENAME]
  806. [--add-symbol NAME=[SECTION:]VALUE[,FLAGS]]
  807. [--alt-machine-code=INDEX]
  808. [--prefix-symbols=STRING]
  809. [--prefix-sections=STRING]
  810. [--prefix-alloc-sections=STRING]
  811. [--add-gnu-debuglink=PATH-TO-FILE]
  812. [--keep-file-symbols]
  813. [--only-keep-debug]
  814. [--strip-dwo]
  815. [--extract-dwo]
  816. [--extract-symbol]
  817. [--writable-text]
  818. [--readonly-text]
  819. [--pure]
  820. [--impure]
  821. [--file-alignment=NUM]
  822. [--heap=SIZE]
  823. [--image-base=ADDRESS]
  824. [--section-alignment=NUM]
  825. [--stack=SIZE]
  826. [--subsystem=WHICH:MAJOR.MINOR]
  827. [--compress-debug-sections]
  828. [--decompress-debug-sections]
  829. [--elf-stt-common=VAL]
  830. [--merge-notes]
  831. [--no-merge-notes]
  832. [--verilog-data-width=VAL]
  833. [-v|--verbose]
  834. [-V|--version]
  835. [--help] [--info]
  836. INFILE [OUTFILE]
  837. The GNU 'objcopy' utility copies the contents of an object file to
  838. another. 'objcopy' uses the GNU BFD Library to read and write the
  839. object files. It can write the destination object file in a format
  840. different from that of the source object file. The exact behavior of
  841. 'objcopy' is controlled by command-line options. Note that 'objcopy'
  842. should be able to copy a fully linked file between any two formats.
  843. However, copying a relocatable object file between any two formats may
  844. not work as expected.
  845. 'objcopy' creates temporary files to do its translations and deletes
  846. them afterward. 'objcopy' uses BFD to do all its translation work; it
  847. has access to all the formats described in BFD and thus is able to
  848. recognize most formats without being told explicitly. *Note BFD:
  849. (ld.info)BFD.
  850. 'objcopy' can be used to generate S-records by using an output target
  851. of 'srec' (e.g., use '-O srec').
  852. 'objcopy' can be used to generate a raw binary file by using an
  853. output target of 'binary' (e.g., use '-O binary'). When 'objcopy'
  854. generates a raw binary file, it will essentially produce a memory dump
  855. of the contents of the input object file. All symbols and relocation
  856. information will be discarded. The memory dump will start at the load
  857. address of the lowest section copied into the output file.
  858. When generating an S-record or a raw binary file, it may be helpful
  859. to use '-S' to remove sections containing debugging information. In
  860. some cases '-R' will be useful to remove sections which contain
  861. information that is not needed by the binary file.
  862. Note--'objcopy' is not able to change the endianness of its input
  863. files. If the input format has an endianness (some formats do not),
  864. 'objcopy' can only copy the inputs into file formats that have the same
  865. endianness or which have no endianness (e.g., 'srec'). (However, see
  866. the '--reverse-bytes' option.)
  867. 'INFILE'
  868. 'OUTFILE'
  869. The input and output files, respectively. If you do not specify
  870. OUTFILE, 'objcopy' creates a temporary file and destructively
  871. renames the result with the name of INFILE.
  872. '-I BFDNAME'
  873. '--input-target=BFDNAME'
  874. Consider the source file's object format to be BFDNAME, rather than
  875. attempting to deduce it. *Note Target Selection::, for more
  876. information.
  877. '-O BFDNAME'
  878. '--output-target=BFDNAME'
  879. Write the output file using the object format BFDNAME. *Note
  880. Target Selection::, for more information.
  881. '-F BFDNAME'
  882. '--target=BFDNAME'
  883. Use BFDNAME as the object format for both the input and the output
  884. file; i.e., simply transfer data from source to destination with no
  885. translation. *Note Target Selection::, for more information.
  886. '-B BFDARCH'
  887. '--binary-architecture=BFDARCH'
  888. Useful when transforming a architecture-less input file into an
  889. object file. In this case the output architecture can be set to
  890. BFDARCH. This option will be ignored if the input file has a known
  891. BFDARCH. You can access this binary data inside a program by
  892. referencing the special symbols that are created by the conversion
  893. process. These symbols are called _binary_OBJFILE_start,
  894. _binary_OBJFILE_end and _binary_OBJFILE_size. e.g. you can
  895. transform a picture file into an object file and then access it in
  896. your code using these symbols.
  897. '-j SECTIONPATTERN'
  898. '--only-section=SECTIONPATTERN'
  899. Copy only the indicated sections from the input file to the output
  900. file. This option may be given more than once. Note that using
  901. this option inappropriately may make the output file unusable.
  902. Wildcard characters are accepted in SECTIONPATTERN.
  903. If the first character of SECTIONPATTERN is the exclamation point
  904. (!) then matching sections will not be copied, even if earlier use
  905. of '--only-section' on the same command line would otherwise copy
  906. it. For example:
  907. --only-section=.text.* --only-section=!.text.foo
  908. will copy all sectinos maching '.text.*' but not the section
  909. '.text.foo'.
  910. '-R SECTIONPATTERN'
  911. '--remove-section=SECTIONPATTERN'
  912. Remove any section matching SECTIONPATTERN from the output file.
  913. This option may be given more than once. Note that using this
  914. option inappropriately may make the output file unusable. Wildcard
  915. characters are accepted in SECTIONPATTERN. Using both the '-j' and
  916. '-R' options together results in undefined behaviour.
  917. If the first character of SECTIONPATTERN is the exclamation point
  918. (!) then matching sections will not be removed even if an earlier
  919. use of '--remove-section' on the same command line would otherwise
  920. remove it. For example:
  921. --remove-section=.text.* --remove-section=!.text.foo
  922. will remove all sections matching the pattern '.text.*', but will
  923. not remove the section '.text.foo'.
  924. '--keep-section=SECTIONPATTERN'
  925. When removing sections from the output file, keep sections that
  926. match SECTIONPATTERN.
  927. '--remove-relocations=SECTIONPATTERN'
  928. Remove non-dynamic relocations from the output file for any section
  929. matching SECTIONPATTERN. This option may be given more than once.
  930. Note that using this option inappropriately may make the output
  931. file unusable, and attempting to remove a dynamic relocation
  932. section such as '.rela.plt' from an executable or shared library
  933. with '--remove-relocations=.plt' will not work. Wildcard
  934. characters are accepted in SECTIONPATTERN. For example:
  935. --remove-relocations=.text.*
  936. will remove the relocations for all sections matching the pattern
  937. '.text.*'.
  938. If the first character of SECTIONPATTERN is the exclamation point
  939. (!) then matching sections will not have their relocation removed
  940. even if an earlier use of '--remove-relocations' on the same
  941. command line would otherwise cause the relocations to be removed.
  942. For example:
  943. --remove-relocations=.text.* --remove-relocations=!.text.foo
  944. will remove all relocations for sections matching the pattern
  945. '.text.*', but will not remove relocations for the section
  946. '.text.foo'.
  947. '-S'
  948. '--strip-all'
  949. Do not copy relocation and symbol information from the source file.
  950. '-g'
  951. '--strip-debug'
  952. Do not copy debugging symbols or sections from the source file.
  953. '--strip-unneeded'
  954. Strip all symbols that are not needed for relocation processing.
  955. '-K SYMBOLNAME'
  956. '--keep-symbol=SYMBOLNAME'
  957. When stripping symbols, keep symbol SYMBOLNAME even if it would
  958. normally be stripped. This option may be given more than once.
  959. '-N SYMBOLNAME'
  960. '--strip-symbol=SYMBOLNAME'
  961. Do not copy symbol SYMBOLNAME from the source file. This option
  962. may be given more than once.
  963. '--strip-unneeded-symbol=SYMBOLNAME'
  964. Do not copy symbol SYMBOLNAME from the source file unless it is
  965. needed by a relocation. This option may be given more than once.
  966. '-G SYMBOLNAME'
  967. '--keep-global-symbol=SYMBOLNAME'
  968. Keep only symbol SYMBOLNAME global. Make all other symbols local
  969. to the file, so that they are not visible externally. This option
  970. may be given more than once. Note: this option cannot be used in
  971. conjunction with the '--globalize-symbol' or '--globalize-symbols'
  972. options.
  973. '--localize-hidden'
  974. In an ELF object, mark all symbols that have hidden or internal
  975. visibility as local. This option applies on top of symbol-specific
  976. localization options such as '-L'.
  977. '-L SYMBOLNAME'
  978. '--localize-symbol=SYMBOLNAME'
  979. Convert a global or weak symbol called SYMBOLNAME into a local
  980. symbol, so that it is not visible externally. This option may be
  981. given more than once. Note - unique symbols are not converted.
  982. '-W SYMBOLNAME'
  983. '--weaken-symbol=SYMBOLNAME'
  984. Make symbol SYMBOLNAME weak. This option may be given more than
  985. once.
  986. '--globalize-symbol=SYMBOLNAME'
  987. Give symbol SYMBOLNAME global scoping so that it is visible outside
  988. of the file in which it is defined. This option may be given more
  989. than once. Note: this option cannot be used in conjunction with
  990. the '-G' or '--keep-global-symbol' options.
  991. '-w'
  992. '--wildcard'
  993. Permit regular expressions in SYMBOLNAMEs used in other command
  994. line options. The question mark (?), asterisk (*), backslash (\)
  995. and square brackets ([]) operators can be used anywhere in the
  996. symbol name. If the first character of the symbol name is the
  997. exclamation point (!) then the sense of the switch is reversed for
  998. that symbol. For example:
  999. -w -W !foo -W fo*
  1000. would cause objcopy to weaken all symbols that start with "fo"
  1001. except for the symbol "foo".
  1002. '-x'
  1003. '--discard-all'
  1004. Do not copy non-global symbols from the source file.
  1005. '-X'
  1006. '--discard-locals'
  1007. Do not copy compiler-generated local symbols. (These usually start
  1008. with 'L' or '.'.)
  1009. '-b BYTE'
  1010. '--byte=BYTE'
  1011. If interleaving has been enabled via the '--interleave' option then
  1012. start the range of bytes to keep at the BYTEth byte. BYTE can be
  1013. in the range from 0 to BREADTH-1, where BREADTH is the value given
  1014. by the '--interleave' option.
  1015. '-i [BREADTH]'
  1016. '--interleave[=BREADTH]'
  1017. Only copy a range out of every BREADTH bytes. (Header data is not
  1018. affected). Select which byte in the range begins the copy with the
  1019. '--byte' option. Select the width of the range with the
  1020. '--interleave-width' option.
  1021. This option is useful for creating files to program ROM. It is
  1022. typically used with an 'srec' output target. Note that 'objcopy'
  1023. will complain if you do not specify the '--byte' option as well.
  1024. The default interleave breadth is 4, so with '--byte' set to 0,
  1025. 'objcopy' would copy the first byte out of every four bytes from
  1026. the input to the output.
  1027. '--interleave-width=WIDTH'
  1028. When used with the '--interleave' option, copy WIDTH bytes at a
  1029. time. The start of the range of bytes to be copied is set by the
  1030. '--byte' option, and the extent of the range is set with the
  1031. '--interleave' option.
  1032. The default value for this option is 1. The value of WIDTH plus
  1033. the BYTE value set by the '--byte' option must not exceed the
  1034. interleave breadth set by the '--interleave' option.
  1035. This option can be used to create images for two 16-bit flashes
  1036. interleaved in a 32-bit bus by passing '-b 0 -i 4
  1037. --interleave-width=2' and '-b 2 -i 4 --interleave-width=2' to two
  1038. 'objcopy' commands. If the input was '12345678' then the outputs
  1039. would be '1256' and '3478' respectively.
  1040. '-p'
  1041. '--preserve-dates'
  1042. Set the access and modification dates of the output file to be the
  1043. same as those of the input file.
  1044. '-D'
  1045. '--enable-deterministic-archives'
  1046. Operate in _deterministic_ mode. When copying archive members and
  1047. writing the archive index, use zero for UIDs, GIDs, timestamps, and
  1048. use consistent file modes for all files.
  1049. If 'binutils' was configured with
  1050. '--enable-deterministic-archives', then this mode is on by default.
  1051. It can be disabled with the '-U' option, below.
  1052. '-U'
  1053. '--disable-deterministic-archives'
  1054. Do _not_ operate in _deterministic_ mode. This is the inverse of
  1055. the '-D' option, above: when copying archive members and writing
  1056. the archive index, use their actual UID, GID, timestamp, and file
  1057. mode values.
  1058. This is the default unless 'binutils' was configured with
  1059. '--enable-deterministic-archives'.
  1060. '--debugging'
  1061. Convert debugging information, if possible. This is not the
  1062. default because only certain debugging formats are supported, and
  1063. the conversion process can be time consuming.
  1064. '--gap-fill VAL'
  1065. Fill gaps between sections with VAL. This operation applies to the
  1066. _load address_ (LMA) of the sections. It is done by increasing the
  1067. size of the section with the lower address, and filling in the
  1068. extra space created with VAL.
  1069. '--pad-to ADDRESS'
  1070. Pad the output file up to the load address ADDRESS. This is done
  1071. by increasing the size of the last section. The extra space is
  1072. filled in with the value specified by '--gap-fill' (default zero).
  1073. '--set-start VAL'
  1074. Set the start address (also known as the entry address) of the new
  1075. file to VAL. Not all object file formats support setting the start
  1076. address.
  1077. '--change-start INCR'
  1078. '--adjust-start INCR'
  1079. Change the start address (also known as the entry address) by
  1080. adding INCR. Not all object file formats support setting the start
  1081. address.
  1082. '--change-addresses INCR'
  1083. '--adjust-vma INCR'
  1084. Change the VMA and LMA addresses of all sections, as well as the
  1085. start address, by adding INCR. Some object file formats do not
  1086. permit section addresses to be changed arbitrarily. Note that this
  1087. does not relocate the sections; if the program expects sections to
  1088. be loaded at a certain address, and this option is used to change
  1089. the sections such that they are loaded at a different address, the
  1090. program may fail.
  1091. '--change-section-address SECTIONPATTERN{=,+,-}VAL'
  1092. '--adjust-section-vma SECTIONPATTERN{=,+,-}VAL'
  1093. Set or change both the VMA address and the LMA address of any
  1094. section matching SECTIONPATTERN. If '=' is used, the section
  1095. address is set to VAL. Otherwise, VAL is added to or subtracted
  1096. from the section address. See the comments under
  1097. '--change-addresses', above. If SECTIONPATTERN does not match any
  1098. sections in the input file, a warning will be issued, unless
  1099. '--no-change-warnings' is used.
  1100. '--change-section-lma SECTIONPATTERN{=,+,-}VAL'
  1101. Set or change the LMA address of any sections matching
  1102. SECTIONPATTERN. The LMA address is the address where the section
  1103. will be loaded into memory at program load time. Normally this is
  1104. the same as the VMA address, which is the address of the section at
  1105. program run time, but on some systems, especially those where a
  1106. program is held in ROM, the two can be different. If '=' is used,
  1107. the section address is set to VAL. Otherwise, VAL is added to or
  1108. subtracted from the section address. See the comments under
  1109. '--change-addresses', above. If SECTIONPATTERN does not match any
  1110. sections in the input file, a warning will be issued, unless
  1111. '--no-change-warnings' is used.
  1112. '--change-section-vma SECTIONPATTERN{=,+,-}VAL'
  1113. Set or change the VMA address of any section matching
  1114. SECTIONPATTERN. The VMA address is the address where the section
  1115. will be located once the program has started executing. Normally
  1116. this is the same as the LMA address, which is the address where the
  1117. section will be loaded into memory, but on some systems, especially
  1118. those where a program is held in ROM, the two can be different. If
  1119. '=' is used, the section address is set to VAL. Otherwise, VAL is
  1120. added to or subtracted from the section address. See the comments
  1121. under '--change-addresses', above. If SECTIONPATTERN does not
  1122. match any sections in the input file, a warning will be issued,
  1123. unless '--no-change-warnings' is used.
  1124. '--change-warnings'
  1125. '--adjust-warnings'
  1126. If '--change-section-address' or '--change-section-lma' or
  1127. '--change-section-vma' is used, and the section pattern does not
  1128. match any sections, issue a warning. This is the default.
  1129. '--no-change-warnings'
  1130. '--no-adjust-warnings'
  1131. Do not issue a warning if '--change-section-address' or
  1132. '--adjust-section-lma' or '--adjust-section-vma' is used, even if
  1133. the section pattern does not match any sections.
  1134. '--set-section-flags SECTIONPATTERN=FLAGS'
  1135. Set the flags for any sections matching SECTIONPATTERN. The FLAGS
  1136. argument is a comma separated string of flag names. The recognized
  1137. names are 'alloc', 'contents', 'load', 'noload', 'readonly',
  1138. 'code', 'data', 'rom', 'exclude', 'share', and 'debug'. You can
  1139. set the 'contents' flag for a section which does not have contents,
  1140. but it is not meaningful to clear the 'contents' flag of a section
  1141. which does have contents-just remove the section instead. Not all
  1142. flags are meaningful for all object file formats. In particular
  1143. the 'share' flag is only meaningful for COFF format files and not
  1144. for ELF format files.
  1145. '--set-section-alignment SECTIONPATTERN=ALIGN'
  1146. Set the alignment for any sections matching SECTIONPATTERN. ALIGN
  1147. specifies the alignment in bytes and must be a power of two, i.e.
  1148. 1, 2, 4, 8....
  1149. '--add-section SECTIONNAME=FILENAME'
  1150. Add a new section named SECTIONNAME while copying the file. The
  1151. contents of the new section are taken from the file FILENAME. The
  1152. size of the section will be the size of the file. This option only
  1153. works on file formats which can support sections with arbitrary
  1154. names. Note - it may be necessary to use the '--set-section-flags'
  1155. option to set the attributes of the newly created section.
  1156. '--dump-section SECTIONNAME=FILENAME'
  1157. Place the contents of section named SECTIONNAME into the file
  1158. FILENAME, overwriting any contents that may have been there
  1159. previously. This option is the inverse of '--add-section'. This
  1160. option is similar to the '--only-section' option except that it
  1161. does not create a formatted file, it just dumps the contents as raw
  1162. binary data, without applying any relocations. The option can be
  1163. specified more than once.
  1164. '--update-section SECTIONNAME=FILENAME'
  1165. Replace the existing contents of a section named SECTIONNAME with
  1166. the contents of file FILENAME. The size of the section will be
  1167. adjusted to the size of the file. The section flags for
  1168. SECTIONNAME will be unchanged. For ELF format files the section to
  1169. segment mapping will also remain unchanged, something which is not
  1170. possible using '--remove-section' followed by '--add-section'. The
  1171. option can be specified more than once.
  1172. Note - it is possible to use '--rename-section' and
  1173. '--update-section' to both update and rename a section from one
  1174. command line. In this case, pass the original section name to
  1175. '--update-section', and the original and new section names to
  1176. '--rename-section'.
  1177. '--add-symbol NAME=[SECTION:]VALUE[,FLAGS]'
  1178. Add a new symbol named NAME while copying the file. This option
  1179. may be specified multiple times. If the SECTION is given, the
  1180. symbol will be associated with and relative to that section,
  1181. otherwise it will be an ABS symbol. Specifying an undefined
  1182. section will result in a fatal error. There is no check for the
  1183. value, it will be taken as specified. Symbol flags can be
  1184. specified and not all flags will be meaningful for all object file
  1185. formats. By default, the symbol will be global. The special flag
  1186. 'before=OTHERSYM' will insert the new symbol in front of the
  1187. specified OTHERSYM, otherwise the symbol(s) will be added at the
  1188. end of the symbol table in the order they appear.
  1189. '--rename-section OLDNAME=NEWNAME[,FLAGS]'
  1190. Rename a section from OLDNAME to NEWNAME, optionally changing the
  1191. section's flags to FLAGS in the process. This has the advantage
  1192. over using a linker script to perform the rename in that the output
  1193. stays as an object file and does not become a linked executable.
  1194. This option accepts the same set of flags as the
  1195. '--sect-section-flags' option.
  1196. This option is particularly helpful when the input format is
  1197. binary, since this will always create a section called .data. If
  1198. for example, you wanted instead to create a section called .rodata
  1199. containing binary data you could use the following command line to
  1200. achieve it:
  1201. objcopy -I binary -O <output_format> -B <architecture> \
  1202. --rename-section .data=.rodata,alloc,load,readonly,data,contents \
  1203. <input_binary_file> <output_object_file>
  1204. '--long-section-names {enable,disable,keep}'
  1205. Controls the handling of long section names when processing 'COFF'
  1206. and 'PE-COFF' object formats. The default behaviour, 'keep', is to
  1207. preserve long section names if any are present in the input file.
  1208. The 'enable' and 'disable' options forcibly enable or disable the
  1209. use of long section names in the output object; when 'disable' is
  1210. in effect, any long section names in the input object will be
  1211. truncated. The 'enable' option will only emit long section names
  1212. if any are present in the inputs; this is mostly the same as
  1213. 'keep', but it is left undefined whether the 'enable' option might
  1214. force the creation of an empty string table in the output file.
  1215. '--change-leading-char'
  1216. Some object file formats use special characters at the start of
  1217. symbols. The most common such character is underscore, which
  1218. compilers often add before every symbol. This option tells
  1219. 'objcopy' to change the leading character of every symbol when it
  1220. converts between object file formats. If the object file formats
  1221. use the same leading character, this option has no effect.
  1222. Otherwise, it will add a character, or remove a character, or
  1223. change a character, as appropriate.
  1224. '--remove-leading-char'
  1225. If the first character of a global symbol is a special symbol
  1226. leading character used by the object file format, remove the
  1227. character. The most common symbol leading character is underscore.
  1228. This option will remove a leading underscore from all global
  1229. symbols. This can be useful if you want to link together objects
  1230. of different file formats with different conventions for symbol
  1231. names. This is different from '--change-leading-char' because it
  1232. always changes the symbol name when appropriate, regardless of the
  1233. object file format of the output file.
  1234. '--reverse-bytes=NUM'
  1235. Reverse the bytes in a section with output contents. A section
  1236. length must be evenly divisible by the value given in order for the
  1237. swap to be able to take place. Reversing takes place before the
  1238. interleaving is performed.
  1239. This option is used typically in generating ROM images for
  1240. problematic target systems. For example, on some target boards,
  1241. the 32-bit words fetched from 8-bit ROMs are re-assembled in
  1242. little-endian byte order regardless of the CPU byte order.
  1243. Depending on the programming model, the endianness of the ROM may
  1244. need to be modified.
  1245. Consider a simple file with a section containing the following
  1246. eight bytes: '12345678'.
  1247. Using '--reverse-bytes=2' for the above example, the bytes in the
  1248. output file would be ordered '21436587'.
  1249. Using '--reverse-bytes=4' for the above example, the bytes in the
  1250. output file would be ordered '43218765'.
  1251. By using '--reverse-bytes=2' for the above example, followed by
  1252. '--reverse-bytes=4' on the output file, the bytes in the second
  1253. output file would be ordered '34127856'.
  1254. '--srec-len=IVAL'
  1255. Meaningful only for srec output. Set the maximum length of the
  1256. Srecords being produced to IVAL. This length covers both address,
  1257. data and crc fields.
  1258. '--srec-forceS3'
  1259. Meaningful only for srec output. Avoid generation of S1/S2
  1260. records, creating S3-only record format.
  1261. '--redefine-sym OLD=NEW'
  1262. Change the name of a symbol OLD, to NEW. This can be useful when
  1263. one is trying link two things together for which you have no
  1264. source, and there are name collisions.
  1265. '--redefine-syms=FILENAME'
  1266. Apply '--redefine-sym' to each symbol pair "OLD NEW" listed in the
  1267. file FILENAME. FILENAME is simply a flat file, with one symbol
  1268. pair per line. Line comments may be introduced by the hash
  1269. character. This option may be given more than once.
  1270. '--weaken'
  1271. Change all global symbols in the file to be weak. This can be
  1272. useful when building an object which will be linked against other
  1273. objects using the '-R' option to the linker. This option is only
  1274. effective when using an object file format which supports weak
  1275. symbols.
  1276. '--keep-symbols=FILENAME'
  1277. Apply '--keep-symbol' option to each symbol listed in the file
  1278. FILENAME. FILENAME is simply a flat file, with one symbol name per
  1279. line. Line comments may be introduced by the hash character. This
  1280. option may be given more than once.
  1281. '--strip-symbols=FILENAME'
  1282. Apply '--strip-symbol' option to each symbol listed in the file
  1283. FILENAME. FILENAME is simply a flat file, with one symbol name per
  1284. line. Line comments may be introduced by the hash character. This
  1285. option may be given more than once.
  1286. '--strip-unneeded-symbols=FILENAME'
  1287. Apply '--strip-unneeded-symbol' option to each symbol listed in the
  1288. file FILENAME. FILENAME is simply a flat file, with one symbol
  1289. name per line. Line comments may be introduced by the hash
  1290. character. This option may be given more than once.
  1291. '--keep-global-symbols=FILENAME'
  1292. Apply '--keep-global-symbol' option to each symbol listed in the
  1293. file FILENAME. FILENAME is simply a flat file, with one symbol
  1294. name per line. Line comments may be introduced by the hash
  1295. character. This option may be given more than once.
  1296. '--localize-symbols=FILENAME'
  1297. Apply '--localize-symbol' option to each symbol listed in the file
  1298. FILENAME. FILENAME is simply a flat file, with one symbol name per
  1299. line. Line comments may be introduced by the hash character. This
  1300. option may be given more than once.
  1301. '--globalize-symbols=FILENAME'
  1302. Apply '--globalize-symbol' option to each symbol listed in the file
  1303. FILENAME. FILENAME is simply a flat file, with one symbol name per
  1304. line. Line comments may be introduced by the hash character. This
  1305. option may be given more than once. Note: this option cannot be
  1306. used in conjunction with the '-G' or '--keep-global-symbol'
  1307. options.
  1308. '--weaken-symbols=FILENAME'
  1309. Apply '--weaken-symbol' option to each symbol listed in the file
  1310. FILENAME. FILENAME is simply a flat file, with one symbol name per
  1311. line. Line comments may be introduced by the hash character. This
  1312. option may be given more than once.
  1313. '--alt-machine-code=INDEX'
  1314. If the output architecture has alternate machine codes, use the
  1315. INDEXth code instead of the default one. This is useful in case a
  1316. machine is assigned an official code and the tool-chain adopts the
  1317. new code, but other applications still depend on the original code
  1318. being used. For ELF based architectures if the INDEX alternative
  1319. does not exist then the value is treated as an absolute number to
  1320. be stored in the e_machine field of the ELF header.
  1321. '--writable-text'
  1322. Mark the output text as writable. This option isn't meaningful for
  1323. all object file formats.
  1324. '--readonly-text'
  1325. Make the output text write protected. This option isn't meaningful
  1326. for all object file formats.
  1327. '--pure'
  1328. Mark the output file as demand paged. This option isn't meaningful
  1329. for all object file formats.
  1330. '--impure'
  1331. Mark the output file as impure. This option isn't meaningful for
  1332. all object file formats.
  1333. '--prefix-symbols=STRING'
  1334. Prefix all symbols in the output file with STRING.
  1335. '--prefix-sections=STRING'
  1336. Prefix all section names in the output file with STRING.
  1337. '--prefix-alloc-sections=STRING'
  1338. Prefix all the names of all allocated sections in the output file
  1339. with STRING.
  1340. '--add-gnu-debuglink=PATH-TO-FILE'
  1341. Creates a .gnu_debuglink section which contains a reference to
  1342. PATH-TO-FILE and adds it to the output file. Note: the file at
  1343. PATH-TO-FILE must exist. Part of the process of adding the
  1344. .gnu_debuglink section involves embedding a checksum of the
  1345. contents of the debug info file into the section.
  1346. If the debug info file is built in one location but it is going to
  1347. be installed at a later time into a different location then do not
  1348. use the path to the installed location. The '--add-gnu-debuglink'
  1349. option will fail because the installed file does not exist yet.
  1350. Instead put the debug info file in the current directory and use
  1351. the '--add-gnu-debuglink' option without any directory components,
  1352. like this:
  1353. objcopy --add-gnu-debuglink=foo.debug
  1354. At debug time the debugger will attempt to look for the separate
  1355. debug info file in a set of known locations. The exact set of
  1356. these locations varies depending upon the distribution being used,
  1357. but it typically includes:
  1358. '* The same directory as the executable.'
  1359. '* A sub-directory of the directory containing the executable'
  1360. called .debug
  1361. '* A global debug directory such as /usr/lib/debug.'
  1362. As long as the debug info file has been installed into one of these
  1363. locations before the debugger is run everything should work
  1364. correctly.
  1365. '--keep-file-symbols'
  1366. When stripping a file, perhaps with '--strip-debug' or
  1367. '--strip-unneeded', retain any symbols specifying source file
  1368. names, which would otherwise get stripped.
  1369. '--only-keep-debug'
  1370. Strip a file, removing contents of any sections that would not be
  1371. stripped by '--strip-debug' and leaving the debugging sections
  1372. intact. In ELF files, this preserves all note sections in the
  1373. output.
  1374. Note - the section headers of the stripped sections are preserved,
  1375. including their sizes, but the contents of the section are
  1376. discarded. The section headers are preserved so that other tools
  1377. can match up the debuginfo file with the real executable, even if
  1378. that executable has been relocated to a different address space.
  1379. The intention is that this option will be used in conjunction with
  1380. '--add-gnu-debuglink' to create a two part executable. One a
  1381. stripped binary which will occupy less space in RAM and in a
  1382. distribution and the second a debugging information file which is
  1383. only needed if debugging abilities are required. The suggested
  1384. procedure to create these files is as follows:
  1385. 1. Link the executable as normal. Assuming that it is called
  1386. 'foo' then...
  1387. 2. Run 'objcopy --only-keep-debug foo foo.dbg' to create a file
  1388. containing the debugging info.
  1389. 3. Run 'objcopy --strip-debug foo' to create a stripped
  1390. executable.
  1391. 4. Run 'objcopy --add-gnu-debuglink=foo.dbg foo' to add a link to
  1392. the debugging info into the stripped executable.
  1393. Note--the choice of '.dbg' as an extension for the debug info file
  1394. is arbitrary. Also the '--only-keep-debug' step is optional. You
  1395. could instead do this:
  1396. 1. Link the executable as normal.
  1397. 2. Copy 'foo' to 'foo.full'
  1398. 3. Run 'objcopy --strip-debug foo'
  1399. 4. Run 'objcopy --add-gnu-debuglink=foo.full foo'
  1400. i.e., the file pointed to by the '--add-gnu-debuglink' can be the
  1401. full executable. It does not have to be a file created by the
  1402. '--only-keep-debug' switch.
  1403. Note--this switch is only intended for use on fully linked files.
  1404. It does not make sense to use it on object files where the
  1405. debugging information may be incomplete. Besides the gnu_debuglink
  1406. feature currently only supports the presence of one filename
  1407. containing debugging information, not multiple filenames on a
  1408. one-per-object-file basis.
  1409. '--strip-dwo'
  1410. Remove the contents of all DWARF .dwo sections, leaving the
  1411. remaining debugging sections and all symbols intact. This option
  1412. is intended for use by the compiler as part of the '-gsplit-dwarf'
  1413. option, which splits debug information between the .o file and a
  1414. separate .dwo file. The compiler generates all debug information
  1415. in the same file, then uses the '--extract-dwo' option to copy the
  1416. .dwo sections to the .dwo file, then the '--strip-dwo' option to
  1417. remove those sections from the original .o file.
  1418. '--extract-dwo'
  1419. Extract the contents of all DWARF .dwo sections. See the
  1420. '--strip-dwo' option for more information.
  1421. '--file-alignment NUM'
  1422. Specify the file alignment. Sections in the file will always begin
  1423. at file offsets which are multiples of this number. This defaults
  1424. to 512. [This option is specific to PE targets.]
  1425. '--heap RESERVE'
  1426. '--heap RESERVE,COMMIT'
  1427. Specify the number of bytes of memory to reserve (and optionally
  1428. commit) to be used as heap for this program. [This option is
  1429. specific to PE targets.]
  1430. '--image-base VALUE'
  1431. Use VALUE as the base address of your program or dll. This is the
  1432. lowest memory location that will be used when your program or dll
  1433. is loaded. To reduce the need to relocate and improve performance
  1434. of your dlls, each should have a unique base address and not
  1435. overlap any other dlls. The default is 0x400000 for executables,
  1436. and 0x10000000 for dlls. [This option is specific to PE targets.]
  1437. '--section-alignment NUM'
  1438. Sets the section alignment field in the PE header. Sections in
  1439. memory will always begin at addresses which are a multiple of this
  1440. number. Defaults to 0x1000. [This option is specific to PE
  1441. targets.]
  1442. '--stack RESERVE'
  1443. '--stack RESERVE,COMMIT'
  1444. Specify the number of bytes of memory to reserve (and optionally
  1445. commit) to be used as stack for this program. [This option is
  1446. specific to PE targets.]
  1447. '--subsystem WHICH'
  1448. '--subsystem WHICH:MAJOR'
  1449. '--subsystem WHICH:MAJOR.MINOR'
  1450. Specifies the subsystem under which your program will execute. The
  1451. legal values for WHICH are 'native', 'windows', 'console', 'posix',
  1452. 'efi-app', 'efi-bsd', 'efi-rtd', 'sal-rtd', and 'xbox'. You may
  1453. optionally set the subsystem version also. Numeric values are also
  1454. accepted for WHICH. [This option is specific to PE targets.]
  1455. '--extract-symbol'
  1456. Keep the file's section flags and symbols but remove all section
  1457. data. Specifically, the option:
  1458. * removes the contents of all sections;
  1459. * sets the size of every section to zero; and
  1460. * sets the file's start address to zero.
  1461. This option is used to build a '.sym' file for a VxWorks kernel.
  1462. It can also be a useful way of reducing the size of a
  1463. '--just-symbols' linker input file.
  1464. '--compress-debug-sections'
  1465. Compress DWARF debug sections using zlib with SHF_COMPRESSED from
  1466. the ELF ABI. Note - if compression would actually make a section
  1467. _larger_, then it is not compressed.
  1468. '--compress-debug-sections=none'
  1469. '--compress-debug-sections=zlib'
  1470. '--compress-debug-sections=zlib-gnu'
  1471. '--compress-debug-sections=zlib-gabi'
  1472. For ELF files, these options control how DWARF debug sections are
  1473. compressed. '--compress-debug-sections=none' is equivalent to
  1474. '--decompress-debug-sections'. '--compress-debug-sections=zlib'
  1475. and '--compress-debug-sections=zlib-gabi' are equivalent to
  1476. '--compress-debug-sections'. '--compress-debug-sections=zlib-gnu'
  1477. compresses DWARF debug sections using zlib. The debug sections are
  1478. renamed to begin with '.zdebug' instead of '.debug'. Note - if
  1479. compression would actually make a section _larger_, then it is not
  1480. compressed nor renamed.
  1481. '--decompress-debug-sections'
  1482. Decompress DWARF debug sections using zlib. The original section
  1483. names of the compressed sections are restored.
  1484. '--elf-stt-common=yes'
  1485. '--elf-stt-common=no'
  1486. For ELF files, these options control whether common symbols should
  1487. be converted to the 'STT_COMMON' or 'STT_OBJECT' type.
  1488. '--elf-stt-common=yes' converts common symbol type to 'STT_COMMON'.
  1489. '--elf-stt-common=no' converts common symbol type to 'STT_OBJECT'.
  1490. '--merge-notes'
  1491. '--no-merge-notes'
  1492. For ELF files, attempt (or do not attempt) to reduce the size of
  1493. any SHT_NOTE type sections by removing duplicate notes.
  1494. '-V'
  1495. '--version'
  1496. Show the version number of 'objcopy'.
  1497. '--verilog-data-width=BYTES'
  1498. For Verilog output, this options controls the number of bytes
  1499. converted for each output data element. The input target controls
  1500. the endianness of the conversion.
  1501. '-v'
  1502. '--verbose'
  1503. Verbose output: list all object files modified. In the case of
  1504. archives, 'objcopy -V' lists all members of the archive.
  1505. '--help'
  1506. Show a summary of the options to 'objcopy'.
  1507. '--info'
  1508. Display a list showing all architectures and object formats
  1509. available.
  1510. 
  1511. File: binutils.info, Node: objdump, Next: ranlib, Prev: objcopy, Up: Top
  1512. 4 objdump
  1513. *********
  1514. objdump [-a|--archive-headers]
  1515. [-b BFDNAME|--target=BFDNAME]
  1516. [-C|--demangle[=STYLE] ]
  1517. [-d|--disassemble[=SYMBOL]]
  1518. [-D|--disassemble-all]
  1519. [-z|--disassemble-zeroes]
  1520. [-EB|-EL|--endian={big | little }]
  1521. [-f|--file-headers]
  1522. [-F|--file-offsets]
  1523. [--file-start-context]
  1524. [-g|--debugging]
  1525. [-e|--debugging-tags]
  1526. [-h|--section-headers|--headers]
  1527. [-i|--info]
  1528. [-j SECTION|--section=SECTION]
  1529. [-l|--line-numbers]
  1530. [-S|--source]
  1531. [--source-comment[=TEXT]]
  1532. [-m MACHINE|--architecture=MACHINE]
  1533. [-M OPTIONS|--disassembler-options=OPTIONS]
  1534. [-p|--private-headers]
  1535. [-P OPTIONS|--private=OPTIONS]
  1536. [-r|--reloc]
  1537. [-R|--dynamic-reloc]
  1538. [-s|--full-contents]
  1539. [-W[lLiaprmfFsoORtUuTgAckK]|
  1540. --dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow-links]]
  1541. [--ctf=SECTION]
  1542. [-G|--stabs]
  1543. [-t|--syms]
  1544. [-T|--dynamic-syms]
  1545. [-x|--all-headers]
  1546. [-w|--wide]
  1547. [--start-address=ADDRESS]
  1548. [--stop-address=ADDRESS]
  1549. [--no-addresses]
  1550. [--prefix-addresses]
  1551. [--[no-]show-raw-insn]
  1552. [--adjust-vma=OFFSET]
  1553. [--dwarf-depth=N]
  1554. [--dwarf-start=N]
  1555. [--ctf-parent=SECTION]
  1556. [--no-recurse-limit|--recurse-limit]
  1557. [--special-syms]
  1558. [--prefix=PREFIX]
  1559. [--prefix-strip=LEVEL]
  1560. [--insn-width=WIDTH]
  1561. [--visualize-jumps[=color|=extended-color|=off]
  1562. [-V|--version]
  1563. [-H|--help]
  1564. OBJFILE...
  1565. 'objdump' displays information about one or more object files. The
  1566. options control what particular information to display. This
  1567. information is mostly useful to programmers who are working on the
  1568. compilation tools, as opposed to programmers who just want their program
  1569. to compile and work.
  1570. OBJFILE... are the object files to be examined. When you specify
  1571. archives, 'objdump' shows information on each of the member object
  1572. files.
  1573. The long and short forms of options, shown here as alternatives, are
  1574. equivalent. At least one option from the list
  1575. '-a,-d,-D,-e,-f,-g,-G,-h,-H,-p,-P,-r,-R,-s,-S,-t,-T,-V,-x' must be
  1576. given.
  1577. '-a'
  1578. '--archive-header'
  1579. If any of the OBJFILE files are archives, display the archive
  1580. header information (in a format similar to 'ls -l'). Besides the
  1581. information you could list with 'ar tv', 'objdump -a' shows the
  1582. object file format of each archive member.
  1583. '--adjust-vma=OFFSET'
  1584. When dumping information, first add OFFSET to all the section
  1585. addresses. This is useful if the section addresses do not
  1586. correspond to the symbol table, which can happen when putting
  1587. sections at particular addresses when using a format which can not
  1588. represent section addresses, such as a.out.
  1589. '-b BFDNAME'
  1590. '--target=BFDNAME'
  1591. Specify that the object-code format for the object files is
  1592. BFDNAME. This option may not be necessary; OBJDUMP can
  1593. automatically recognize many formats.
  1594. For example,
  1595. objdump -b oasys -m vax -h fu.o
  1596. displays summary information from the section headers ('-h') of
  1597. 'fu.o', which is explicitly identified ('-m') as a VAX object file
  1598. in the format produced by Oasys compilers. You can list the
  1599. formats available with the '-i' option. *Note Target Selection::,
  1600. for more information.
  1601. '-C'
  1602. '--demangle[=STYLE]'
  1603. Decode ("demangle") low-level symbol names into user-level names.
  1604. Besides removing any initial underscore prepended by the system,
  1605. this makes C++ function names readable. Different compilers have
  1606. different mangling styles. The optional demangling style argument
  1607. can be used to choose an appropriate demangling style for your
  1608. compiler. *Note c++filt::, for more information on demangling.
  1609. '--recurse-limit'
  1610. '--no-recurse-limit'
  1611. '--recursion-limit'
  1612. '--no-recursion-limit'
  1613. Enables or disables a limit on the amount of recursion performed
  1614. whilst demangling strings. Since the name mangling formats allow
  1615. for an inifinite level of recursion it is possible to create
  1616. strings whose decoding will exhaust the amount of stack space
  1617. available on the host machine, triggering a memory fault. The
  1618. limit tries to prevent this from happening by restricting recursion
  1619. to 2048 levels of nesting.
  1620. The default is for this limit to be enabled, but disabling it may
  1621. be necessary in order to demangle truly complicated names. Note
  1622. however that if the recursion limit is disabled then stack
  1623. exhaustion is possible and any bug reports about such an event will
  1624. be rejected.
  1625. '-g'
  1626. '--debugging'
  1627. Display debugging information. This attempts to parse STABS
  1628. debugging format information stored in the file and print it out
  1629. using a C like syntax. If no STABS debugging was found this option
  1630. falls back on the '-W' option to print any DWARF information in the
  1631. file.
  1632. '-e'
  1633. '--debugging-tags'
  1634. Like '-g', but the information is generated in a format compatible
  1635. with ctags tool.
  1636. '-d'
  1637. '--disassemble'
  1638. '--disassemble=SYMBOL'
  1639. Display the assembler mnemonics for the machine instructions from
  1640. the input file. This option only disassembles those sections which
  1641. are expected to contain instructions. If the optional SYMBOL
  1642. argument is given, then display the assembler mnemonics starting at
  1643. SYMBOL. If SYMBOL is a function name then disassembly will stop at
  1644. the end of the function, otherwise it will stop when the next
  1645. symbol is encountered. If there are no matches for SYMBOL then
  1646. nothing will be displayed.
  1647. Note if the '--dwarf=follow-links' option has also been enabled
  1648. then any symbol tables in linked debug info files will be read in
  1649. and used when disassembling.
  1650. '-D'
  1651. '--disassemble-all'
  1652. Like '-d', but disassemble the contents of all sections, not just
  1653. those expected to contain instructions.
  1654. This option also has a subtle effect on the disassembly of
  1655. instructions in code sections. When option '-d' is in effect
  1656. objdump will assume that any symbols present in a code section
  1657. occur on the boundary between instructions and it will refuse to
  1658. disassemble across such a boundary. When option '-D' is in effect
  1659. however this assumption is supressed. This means that it is
  1660. possible for the output of '-d' and '-D' to differ if, for example,
  1661. data is stored in code sections.
  1662. If the target is an ARM architecture this switch also has the
  1663. effect of forcing the disassembler to decode pieces of data found
  1664. in code sections as if they were instructions.
  1665. Note if the '--dwarf=follow-links' option has also been enabled
  1666. then any symbol tables in linked debug info files will be read in
  1667. and used when disassembling.
  1668. '--no-addresses'
  1669. When disassembling, don't print addresses on each line or for
  1670. symbols and relocation offsets. In combination with
  1671. '--no-show-raw-insn' this may be useful for comparing compiler
  1672. output.
  1673. '--prefix-addresses'
  1674. When disassembling, print the complete address on each line. This
  1675. is the older disassembly format.
  1676. '-EB'
  1677. '-EL'
  1678. '--endian={big|little}'
  1679. Specify the endianness of the object files. This only affects
  1680. disassembly. This can be useful when disassembling a file format
  1681. which does not describe endianness information, such as S-records.
  1682. '-f'
  1683. '--file-headers'
  1684. Display summary information from the overall header of each of the
  1685. OBJFILE files.
  1686. '-F'
  1687. '--file-offsets'
  1688. When disassembling sections, whenever a symbol is displayed, also
  1689. display the file offset of the region of data that is about to be
  1690. dumped. If zeroes are being skipped, then when disassembly
  1691. resumes, tell the user how many zeroes were skipped and the file
  1692. offset of the location from where the disassembly resumes. When
  1693. dumping sections, display the file offset of the location from
  1694. where the dump starts.
  1695. '--file-start-context'
  1696. Specify that when displaying interlisted source code/disassembly
  1697. (assumes '-S') from a file that has not yet been displayed, extend
  1698. the context to the start of the file.
  1699. '-h'
  1700. '--section-headers'
  1701. '--headers'
  1702. Display summary information from the section headers of the object
  1703. file.
  1704. File segments may be relocated to nonstandard addresses, for
  1705. example by using the '-Ttext', '-Tdata', or '-Tbss' options to
  1706. 'ld'. However, some object file formats, such as a.out, do not
  1707. store the starting address of the file segments. In those
  1708. situations, although 'ld' relocates the sections correctly, using
  1709. 'objdump -h' to list the file section headers cannot show the
  1710. correct addresses. Instead, it shows the usual addresses, which
  1711. are implicit for the target.
  1712. Note, in some cases it is possible for a section to have both the
  1713. READONLY and the NOREAD attributes set. In such cases the NOREAD
  1714. attribute takes precedence, but 'objdump' will report both since
  1715. the exact setting of the flag bits might be important.
  1716. '-H'
  1717. '--help'
  1718. Print a summary of the options to 'objdump' and exit.
  1719. '-i'
  1720. '--info'
  1721. Display a list showing all architectures and object formats
  1722. available for specification with '-b' or '-m'.
  1723. '-j NAME'
  1724. '--section=NAME'
  1725. Display information only for section NAME.
  1726. '-l'
  1727. '--line-numbers'
  1728. Label the display (using debugging information) with the filename
  1729. and source line numbers corresponding to the object code or relocs
  1730. shown. Only useful with '-d', '-D', or '-r'.
  1731. '-m MACHINE'
  1732. '--architecture=MACHINE'
  1733. Specify the architecture to use when disassembling object files.
  1734. This can be useful when disassembling object files which do not
  1735. describe architecture information, such as S-records. You can list
  1736. the available architectures with the '-i' option.
  1737. If the target is an ARM architecture then this switch has an
  1738. additional effect. It restricts the disassembly to only those
  1739. instructions supported by the architecture specified by MACHINE.
  1740. If it is necessary to use this switch because the input file does
  1741. not contain any architecture information, but it is also desired to
  1742. disassemble all the instructions use '-marm'.
  1743. '-M OPTIONS'
  1744. '--disassembler-options=OPTIONS'
  1745. Pass target specific information to the disassembler. Only
  1746. supported on some targets. If it is necessary to specify more than
  1747. one disassembler option then multiple '-M' options can be used or
  1748. can be placed together into a comma separated list.
  1749. For ARC, 'dsp' controls the printing of DSP instructions, 'spfp'
  1750. selects the printing of FPX single precision FP instructions,
  1751. 'dpfp' selects the printing of FPX double precision FP
  1752. instructions, 'quarkse_em' selects the printing of special
  1753. QuarkSE-EM instructions, 'fpuda' selects the printing of double
  1754. precision assist instructions, 'fpus' selects the printing of FPU
  1755. single precision FP instructions, while 'fpud' selects the printing
  1756. of FPU double precision FP instructions. Additionally, one can
  1757. choose to have all the immediates printed in hexadecimal using
  1758. 'hex'. By default, the short immediates are printed using the
  1759. decimal representation, while the long immediate values are printed
  1760. as hexadecimal.
  1761. 'cpu=...' allows to enforce a particular ISA when disassembling
  1762. instructions, overriding the '-m' value or whatever is in the ELF
  1763. file. This might be useful to select ARC EM or HS ISA, because
  1764. architecture is same for those and disassembler relies on private
  1765. ELF header data to decide if code is for EM or HS. This option
  1766. might be specified multiple times - only the latest value will be
  1767. used. Valid values are same as for the assembler '-mcpu=...'
  1768. option.
  1769. If the target is an ARM architecture then this switch can be used
  1770. to select which register name set is used during disassembler.
  1771. Specifying '-M reg-names-std' (the default) will select the
  1772. register names as used in ARM's instruction set documentation, but
  1773. with register 13 called 'sp', register 14 called 'lr' and register
  1774. 15 called 'pc'. Specifying '-M reg-names-apcs' will select the
  1775. name set used by the ARM Procedure Call Standard, whilst specifying
  1776. '-M reg-names-raw' will just use 'r' followed by the register
  1777. number.
  1778. There are also two variants on the APCS register naming scheme
  1779. enabled by '-M reg-names-atpcs' and '-M reg-names-special-atpcs'
  1780. which use the ARM/Thumb Procedure Call Standard naming conventions.
  1781. (Either with the normal register names or the special register
  1782. names).
  1783. This option can also be used for ARM architectures to force the
  1784. disassembler to interpret all instructions as Thumb instructions by
  1785. using the switch '--disassembler-options=force-thumb'. This can be
  1786. useful when attempting to disassemble thumb code produced by other
  1787. compilers.
  1788. For AArch64 targets this switch can be used to set whether
  1789. instructions are disassembled as the most general instruction using
  1790. the '-M no-aliases' option or whether instruction notes should be
  1791. generated as comments in the disasssembly using '-M notes'.
  1792. For the x86, some of the options duplicate functions of the '-m'
  1793. switch, but allow finer grained control.
  1794. 'x86-64'
  1795. 'i386'
  1796. 'i8086'
  1797. Select disassembly for the given architecture.
  1798. 'intel'
  1799. 'att'
  1800. Select between intel syntax mode and AT&T syntax mode.
  1801. 'amd64'
  1802. 'intel64'
  1803. Select between AMD64 ISA and Intel64 ISA.
  1804. 'intel-mnemonic'
  1805. 'att-mnemonic'
  1806. Select between intel mnemonic mode and AT&T mnemonic mode.
  1807. Note: 'intel-mnemonic' implies 'intel' and 'att-mnemonic'
  1808. implies 'att'.
  1809. 'addr64'
  1810. 'addr32'
  1811. 'addr16'
  1812. 'data32'
  1813. 'data16'
  1814. Specify the default address size and operand size. These five
  1815. options will be overridden if 'x86-64', 'i386' or 'i8086'
  1816. appear later in the option string.
  1817. 'suffix'
  1818. When in AT&T mode and also for a limited set of instructions
  1819. when in Intel mode, instructs the disassembler to print a
  1820. mnemonic suffix even when the suffix could be inferred by the
  1821. operands or, for certain instructions, the execution mode's
  1822. defaults.
  1823. For PowerPC, the '-M' argument 'raw' selects disasssembly of
  1824. hardware insns rather than aliases. For example, you will see
  1825. 'rlwinm' rather than 'clrlwi', and 'addi' rather than 'li'. All of
  1826. the '-m' arguments for 'gas' that select a CPU are supported.
  1827. These are: '403', '405', '440', '464', '476', '601', '603', '604',
  1828. '620', '7400', '7410', '7450', '7455', '750cl', '821', '850',
  1829. '860', 'a2', 'booke', 'booke32', 'cell', 'com', 'e200z4', 'e300',
  1830. 'e500', 'e500mc', 'e500mc64', 'e500x2', 'e5500', 'e6500', 'efs',
  1831. 'power4', 'power5', 'power6', 'power7', 'power8', 'power9',
  1832. 'power10', 'ppc', 'ppc32', 'ppc64', 'ppc64bridge', 'ppcps', 'pwr',
  1833. 'pwr2', 'pwr4', 'pwr5', 'pwr5x', 'pwr6', 'pwr7', 'pwr8', 'pwr9',
  1834. 'pwr10', 'pwrx', 'titan', and 'vle'. '32' and '64' modify the
  1835. default or a prior CPU selection, disabling and enabling 64-bit
  1836. insns respectively. In addition, 'altivec', 'any', 'htm', 'vsx',
  1837. and 'spe' add capabilities to a previous _or later_ CPU selection.
  1838. 'any' will disassemble any opcode known to binutils, but in cases
  1839. where an opcode has two different meanings or different arguments,
  1840. you may not see the disassembly you expect. If you disassemble
  1841. without giving a CPU selection, a default will be chosen from
  1842. information gleaned by BFD from the object files headers, but the
  1843. result again may not be as you expect.
  1844. For MIPS, this option controls the printing of instruction mnemonic
  1845. names and register names in disassembled instructions. Multiple
  1846. selections from the following may be specified as a comma separated
  1847. string, and invalid options are ignored:
  1848. 'no-aliases'
  1849. Print the 'raw' instruction mnemonic instead of some pseudo
  1850. instruction mnemonic. I.e., print 'daddu' or 'or' instead of
  1851. 'move', 'sll' instead of 'nop', etc.
  1852. 'msa'
  1853. Disassemble MSA instructions.
  1854. 'virt'
  1855. Disassemble the virtualization ASE instructions.
  1856. 'xpa'
  1857. Disassemble the eXtended Physical Address (XPA) ASE
  1858. instructions.
  1859. 'gpr-names=ABI'
  1860. Print GPR (general-purpose register) names as appropriate for
  1861. the specified ABI. By default, GPR names are selected
  1862. according to the ABI of the binary being disassembled.
  1863. 'fpr-names=ABI'
  1864. Print FPR (floating-point register) names as appropriate for
  1865. the specified ABI. By default, FPR numbers are printed rather
  1866. than names.
  1867. 'cp0-names=ARCH'
  1868. Print CP0 (system control coprocessor; coprocessor 0) register
  1869. names as appropriate for the CPU or architecture specified by
  1870. ARCH. By default, CP0 register names are selected according
  1871. to the architecture and CPU of the binary being disassembled.
  1872. 'hwr-names=ARCH'
  1873. Print HWR (hardware register, used by the 'rdhwr' instruction)
  1874. names as appropriate for the CPU or architecture specified by
  1875. ARCH. By default, HWR names are selected according to the
  1876. architecture and CPU of the binary being disassembled.
  1877. 'reg-names=ABI'
  1878. Print GPR and FPR names as appropriate for the selected ABI.
  1879. 'reg-names=ARCH'
  1880. Print CPU-specific register names (CP0 register and HWR names)
  1881. as appropriate for the selected CPU or architecture.
  1882. For any of the options listed above, ABI or ARCH may be specified
  1883. as 'numeric' to have numbers printed rather than names, for the
  1884. selected types of registers. You can list the available values of
  1885. ABI and ARCH using the '--help' option.
  1886. For VAX, you can specify function entry addresses with '-M
  1887. entry:0xf00ba'. You can use this multiple times to properly
  1888. disassemble VAX binary files that don't contain symbol tables (like
  1889. ROM dumps). In these cases, the function entry mask would
  1890. otherwise be decoded as VAX instructions, which would probably lead
  1891. the rest of the function being wrongly disassembled.
  1892. '-p'
  1893. '--private-headers'
  1894. Print information that is specific to the object file format. The
  1895. exact information printed depends upon the object file format. For
  1896. some object file formats, no additional information is printed.
  1897. '-P OPTIONS'
  1898. '--private=OPTIONS'
  1899. Print information that is specific to the object file format. The
  1900. argument OPTIONS is a comma separated list that depends on the
  1901. format (the lists of options is displayed with the help).
  1902. For XCOFF, the available options are:
  1903. 'header'
  1904. 'aout'
  1905. 'sections'
  1906. 'syms'
  1907. 'relocs'
  1908. 'lineno,'
  1909. 'loader'
  1910. 'except'
  1911. 'typchk'
  1912. 'traceback'
  1913. 'toc'
  1914. 'ldinfo'
  1915. Not all object formats support this option. In particular the ELF
  1916. format does not use it.
  1917. '-r'
  1918. '--reloc'
  1919. Print the relocation entries of the file. If used with '-d' or
  1920. '-D', the relocations are printed interspersed with the
  1921. disassembly.
  1922. '-R'
  1923. '--dynamic-reloc'
  1924. Print the dynamic relocation entries of the file. This is only
  1925. meaningful for dynamic objects, such as certain types of shared
  1926. libraries. As for '-r', if used with '-d' or '-D', the relocations
  1927. are printed interspersed with the disassembly.
  1928. '-s'
  1929. '--full-contents'
  1930. Display the full contents of any sections requested. By default
  1931. all non-empty sections are displayed.
  1932. '-S'
  1933. '--source'
  1934. Display source code intermixed with disassembly, if possible.
  1935. Implies '-d'.
  1936. '--source-comment[=TXT]'
  1937. Like the '-S' option, but all source code lines are displayed with
  1938. a prefix of TXT. Typically TXT will be a comment string which can
  1939. be used to distinguish the assembler code from the source code. If
  1940. TXT is not provided then a default string of "# " (hash followed by
  1941. a space), will be used.
  1942. '--prefix=PREFIX'
  1943. Specify PREFIX to add to the absolute paths when used with '-S'.
  1944. '--prefix-strip=LEVEL'
  1945. Indicate how many initial directory names to strip off the
  1946. hardwired absolute paths. It has no effect without
  1947. '--prefix='PREFIX.
  1948. '--show-raw-insn'
  1949. When disassembling instructions, print the instruction in hex as
  1950. well as in symbolic form. This is the default except when
  1951. '--prefix-addresses' is used.
  1952. '--no-show-raw-insn'
  1953. When disassembling instructions, do not print the instruction
  1954. bytes. This is the default when '--prefix-addresses' is used.
  1955. '--insn-width=WIDTH'
  1956. Display WIDTH bytes on a single line when disassembling
  1957. instructions.
  1958. '--visualize-jumps[=color|=extended-color|=off]'
  1959. Visualize jumps that stay inside a function by drawing ASCII art
  1960. between the start and target addresses. The optional '=color'
  1961. argument adds color to the output using simple terminal colors.
  1962. Alternatively the '=extended-color' argument will add color using
  1963. 8bit colors, but these might not work on all terminals.
  1964. If it is necessary to disable the 'visualize-jumps' option after it
  1965. has previously been enabled then use 'visualize-jumps=off'.
  1966. '-W[lLiaprmfFsoORtUuTgAckK]'
  1967. '--dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow-links]'
  1968. Displays the contents of the DWARF debug sections in the file, if
  1969. any are present. Compressed debug sections are automatically
  1970. decompressed (temporarily) before they are displayed. If one or
  1971. more of the optional letters or words follows the switch then only
  1972. those type(s) of data will be dumped. The letters and words refer
  1973. to the following information:
  1974. 'a'
  1975. '=abbrev'
  1976. Displays the contents of the '.debug_abbrev' section.
  1977. 'A'
  1978. '=addr'
  1979. Displays the contents of the '.debug_addr' section.
  1980. 'c'
  1981. '=cu_index'
  1982. Displays the contents of the '.debug_cu_index' and/or
  1983. '.debug_tu_index' sections.
  1984. 'f'
  1985. '=frames'
  1986. Display the raw contents of a '.debug_frame' section.
  1987. 'F'
  1988. '=frame-interp'
  1989. Display the interpreted contents of a '.debug_frame' section.
  1990. 'g'
  1991. '=gdb_index'
  1992. Displays the contents of the '.gdb_index' and/or
  1993. '.debug_names' sections.
  1994. 'i'
  1995. '=info'
  1996. Displays the contents of the '.debug_info' section. Note: the
  1997. output from this option can also be restricted by the use of
  1998. the '--dwarf-depth' and '--dwarf-start' options.
  1999. 'k'
  2000. '=links'
  2001. Displays the contents of the '.gnu_debuglink' and/or
  2002. '.gnu_debugaltlink' sections. Also displays any links to
  2003. separate dwarf object files (dwo), if they are specified by
  2004. the DW_AT_GNU_dwo_name or DW_AT_dwo_name attributes in the
  2005. '.debug_info' section.
  2006. 'K'
  2007. '=follow-links'
  2008. Display the contents of any selected debug sections that are
  2009. found in linked, separate debug info file(s). This can result
  2010. in multiple versions of the same debug section being displayed
  2011. if it exists in more than one file.
  2012. In addition, when displaying DWARF attributes, if a form is
  2013. found that references the separate debug info file, then the
  2014. referenced contents will also be displayed.
  2015. 'l'
  2016. '=rawline'
  2017. Displays the contents of the '.debug_line' section in a raw
  2018. format.
  2019. 'L'
  2020. '=decodedline'
  2021. Displays the interpreted contents of the '.debug_line'
  2022. section.
  2023. 'm'
  2024. '=macro'
  2025. Displays the contents of the '.debug_macro' and/or
  2026. '.debug_macinfo' sections.
  2027. 'o'
  2028. '=loc'
  2029. Displays the contents of the '.debug_loc' and/or
  2030. '.debug_loclists' sections.
  2031. 'O'
  2032. '=str-offsets'
  2033. Displays the contents of the '.debug_str_offsets' section.
  2034. 'p'
  2035. '=pubnames'
  2036. Displays the contents of the '.debug_pubnames' and/or
  2037. '.debug_gnu_pubnames' sections.
  2038. 'r'
  2039. '=aranges'
  2040. Displays the contents of the '.debug_aranges' section.
  2041. 'R'
  2042. '=Ranges'
  2043. Displays the contents of the '.debug_ranges' and/or
  2044. '.debug_rnglists' sections.
  2045. 's'
  2046. '=str'
  2047. Displays the contents of the '.debug_str', '.debug_line_str'
  2048. and/or '.debug_str_offsets' sections.
  2049. 't'
  2050. '=pubtype'
  2051. Displays the contents of the '.debug_pubtypes' and/or
  2052. '.debug_gnu_pubtypes' sections.
  2053. 'T'
  2054. '=trace_aranges'
  2055. Displays the contents of the '.trace_aranges' section.
  2056. 'u'
  2057. '=trace_abbrev'
  2058. Displays the contents of the '.trace_abbrev' section.
  2059. 'U'
  2060. '=trace_info'
  2061. Displays the contents of the '.trace_info' section.
  2062. Note: displaying the contents of '.debug_static_funcs',
  2063. '.debug_static_vars' and 'debug_weaknames' sections is not
  2064. currently supported.
  2065. '--dwarf-depth=N'
  2066. Limit the dump of the '.debug_info' section to N children. This is
  2067. only useful with '--debug-dump=info'. The default is to print all
  2068. DIEs; the special value 0 for N will also have this effect.
  2069. With a non-zero value for N, DIEs at or deeper than N levels will
  2070. not be printed. The range for N is zero-based.
  2071. '--dwarf-start=N'
  2072. Print only DIEs beginning with the DIE numbered N. This is only
  2073. useful with '--debug-dump=info'.
  2074. If specified, this option will suppress printing of any header
  2075. information and all DIEs before the DIE numbered N. Only siblings
  2076. and children of the specified DIE will be printed.
  2077. This can be used in conjunction with '--dwarf-depth'.
  2078. '--dwarf-check'
  2079. Enable additional checks for consistency of Dwarf information.
  2080. '--ctf=SECTION'
  2081. Display the contents of the specified CTF section. CTF sections
  2082. themselves contain many subsections, all of which are displayed in
  2083. order.
  2084. '--ctf-parent=SECTION'
  2085. Specify the name of another section from which the CTF dictionary
  2086. can inherit types. (If none is specified, we assume the CTF
  2087. dictionary inherits types from the default-named member of the
  2088. archive contained within this section.)
  2089. '-G'
  2090. '--stabs'
  2091. Display the full contents of any sections requested. Display the
  2092. contents of the .stab and .stab.index and .stab.excl sections from
  2093. an ELF file. This is only useful on systems (such as Solaris 2.0)
  2094. in which '.stab' debugging symbol-table entries are carried in an
  2095. ELF section. In most other file formats, debugging symbol-table
  2096. entries are interleaved with linkage symbols, and are visible in
  2097. the '--syms' output.
  2098. '--start-address=ADDRESS'
  2099. Start displaying data at the specified address. This affects the
  2100. output of the '-d', '-r' and '-s' options.
  2101. '--stop-address=ADDRESS'
  2102. Stop displaying data at the specified address. This affects the
  2103. output of the '-d', '-r' and '-s' options.
  2104. '-t'
  2105. '--syms'
  2106. Print the symbol table entries of the file. This is similar to the
  2107. information provided by the 'nm' program, although the display
  2108. format is different. The format of the output depends upon the
  2109. format of the file being dumped, but there are two main types. One
  2110. looks like this:
  2111. [ 4](sec 3)(fl 0x00)(ty 0)(scl 3) (nx 1) 0x00000000 .bss
  2112. [ 6](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 fred
  2113. where the number inside the square brackets is the number of the
  2114. entry in the symbol table, the SEC number is the section number,
  2115. the FL value are the symbol's flag bits, the TY number is the
  2116. symbol's type, the SCL number is the symbol's storage class and the
  2117. NX value is the number of auxilary entries associated with the
  2118. symbol. The last two fields are the symbol's value and its name.
  2119. The other common output format, usually seen with ELF based files,
  2120. looks like this:
  2121. 00000000 l d .bss 00000000 .bss
  2122. 00000000 g .text 00000000 fred
  2123. Here the first number is the symbol's value (sometimes refered to
  2124. as its address). The next field is actually a set of characters
  2125. and spaces indicating the flag bits that are set on the symbol.
  2126. These characters are described below. Next is the section with
  2127. which the symbol is associated or _*ABS*_ if the section is
  2128. absolute (ie not connected with any section), or _*UND*_ if the
  2129. section is referenced in the file being dumped, but not defined
  2130. there.
  2131. After the section name comes another field, a number, which for
  2132. common symbols is the alignment and for other symbol is the size.
  2133. Finally the symbol's name is displayed.
  2134. The flag characters are divided into 7 groups as follows:
  2135. 'l'
  2136. 'g'
  2137. 'u'
  2138. '!'
  2139. The symbol is a local (l), global (g), unique global (u),
  2140. neither global nor local (a space) or both global and local
  2141. (!). A symbol can be neither local or global for a variety of
  2142. reasons, e.g., because it is used for debugging, but it is
  2143. probably an indication of a bug if it is ever both local and
  2144. global. Unique global symbols are a GNU extension to the
  2145. standard set of ELF symbol bindings. For such a symbol the
  2146. dynamic linker will make sure that in the entire process there
  2147. is just one symbol with this name and type in use.
  2148. 'w'
  2149. The symbol is weak (w) or strong (a space).
  2150. 'C'
  2151. The symbol denotes a constructor (C) or an ordinary symbol (a
  2152. space).
  2153. 'W'
  2154. The symbol is a warning (W) or a normal symbol (a space). A
  2155. warning symbol's name is a message to be displayed if the
  2156. symbol following the warning symbol is ever referenced.
  2157. 'I'
  2158. 'i'
  2159. The symbol is an indirect reference to another symbol (I), a
  2160. function to be evaluated during reloc processing (i) or a
  2161. normal symbol (a space).
  2162. 'd'
  2163. 'D'
  2164. The symbol is a debugging symbol (d) or a dynamic symbol (D)
  2165. or a normal symbol (a space).
  2166. 'F'
  2167. 'f'
  2168. 'O'
  2169. The symbol is the name of a function (F) or a file (f) or an
  2170. object (O) or just a normal symbol (a space).
  2171. '-T'
  2172. '--dynamic-syms'
  2173. Print the dynamic symbol table entries of the file. This is only
  2174. meaningful for dynamic objects, such as certain types of shared
  2175. libraries. This is similar to the information provided by the 'nm'
  2176. program when given the '-D' ('--dynamic') option.
  2177. The output format is similar to that produced by the '--syms'
  2178. option, except that an extra field is inserted before the symbol's
  2179. name, giving the version information associated with the symbol.
  2180. If the version is the default version to be used when resolving
  2181. unversioned references to the symbol then it's displayed as is,
  2182. otherwise it's put into parentheses.
  2183. '--special-syms'
  2184. When displaying symbols include those which the target considers to
  2185. be special in some way and which would not normally be of interest
  2186. to the user.
  2187. '-V'
  2188. '--version'
  2189. Print the version number of 'objdump' and exit.
  2190. '-x'
  2191. '--all-headers'
  2192. Display all available header information, including the symbol
  2193. table and relocation entries. Using '-x' is equivalent to
  2194. specifying all of '-a -f -h -p -r -t'.
  2195. '-w'
  2196. '--wide'
  2197. Format some lines for output devices that have more than 80
  2198. columns. Also do not truncate symbol names when they are
  2199. displayed.
  2200. '-z'
  2201. '--disassemble-zeroes'
  2202. Normally the disassembly output will skip blocks of zeroes. This
  2203. option directs the disassembler to disassemble those blocks, just
  2204. like any other data.
  2205. 
  2206. File: binutils.info, Node: ranlib, Next: size, Prev: objdump, Up: Top
  2207. 5 ranlib
  2208. ********
  2209. ranlib [--plugin NAME] [-DhHvVt] ARCHIVE
  2210. 'ranlib' generates an index to the contents of an archive and stores
  2211. it in the archive. The index lists each symbol defined by a member of
  2212. an archive that is a relocatable object file.
  2213. You may use 'nm -s' or 'nm --print-armap' to list this index.
  2214. An archive with such an index speeds up linking to the library and
  2215. allows routines in the library to call each other without regard to
  2216. their placement in the archive.
  2217. The GNU 'ranlib' program is another form of GNU 'ar'; running
  2218. 'ranlib' is completely equivalent to executing 'ar -s'. *Note ar::.
  2219. '-h'
  2220. '-H'
  2221. '--help'
  2222. Show usage information for 'ranlib'.
  2223. '-v'
  2224. '-V'
  2225. '--version'
  2226. Show the version number of 'ranlib'.
  2227. '-D'
  2228. Operate in _deterministic_ mode. The symbol map archive member's
  2229. header will show zero for the UID, GID, and timestamp. When this
  2230. option is used, multiple runs will produce identical output files.
  2231. If 'binutils' was configured with
  2232. '--enable-deterministic-archives', then this mode is on by default.
  2233. It can be disabled with the '-U' option, described below.
  2234. '-t'
  2235. Update the timestamp of the symbol map of an archive.
  2236. '-U'
  2237. Do _not_ operate in _deterministic_ mode. This is the inverse of
  2238. the '-D' option, above: the archive index will get actual UID, GID,
  2239. timestamp, and file mode values.
  2240. If 'binutils' was configured _without_
  2241. '--enable-deterministic-archives', then this mode is on by default.
  2242. 
  2243. File: binutils.info, Node: size, Next: strings, Prev: ranlib, Up: Top
  2244. 6 size
  2245. ******
  2246. size [-A|-B|-G|--format=COMPATIBILITY]
  2247. [--help]
  2248. [-d|-o|-x|--radix=NUMBER]
  2249. [--common]
  2250. [-t|--totals]
  2251. [--target=BFDNAME] [-V|--version]
  2252. [OBJFILE...]
  2253. The GNU 'size' utility lists the section sizes and the total size for
  2254. each of the binary files OBJFILE on its argument list. By default, one
  2255. line of output is generated for each file or each module if the file is
  2256. an archive.
  2257. OBJFILE... are the files to be examined. If none are specified, the
  2258. file 'a.out' will be used instead.
  2259. The command-line options have the following meanings:
  2260. '-A'
  2261. '-B'
  2262. '-G'
  2263. '--format=COMPATIBILITY'
  2264. Using one of these options, you can choose whether the output from
  2265. GNU 'size' resembles output from System V 'size' (using '-A', or
  2266. '--format=sysv'), or Berkeley 'size' (using '-B', or
  2267. '--format=berkeley'). The default is the one-line format similar
  2268. to Berkeley's. Alternatively, you can choose the GNU format output
  2269. (using '-G', or '--format=gnu'), this is similar to Berkeley's
  2270. output format, but sizes are counted differently.
  2271. Here is an example of the Berkeley (default) format of output from
  2272. 'size':
  2273. $ size --format=Berkeley ranlib size
  2274. text data bss dec hex filename
  2275. 294880 81920 11592 388392 5ed28 ranlib
  2276. 294880 81920 11888 388688 5ee50 size
  2277. The Berkeley style output counts read only data in the 'text'
  2278. column, not in the 'data' column, the 'dec' and 'hex' columns both
  2279. display the sum of the 'text', 'data', and 'bss' columns in decimal
  2280. and hexadecimal respectively.
  2281. The GNU format counts read only data in the 'data' column, not the
  2282. 'text' column, and only displays the sum of the 'text', 'data', and
  2283. 'bss' columns once, in the 'total' column. The '--radix' option
  2284. can be used to change the number base for all columns. Here is the
  2285. same data displayed with GNU conventions:
  2286. $ size --format=GNU ranlib size
  2287. text data bss total filename
  2288. 279880 96920 11592 388392 ranlib
  2289. 279880 96920 11888 388688 size
  2290. This is the same data, but displayed closer to System V
  2291. conventions:
  2292. $ size --format=SysV ranlib size
  2293. ranlib :
  2294. section size addr
  2295. .text 294880 8192
  2296. .data 81920 303104
  2297. .bss 11592 385024
  2298. Total 388392
  2299. size :
  2300. section size addr
  2301. .text 294880 8192
  2302. .data 81920 303104
  2303. .bss 11888 385024
  2304. Total 388688
  2305. '--help'
  2306. Show a summary of acceptable arguments and options.
  2307. '-d'
  2308. '-o'
  2309. '-x'
  2310. '--radix=NUMBER'
  2311. Using one of these options, you can control whether the size of
  2312. each section is given in decimal ('-d', or '--radix=10'); octal
  2313. ('-o', or '--radix=8'); or hexadecimal ('-x', or '--radix=16'). In
  2314. '--radix=NUMBER', only the three values (8, 10, 16) are supported.
  2315. The total size is always given in two radices; decimal and
  2316. hexadecimal for '-d' or '-x' output, or octal and hexadecimal if
  2317. you're using '-o'.
  2318. '--common'
  2319. Print total size of common symbols in each file. When using
  2320. Berkeley or GNU format these are included in the bss size.
  2321. '-t'
  2322. '--totals'
  2323. Show totals of all objects listed (Berkeley or GNU format mode
  2324. only).
  2325. '--target=BFDNAME'
  2326. Specify that the object-code format for OBJFILE is BFDNAME. This
  2327. option may not be necessary; 'size' can automatically recognize
  2328. many formats. *Note Target Selection::, for more information.
  2329. '-V'
  2330. '--version'
  2331. Display the version number of 'size'.
  2332. 
  2333. File: binutils.info, Node: strings, Next: strip, Prev: size, Up: Top
  2334. 7 strings
  2335. *********
  2336. strings [-afovV] [-MIN-LEN]
  2337. [-n MIN-LEN] [--bytes=MIN-LEN]
  2338. [-t RADIX] [--radix=RADIX]
  2339. [-e ENCODING] [--encoding=ENCODING]
  2340. [-] [--all] [--print-file-name]
  2341. [-T BFDNAME] [--target=BFDNAME]
  2342. [-w] [--include-all-whitespace]
  2343. [-s] [--output-separatorSEP_STRING]
  2344. [--help] [--version] FILE...
  2345. For each FILE given, GNU 'strings' prints the printable character
  2346. sequences that are at least 4 characters long (or the number given with
  2347. the options below) and are followed by an unprintable character.
  2348. Depending upon how the strings program was configured it will default
  2349. to either displaying all the printable sequences that it can find in
  2350. each file, or only those sequences that are in loadable, initialized
  2351. data sections. If the file type is unrecognizable, or if strings is
  2352. reading from stdin then it will always display all of the printable
  2353. sequences that it can find.
  2354. For backwards compatibility any file that occurs after a command-line
  2355. option of just '-' will also be scanned in full, regardless of the
  2356. presence of any '-d' option.
  2357. 'strings' is mainly useful for determining the contents of non-text
  2358. files.
  2359. '-a'
  2360. '--all'
  2361. '-'
  2362. Scan the whole file, regardless of what sections it contains or
  2363. whether those sections are loaded or initialized. Normally this is
  2364. the default behaviour, but strings can be configured so that the
  2365. '-d' is the default instead.
  2366. The '-' option is position dependent and forces strings to perform
  2367. full scans of any file that is mentioned after the '-' on the
  2368. command line, even if the '-d' option has been specified.
  2369. '-d'
  2370. '--data'
  2371. Only print strings from initialized, loaded data sections in the
  2372. file. This may reduce the amount of garbage in the output, but it
  2373. also exposes the strings program to any security flaws that may be
  2374. present in the BFD library used to scan and load sections. Strings
  2375. can be configured so that this option is the default behaviour. In
  2376. such cases the '-a' option can be used to avoid using the BFD
  2377. library and instead just print all of the strings found in the
  2378. file.
  2379. '-f'
  2380. '--print-file-name'
  2381. Print the name of the file before each string.
  2382. '--help'
  2383. Print a summary of the program usage on the standard output and
  2384. exit.
  2385. '-MIN-LEN'
  2386. '-n MIN-LEN'
  2387. '--bytes=MIN-LEN'
  2388. Print sequences of characters that are at least MIN-LEN characters
  2389. long, instead of the default 4.
  2390. '-o'
  2391. Like '-t o'. Some other versions of 'strings' have '-o' act like
  2392. '-t d' instead. Since we can not be compatible with both ways, we
  2393. simply chose one.
  2394. '-t RADIX'
  2395. '--radix=RADIX'
  2396. Print the offset within the file before each string. The single
  2397. character argument specifies the radix of the offset--'o' for
  2398. octal, 'x' for hexadecimal, or 'd' for decimal.
  2399. '-e ENCODING'
  2400. '--encoding=ENCODING'
  2401. Select the character encoding of the strings that are to be found.
  2402. Possible values for ENCODING are: 's' = single-7-bit-byte
  2403. characters (ASCII, ISO 8859, etc., default), 'S' =
  2404. single-8-bit-byte characters, 'b' = 16-bit bigendian, 'l' = 16-bit
  2405. littleendian, 'B' = 32-bit bigendian, 'L' = 32-bit littleendian.
  2406. Useful for finding wide character strings. ('l' and 'b' apply to,
  2407. for example, Unicode UTF-16/UCS-2 encodings).
  2408. '-T BFDNAME'
  2409. '--target=BFDNAME'
  2410. Specify an object code format other than your system's default
  2411. format. *Note Target Selection::, for more information.
  2412. '-v'
  2413. '-V'
  2414. '--version'
  2415. Print the program version number on the standard output and exit.
  2416. '-w'
  2417. '--include-all-whitespace'
  2418. By default tab and space characters are included in the strings
  2419. that are displayed, but other whitespace characters, such a
  2420. newlines and carriage returns, are not. The '-w' option changes
  2421. this so that all whitespace characters are considered to be part of
  2422. a string.
  2423. '-s'
  2424. '--output-separator'
  2425. By default, output strings are delimited by a new-line. This
  2426. option allows you to supply any string to be used as the output
  2427. record separator. Useful with -include-all-whitespace where
  2428. strings may contain new-lines internally.
  2429. 
  2430. File: binutils.info, Node: strip, Next: c++filt, Prev: strings, Up: Top
  2431. 8 strip
  2432. *******
  2433. strip [-F BFDNAME |--target=BFDNAME]
  2434. [-I BFDNAME |--input-target=BFDNAME]
  2435. [-O BFDNAME |--output-target=BFDNAME]
  2436. [-s|--strip-all]
  2437. [-S|-g|-d|--strip-debug]
  2438. [--strip-dwo]
  2439. [-K SYMBOLNAME|--keep-symbol=SYMBOLNAME]
  2440. [-M|--merge-notes][--no-merge-notes]
  2441. [-N SYMBOLNAME |--strip-symbol=SYMBOLNAME]
  2442. [-w|--wildcard]
  2443. [-x|--discard-all] [-X |--discard-locals]
  2444. [-R SECTIONNAME |--remove-section=SECTIONNAME]
  2445. [--keep-section=SECTIONPATTERN]
  2446. [--remove-relocations=SECTIONPATTERN]
  2447. [-o FILE] [-p|--preserve-dates]
  2448. [-D|--enable-deterministic-archives]
  2449. [-U|--disable-deterministic-archives]
  2450. [--keep-file-symbols]
  2451. [--only-keep-debug]
  2452. [-v |--verbose] [-V|--version]
  2453. [--help] [--info]
  2454. OBJFILE...
  2455. GNU 'strip' discards all symbols from object files OBJFILE. The list
  2456. of object files may include archives. At least one object file must be
  2457. given.
  2458. 'strip' modifies the files named in its argument, rather than writing
  2459. modified copies under different names.
  2460. '-F BFDNAME'
  2461. '--target=BFDNAME'
  2462. Treat the original OBJFILE as a file with the object code format
  2463. BFDNAME, and rewrite it in the same format. *Note Target
  2464. Selection::, for more information.
  2465. '--help'
  2466. Show a summary of the options to 'strip' and exit.
  2467. '--info'
  2468. Display a list showing all architectures and object formats
  2469. available.
  2470. '-I BFDNAME'
  2471. '--input-target=BFDNAME'
  2472. Treat the original OBJFILE as a file with the object code format
  2473. BFDNAME. *Note Target Selection::, for more information.
  2474. '-O BFDNAME'
  2475. '--output-target=BFDNAME'
  2476. Replace OBJFILE with a file in the output format BFDNAME. *Note
  2477. Target Selection::, for more information.
  2478. '-R SECTIONNAME'
  2479. '--remove-section=SECTIONNAME'
  2480. Remove any section named SECTIONNAME from the output file, in
  2481. addition to whatever sections would otherwise be removed. This
  2482. option may be given more than once. Note that using this option
  2483. inappropriately may make the output file unusable. The wildcard
  2484. character '*' may be given at the end of SECTIONNAME. If so, then
  2485. any section starting with SECTIONNAME will be removed.
  2486. If the first character of SECTIONPATTERN is the exclamation point
  2487. (!) then matching sections will not be removed even if an earlier
  2488. use of '--remove-section' on the same command line would otherwise
  2489. remove it. For example:
  2490. --remove-section=.text.* --remove-section=!.text.foo
  2491. will remove all sections matching the pattern '.text.*', but will
  2492. not remove the section '.text.foo'.
  2493. '--keep-section=SECTIONPATTERN'
  2494. When removing sections from the output file, keep sections that
  2495. match SECTIONPATTERN.
  2496. '--remove-relocations=SECTIONPATTERN'
  2497. Remove relocations from the output file for any section matching
  2498. SECTIONPATTERN. This option may be given more than once. Note
  2499. that using this option inappropriately may make the output file
  2500. unusable. Wildcard characters are accepted in SECTIONPATTERN. For
  2501. example:
  2502. --remove-relocations=.text.*
  2503. will remove the relocations for all sections matching the patter
  2504. '.text.*'.
  2505. If the first character of SECTIONPATTERN is the exclamation point
  2506. (!) then matching sections will not have their relocation removed
  2507. even if an earlier use of '--remove-relocations' on the same
  2508. command line would otherwise cause the relocations to be removed.
  2509. For example:
  2510. --remove-relocations=.text.* --remove-relocations=!.text.foo
  2511. will remove all relocations for sections matching the pattern
  2512. '.text.*', but will not remove relocations for the section
  2513. '.text.foo'.
  2514. '-s'
  2515. '--strip-all'
  2516. Remove all symbols.
  2517. '-g'
  2518. '-S'
  2519. '-d'
  2520. '--strip-debug'
  2521. Remove debugging symbols only.
  2522. '--strip-dwo'
  2523. Remove the contents of all DWARF .dwo sections, leaving the
  2524. remaining debugging sections and all symbols intact. See the
  2525. description of this option in the 'objcopy' section for more
  2526. information.
  2527. '--strip-unneeded'
  2528. Remove all symbols that are not needed for relocation processing.
  2529. '-K SYMBOLNAME'
  2530. '--keep-symbol=SYMBOLNAME'
  2531. When stripping symbols, keep symbol SYMBOLNAME even if it would
  2532. normally be stripped. This option may be given more than once.
  2533. '-M'
  2534. '--merge-notes'
  2535. '--no-merge-notes'
  2536. For ELF files, attempt (or do not attempt) to reduce the size of
  2537. any SHT_NOTE type sections by removing duplicate notes. The
  2538. default is to attempt this reduction unless stripping debug or DWO
  2539. information.
  2540. '-N SYMBOLNAME'
  2541. '--strip-symbol=SYMBOLNAME'
  2542. Remove symbol SYMBOLNAME from the source file. This option may be
  2543. given more than once, and may be combined with strip options other
  2544. than '-K'.
  2545. '-o FILE'
  2546. Put the stripped output in FILE, rather than replacing the existing
  2547. file. When this argument is used, only one OBJFILE argument may be
  2548. specified.
  2549. '-p'
  2550. '--preserve-dates'
  2551. Preserve the access and modification dates of the file.
  2552. '-D'
  2553. '--enable-deterministic-archives'
  2554. Operate in _deterministic_ mode. When copying archive members and
  2555. writing the archive index, use zero for UIDs, GIDs, timestamps, and
  2556. use consistent file modes for all files.
  2557. If 'binutils' was configured with
  2558. '--enable-deterministic-archives', then this mode is on by default.
  2559. It can be disabled with the '-U' option, below.
  2560. '-U'
  2561. '--disable-deterministic-archives'
  2562. Do _not_ operate in _deterministic_ mode. This is the inverse of
  2563. the '-D' option, above: when copying archive members and writing
  2564. the archive index, use their actual UID, GID, timestamp, and file
  2565. mode values.
  2566. This is the default unless 'binutils' was configured with
  2567. '--enable-deterministic-archives'.
  2568. '-w'
  2569. '--wildcard'
  2570. Permit regular expressions in SYMBOLNAMEs used in other command
  2571. line options. The question mark (?), asterisk (*), backslash (\)
  2572. and square brackets ([]) operators can be used anywhere in the
  2573. symbol name. If the first character of the symbol name is the
  2574. exclamation point (!) then the sense of the switch is reversed for
  2575. that symbol. For example:
  2576. -w -K !foo -K fo*
  2577. would cause strip to only keep symbols that start with the letters
  2578. "fo", but to discard the symbol "foo".
  2579. '-x'
  2580. '--discard-all'
  2581. Remove non-global symbols.
  2582. '-X'
  2583. '--discard-locals'
  2584. Remove compiler-generated local symbols. (These usually start with
  2585. 'L' or '.'.)
  2586. '--keep-file-symbols'
  2587. When stripping a file, perhaps with '--strip-debug' or
  2588. '--strip-unneeded', retain any symbols specifying source file
  2589. names, which would otherwise get stripped.
  2590. '--only-keep-debug'
  2591. Strip a file, emptying the contents of any sections that would not
  2592. be stripped by '--strip-debug' and leaving the debugging sections
  2593. intact. In ELF files, this preserves all the note sections in the
  2594. output as well.
  2595. Note - the section headers of the stripped sections are preserved,
  2596. including their sizes, but the contents of the section are
  2597. discarded. The section headers are preserved so that other tools
  2598. can match up the debuginfo file with the real executable, even if
  2599. that executable has been relocated to a different address space.
  2600. The intention is that this option will be used in conjunction with
  2601. '--add-gnu-debuglink' to create a two part executable. One a
  2602. stripped binary which will occupy less space in RAM and in a
  2603. distribution and the second a debugging information file which is
  2604. only needed if debugging abilities are required. The suggested
  2605. procedure to create these files is as follows:
  2606. 1. Link the executable as normal. Assuming that it is called
  2607. 'foo' then...
  2608. 2. Run 'objcopy --only-keep-debug foo foo.dbg' to create a file
  2609. containing the debugging info.
  2610. 3. Run 'objcopy --strip-debug foo' to create a stripped
  2611. executable.
  2612. 4. Run 'objcopy --add-gnu-debuglink=foo.dbg foo' to add a link to
  2613. the debugging info into the stripped executable.
  2614. Note--the choice of '.dbg' as an extension for the debug info file
  2615. is arbitrary. Also the '--only-keep-debug' step is optional. You
  2616. could instead do this:
  2617. 1. Link the executable as normal.
  2618. 2. Copy 'foo' to 'foo.full'
  2619. 3. Run 'strip --strip-debug foo'
  2620. 4. Run 'objcopy --add-gnu-debuglink=foo.full foo'
  2621. i.e., the file pointed to by the '--add-gnu-debuglink' can be the
  2622. full executable. It does not have to be a file created by the
  2623. '--only-keep-debug' switch.
  2624. Note--this switch is only intended for use on fully linked files.
  2625. It does not make sense to use it on object files where the
  2626. debugging information may be incomplete. Besides the gnu_debuglink
  2627. feature currently only supports the presence of one filename
  2628. containing debugging information, not multiple filenames on a
  2629. one-per-object-file basis.
  2630. '-V'
  2631. '--version'
  2632. Show the version number for 'strip'.
  2633. '-v'
  2634. '--verbose'
  2635. Verbose output: list all object files modified. In the case of
  2636. archives, 'strip -v' lists all members of the archive.
  2637. 
  2638. File: binutils.info, Node: c++filt, Next: addr2line, Prev: strip, Up: Top
  2639. 9 c++filt
  2640. *********
  2641. c++filt [-_|--strip-underscore]
  2642. [-n|--no-strip-underscore]
  2643. [-p|--no-params]
  2644. [-t|--types]
  2645. [-i|--no-verbose]
  2646. [-r|--no-recurse-limit]
  2647. [-R|--recurse-limit]
  2648. [-s FORMAT|--format=FORMAT]
  2649. [--help] [--version] [SYMBOL...]
  2650. The C++ and Java languages provide function overloading, which means
  2651. that you can write many functions with the same name, providing that
  2652. each function takes parameters of different types. In order to be able
  2653. to distinguish these similarly named functions C++ and Java encode them
  2654. into a low-level assembler name which uniquely identifies each different
  2655. version. This process is known as "mangling". The 'c++filt' (1)
  2656. program does the inverse mapping: it decodes ("demangles") low-level
  2657. names into user-level names so that they can be read.
  2658. Every alphanumeric word (consisting of letters, digits, underscores,
  2659. dollars, or periods) seen in the input is a potential mangled name. If
  2660. the name decodes into a C++ name, the C++ name replaces the low-level
  2661. name in the output, otherwise the original word is output. In this way
  2662. you can pass an entire assembler source file, containing mangled names,
  2663. through 'c++filt' and see the same source file containing demangled
  2664. names.
  2665. You can also use 'c++filt' to decipher individual symbols by passing
  2666. them on the command line:
  2667. c++filt SYMBOL
  2668. If no SYMBOL arguments are given, 'c++filt' reads symbol names from
  2669. the standard input instead. All the results are printed on the standard
  2670. output. The difference between reading names from the command line
  2671. versus reading names from the standard input is that command-line
  2672. arguments are expected to be just mangled names and no checking is
  2673. performed to separate them from surrounding text. Thus for example:
  2674. c++filt -n _Z1fv
  2675. will work and demangle the name to "f()" whereas:
  2676. c++filt -n _Z1fv,
  2677. will not work. (Note the extra comma at the end of the mangled name
  2678. which makes it invalid). This command however will work:
  2679. echo _Z1fv, | c++filt -n
  2680. and will display "f(),", i.e., the demangled name followed by a
  2681. trailing comma. This behaviour is because when the names are read from
  2682. the standard input it is expected that they might be part of an
  2683. assembler source file where there might be extra, extraneous characters
  2684. trailing after a mangled name. For example:
  2685. .type _Z1fv, @function
  2686. '-_'
  2687. '--strip-underscore'
  2688. On some systems, both the C and C++ compilers put an underscore in
  2689. front of every name. For example, the C name 'foo' gets the
  2690. low-level name '_foo'. This option removes the initial underscore.
  2691. Whether 'c++filt' removes the underscore by default is target
  2692. dependent.
  2693. '-n'
  2694. '--no-strip-underscore'
  2695. Do not remove the initial underscore.
  2696. '-p'
  2697. '--no-params'
  2698. When demangling the name of a function, do not display the types of
  2699. the function's parameters.
  2700. '-t'
  2701. '--types'
  2702. Attempt to demangle types as well as function names. This is
  2703. disabled by default since mangled types are normally only used
  2704. internally in the compiler, and they can be confused with
  2705. non-mangled names. For example, a function called "a" treated as a
  2706. mangled type name would be demangled to "signed char".
  2707. '-i'
  2708. '--no-verbose'
  2709. Do not include implementation details (if any) in the demangled
  2710. output.
  2711. '-r'
  2712. '-R'
  2713. '--recurse-limit'
  2714. '--no-recurse-limit'
  2715. '--recursion-limit'
  2716. '--no-recursion-limit'
  2717. Enables or disables a limit on the amount of recursion performed
  2718. whilst demangling strings. Since the name mangling formats allow
  2719. for an inifinite level of recursion it is possible to create
  2720. strings whose decoding will exhaust the amount of stack space
  2721. available on the host machine, triggering a memory fault. The
  2722. limit tries to prevent this from happening by restricting recursion
  2723. to 2048 levels of nesting.
  2724. The default is for this limit to be enabled, but disabling it may
  2725. be necessary in order to demangle truly complicated names. Note
  2726. however that if the recursion limit is disabled then stack
  2727. exhaustion is possible and any bug reports about such an event will
  2728. be rejected.
  2729. The '-r' option is a synonym for the '--no-recurse-limit' option.
  2730. The '-R' option is a synonym for the '--recurse-limit' option.
  2731. '-s FORMAT'
  2732. '--format=FORMAT'
  2733. 'c++filt' can decode various methods of mangling, used by different
  2734. compilers. The argument to this option selects which method it
  2735. uses:
  2736. 'auto'
  2737. Automatic selection based on executable (the default method)
  2738. 'gnu'
  2739. the one used by the GNU C++ compiler (g++)
  2740. 'lucid'
  2741. the one used by the Lucid compiler (lcc)
  2742. 'arm'
  2743. the one specified by the C++ Annotated Reference Manual
  2744. 'hp'
  2745. the one used by the HP compiler (aCC)
  2746. 'edg'
  2747. the one used by the EDG compiler
  2748. 'gnu-v3'
  2749. the one used by the GNU C++ compiler (g++) with the V3 ABI.
  2750. 'java'
  2751. the one used by the GNU Java compiler (gcj)
  2752. 'gnat'
  2753. the one used by the GNU Ada compiler (GNAT).
  2754. '--help'
  2755. Print a summary of the options to 'c++filt' and exit.
  2756. '--version'
  2757. Print the version number of 'c++filt' and exit.
  2758. _Warning:_ 'c++filt' is a new utility, and the details of its user
  2759. interface are subject to change in future releases. In particular,
  2760. a command-line option may be required in the future to decode a
  2761. name passed as an argument on the command line; in other words,
  2762. c++filt SYMBOL
  2763. may in a future release become
  2764. c++filt OPTION SYMBOL
  2765. ---------- Footnotes ----------
  2766. (1) MS-DOS does not allow '+' characters in file names, so on MS-DOS
  2767. this program is named 'CXXFILT'.
  2768. 
  2769. File: binutils.info, Node: addr2line, Next: windmc, Prev: c++filt, Up: Top
  2770. 10 addr2line
  2771. ************
  2772. addr2line [-a|--addresses]
  2773. [-b BFDNAME|--target=BFDNAME]
  2774. [-C|--demangle[=STYLE]]
  2775. [-r|--no-recurse-limit]
  2776. [-R|--recurse-limit]
  2777. [-e FILENAME|--exe=FILENAME]
  2778. [-f|--functions] [-s|--basename]
  2779. [-i|--inlines]
  2780. [-p|--pretty-print]
  2781. [-j|--section=NAME]
  2782. [-H|--help] [-V|--version]
  2783. [addr addr ...]
  2784. 'addr2line' translates addresses into file names and line numbers.
  2785. Given an address in an executable or an offset in a section of a
  2786. relocatable object, it uses the debugging information to figure out
  2787. which file name and line number are associated with it.
  2788. The executable or relocatable object to use is specified with the
  2789. '-e' option. The default is the file 'a.out'. The section in the
  2790. relocatable object to use is specified with the '-j' option.
  2791. 'addr2line' has two modes of operation.
  2792. In the first, hexadecimal addresses are specified on the command
  2793. line, and 'addr2line' displays the file name and line number for each
  2794. address.
  2795. In the second, 'addr2line' reads hexadecimal addresses from standard
  2796. input, and prints the file name and line number for each address on
  2797. standard output. In this mode, 'addr2line' may be used in a pipe to
  2798. convert dynamically chosen addresses.
  2799. The format of the output is 'FILENAME:LINENO'. By default each input
  2800. address generates one line of output.
  2801. Two options can generate additional lines before each
  2802. 'FILENAME:LINENO' line (in that order).
  2803. If the '-a' option is used then a line with the input address is
  2804. displayed.
  2805. If the '-f' option is used, then a line with the 'FUNCTIONNAME' is
  2806. displayed. This is the name of the function containing the address.
  2807. One option can generate additional lines after the 'FILENAME:LINENO'
  2808. line.
  2809. If the '-i' option is used and the code at the given address is
  2810. present there because of inlining by the compiler then additional lines
  2811. are displayed afterwards. One or two extra lines (if the '-f' option is
  2812. used) are displayed for each inlined function.
  2813. Alternatively if the '-p' option is used then each input address
  2814. generates a single, long, output line containing the address, the
  2815. function name, the file name and the line number. If the '-i' option
  2816. has also been used then any inlined functions will be displayed in the
  2817. same manner, but on separate lines, and prefixed by the text '(inlined
  2818. by)'.
  2819. If the file name or function name can not be determined, 'addr2line'
  2820. will print two question marks in their place. If the line number can
  2821. not be determined, 'addr2line' will print 0.
  2822. The long and short forms of options, shown here as alternatives, are
  2823. equivalent.
  2824. '-a'
  2825. '--addresses'
  2826. Display the address before the function name, file and line number
  2827. information. The address is printed with a '0x' prefix to easily
  2828. identify it.
  2829. '-b BFDNAME'
  2830. '--target=BFDNAME'
  2831. Specify that the object-code format for the object files is
  2832. BFDNAME.
  2833. '-C'
  2834. '--demangle[=STYLE]'
  2835. Decode ("demangle") low-level symbol names into user-level names.
  2836. Besides removing any initial underscore prepended by the system,
  2837. this makes C++ function names readable. Different compilers have
  2838. different mangling styles. The optional demangling style argument
  2839. can be used to choose an appropriate demangling style for your
  2840. compiler. *Note c++filt::, for more information on demangling.
  2841. '-e FILENAME'
  2842. '--exe=FILENAME'
  2843. Specify the name of the executable for which addresses should be
  2844. translated. The default file is 'a.out'.
  2845. '-f'
  2846. '--functions'
  2847. Display function names as well as file and line number information.
  2848. '-s'
  2849. '--basenames'
  2850. Display only the base of each file name.
  2851. '-i'
  2852. '--inlines'
  2853. If the address belongs to a function that was inlined, the source
  2854. information for all enclosing scopes back to the first non-inlined
  2855. function will also be printed. For example, if 'main' inlines
  2856. 'callee1' which inlines 'callee2', and address is from 'callee2',
  2857. the source information for 'callee1' and 'main' will also be
  2858. printed.
  2859. '-j'
  2860. '--section'
  2861. Read offsets relative to the specified section instead of absolute
  2862. addresses.
  2863. '-p'
  2864. '--pretty-print'
  2865. Make the output more human friendly: each location are printed on
  2866. one line. If option '-i' is specified, lines for all enclosing
  2867. scopes are prefixed with '(inlined by)'.
  2868. '-r'
  2869. '-R'
  2870. '--recurse-limit'
  2871. '--no-recurse-limit'
  2872. '--recursion-limit'
  2873. '--no-recursion-limit'
  2874. Enables or disables a limit on the amount of recursion performed
  2875. whilst demangling strings. Since the name mangling formats allow
  2876. for an inifinite level of recursion it is possible to create
  2877. strings whose decoding will exhaust the amount of stack space
  2878. available on the host machine, triggering a memory fault. The
  2879. limit tries to prevent this from happening by restricting recursion
  2880. to 2048 levels of nesting.
  2881. The default is for this limit to be enabled, but disabling it may
  2882. be necessary in order to demangle truly complicated names. Note
  2883. however that if the recursion limit is disabled then stack
  2884. exhaustion is possible and any bug reports about such an event will
  2885. be rejected.
  2886. The '-r' option is a synonym for the '--no-recurse-limit' option.
  2887. The '-R' option is a synonym for the '--recurse-limit' option.
  2888. Note this option is only effective if the '-C' or '--demangle'
  2889. option has been enabled.
  2890. 
  2891. File: binutils.info, Node: windmc, Next: windres, Prev: addr2line, Up: Top
  2892. 11 windmc
  2893. *********
  2894. 'windmc' may be used to generator Windows message resources.
  2895. _Warning:_ 'windmc' is not always built as part of the binary
  2896. utilities, since it is only useful for Windows targets.
  2897. windmc [options] input-file
  2898. 'windmc' reads message definitions from an input file (.mc) and
  2899. translate them into a set of output files. The output files may be of
  2900. four kinds:
  2901. 'h'
  2902. A C header file containing the message definitions.
  2903. 'rc'
  2904. A resource file compilable by the 'windres' tool.
  2905. 'bin'
  2906. One or more binary files containing the resource data for a
  2907. specific message language.
  2908. 'dbg'
  2909. A C include file that maps message id's to their symbolic name.
  2910. The exact description of these different formats is available in
  2911. documentation from Microsoft.
  2912. When 'windmc' converts from the 'mc' format to the 'bin' format,
  2913. 'rc', 'h', and optional 'dbg' it is acting like the Windows Message
  2914. Compiler.
  2915. '-a'
  2916. '--ascii_in'
  2917. Specifies that the input file specified is ASCII. This is the
  2918. default behaviour.
  2919. '-A'
  2920. '--ascii_out'
  2921. Specifies that messages in the output 'bin' files should be in
  2922. ASCII format.
  2923. '-b'
  2924. '--binprefix'
  2925. Specifies that 'bin' filenames should have to be prefixed by the
  2926. basename of the source file.
  2927. '-c'
  2928. '--customflag'
  2929. Sets the customer bit in all message id's.
  2930. '-C CODEPAGE'
  2931. '--codepage_in CODEPAGE'
  2932. Sets the default codepage to be used to convert input file to
  2933. UTF16. The default is ocdepage 1252.
  2934. '-d'
  2935. '--decimal_values'
  2936. Outputs the constants in the header file in decimal. Default is
  2937. using hexadecimal output.
  2938. '-e EXT'
  2939. '--extension EXT'
  2940. The extension for the header file. The default is .h extension.
  2941. '-F TARGET'
  2942. '--target TARGET'
  2943. Specify the BFD format to use for a bin file as output. This is a
  2944. BFD target name; you can use the '--help' option to see a list of
  2945. supported targets. Normally 'windmc' will use the default format,
  2946. which is the first one listed by the '--help' option. *note Target
  2947. Selection::.
  2948. '-h PATH'
  2949. '--headerdir PATH'
  2950. The target directory of the generated header file. The default is
  2951. the current directory.
  2952. '-H'
  2953. '--help'
  2954. Displays a list of command-line options and then exits.
  2955. '-m CHARACTERS'
  2956. '--maxlength CHARACTERS'
  2957. Instructs 'windmc' to generate a warning if the length of any
  2958. message exceeds the number specified.
  2959. '-n'
  2960. '--nullterminate'
  2961. Terminate message text in 'bin' files by zero. By default they are
  2962. terminated by CR/LF.
  2963. '-o'
  2964. '--hresult_use'
  2965. Not yet implemented. Instructs 'windmc' to generate an OLE2 header
  2966. file, using HRESULT definitions. Status codes are used if the flag
  2967. is not specified.
  2968. '-O CODEPAGE'
  2969. '--codepage_out CODEPAGE'
  2970. Sets the default codepage to be used to output text files. The
  2971. default is ocdepage 1252.
  2972. '-r PATH'
  2973. '--rcdir PATH'
  2974. The target directory for the generated 'rc' script and the
  2975. generated 'bin' files that the resource compiler script includes.
  2976. The default is the current directory.
  2977. '-u'
  2978. '--unicode_in'
  2979. Specifies that the input file is UTF16.
  2980. '-U'
  2981. '--unicode_out'
  2982. Specifies that messages in the output 'bin' file should be in UTF16
  2983. format. This is the default behaviour.
  2984. '-v'
  2985. '--verbose'
  2986. Enable verbose mode.
  2987. '-V'
  2988. '--version'
  2989. Prints the version number for 'windmc'.
  2990. '-x PATH'
  2991. '--xdgb PATH'
  2992. The path of the 'dbg' C include file that maps message id's to the
  2993. symbolic name. No such file is generated without specifying the
  2994. switch.
  2995. 
  2996. File: binutils.info, Node: windres, Next: dlltool, Prev: windmc, Up: Top
  2997. 12 windres
  2998. **********
  2999. 'windres' may be used to manipulate Windows resources.
  3000. _Warning:_ 'windres' is not always built as part of the binary
  3001. utilities, since it is only useful for Windows targets.
  3002. windres [options] [input-file] [output-file]
  3003. 'windres' reads resources from an input file and copies them into an
  3004. output file. Either file may be in one of three formats:
  3005. 'rc'
  3006. A text format read by the Resource Compiler.
  3007. 'res'
  3008. A binary format generated by the Resource Compiler.
  3009. 'coff'
  3010. A COFF object or executable.
  3011. The exact description of these different formats is available in
  3012. documentation from Microsoft.
  3013. When 'windres' converts from the 'rc' format to the 'res' format, it
  3014. is acting like the Windows Resource Compiler. When 'windres' converts
  3015. from the 'res' format to the 'coff' format, it is acting like the
  3016. Windows 'CVTRES' program.
  3017. When 'windres' generates an 'rc' file, the output is similar but not
  3018. identical to the format expected for the input. When an input 'rc' file
  3019. refers to an external filename, an output 'rc' file will instead include
  3020. the file contents.
  3021. If the input or output format is not specified, 'windres' will guess
  3022. based on the file name, or, for the input file, the file contents. A
  3023. file with an extension of '.rc' will be treated as an 'rc' file, a file
  3024. with an extension of '.res' will be treated as a 'res' file, and a file
  3025. with an extension of '.o' or '.exe' will be treated as a 'coff' file.
  3026. If no output file is specified, 'windres' will print the resources in
  3027. 'rc' format to standard output.
  3028. The normal use is for you to write an 'rc' file, use 'windres' to
  3029. convert it to a COFF object file, and then link the COFF file into your
  3030. application. This will make the resources described in the 'rc' file
  3031. available to Windows.
  3032. '-i FILENAME'
  3033. '--input FILENAME'
  3034. The name of the input file. If this option is not used, then
  3035. 'windres' will use the first non-option argument as the input file
  3036. name. If there are no non-option arguments, then 'windres' will
  3037. read from standard input. 'windres' can not read a COFF file from
  3038. standard input.
  3039. '-o FILENAME'
  3040. '--output FILENAME'
  3041. The name of the output file. If this option is not used, then
  3042. 'windres' will use the first non-option argument, after any used
  3043. for the input file name, as the output file name. If there is no
  3044. non-option argument, then 'windres' will write to standard output.
  3045. 'windres' can not write a COFF file to standard output. Note, for
  3046. compatibility with 'rc' the option '-fo' is also accepted, but its
  3047. use is not recommended.
  3048. '-J FORMAT'
  3049. '--input-format FORMAT'
  3050. The input format to read. FORMAT may be 'res', 'rc', or 'coff'.
  3051. If no input format is specified, 'windres' will guess, as described
  3052. above.
  3053. '-O FORMAT'
  3054. '--output-format FORMAT'
  3055. The output format to generate. FORMAT may be 'res', 'rc', or
  3056. 'coff'. If no output format is specified, 'windres' will guess, as
  3057. described above.
  3058. '-F TARGET'
  3059. '--target TARGET'
  3060. Specify the BFD format to use for a COFF file as input or output.
  3061. This is a BFD target name; you can use the '--help' option to see a
  3062. list of supported targets. Normally 'windres' will use the default
  3063. format, which is the first one listed by the '--help' option.
  3064. *note Target Selection::.
  3065. '--preprocessor PROGRAM'
  3066. When 'windres' reads an 'rc' file, it runs it through the C
  3067. preprocessor first. This option may be used to specify the
  3068. preprocessor to use, including any leading arguments. The default
  3069. preprocessor argument is 'gcc -E -xc-header -DRC_INVOKED'.
  3070. '--preprocessor-arg OPTION'
  3071. When 'windres' reads an 'rc' file, it runs it through the C
  3072. preprocessor first. This option may be used to specify additional
  3073. text to be passed to preprocessor on its command line. This option
  3074. can be used multiple times to add multiple options to the
  3075. preprocessor command line.
  3076. '-I DIRECTORY'
  3077. '--include-dir DIRECTORY'
  3078. Specify an include directory to use when reading an 'rc' file.
  3079. 'windres' will pass this to the preprocessor as an '-I' option.
  3080. 'windres' will also search this directory when looking for files
  3081. named in the 'rc' file. If the argument passed to this command
  3082. matches any of the supported FORMATS (as described in the '-J'
  3083. option), it will issue a deprecation warning, and behave just like
  3084. the '-J' option. New programs should not use this behaviour. If a
  3085. directory happens to match a FORMAT, simple prefix it with './' to
  3086. disable the backward compatibility.
  3087. '-D TARGET'
  3088. '--define SYM[=VAL]'
  3089. Specify a '-D' option to pass to the preprocessor when reading an
  3090. 'rc' file.
  3091. '-U TARGET'
  3092. '--undefine SYM'
  3093. Specify a '-U' option to pass to the preprocessor when reading an
  3094. 'rc' file.
  3095. '-r'
  3096. Ignored for compatibility with rc.
  3097. '-v'
  3098. Enable verbose mode. This tells you what the preprocessor is if
  3099. you didn't specify one.
  3100. '-c VAL'
  3101. '--codepage VAL'
  3102. Specify the default codepage to use when reading an 'rc' file. VAL
  3103. should be a hexadecimal prefixed by '0x' or decimal codepage code.
  3104. The valid range is from zero up to 0xffff, but the validity of the
  3105. codepage is host and configuration dependent.
  3106. '-l VAL'
  3107. '--language VAL'
  3108. Specify the default language to use when reading an 'rc' file. VAL
  3109. should be a hexadecimal language code. The low eight bits are the
  3110. language, and the high eight bits are the sublanguage.
  3111. '--use-temp-file'
  3112. Use a temporary file to instead of using popen to read the output
  3113. of the preprocessor. Use this option if the popen implementation
  3114. is buggy on the host (eg., certain non-English language versions of
  3115. Windows 95 and Windows 98 are known to have buggy popen where the
  3116. output will instead go the console).
  3117. '--no-use-temp-file'
  3118. Use popen, not a temporary file, to read the output of the
  3119. preprocessor. This is the default behaviour.
  3120. '-h'
  3121. '--help'
  3122. Prints a usage summary.
  3123. '-V'
  3124. '--version'
  3125. Prints the version number for 'windres'.
  3126. '--yydebug'
  3127. If 'windres' is compiled with 'YYDEBUG' defined as '1', this will
  3128. turn on parser debugging.
  3129. 
  3130. File: binutils.info, Node: dlltool, Next: readelf, Prev: windres, Up: Top
  3131. 13 dlltool
  3132. **********
  3133. 'dlltool' is used to create the files needed to create dynamic link
  3134. libraries (DLLs) on systems which understand PE format image files such
  3135. as Windows. A DLL contains an export table which contains information
  3136. that the runtime loader needs to resolve references from a referencing
  3137. program.
  3138. The export table is generated by this program by reading in a '.def'
  3139. file or scanning the '.a' and '.o' files which will be in the DLL. A
  3140. '.o' file can contain information in special '.drectve' sections with
  3141. export information.
  3142. _Note:_ 'dlltool' is not always built as part of the binary
  3143. utilities, since it is only useful for those targets which support
  3144. DLLs.
  3145. dlltool [-d|--input-def DEF-FILE-NAME]
  3146. [-b|--base-file BASE-FILE-NAME]
  3147. [-e|--output-exp EXPORTS-FILE-NAME]
  3148. [-z|--output-def DEF-FILE-NAME]
  3149. [-l|--output-lib LIBRARY-FILE-NAME]
  3150. [-y|--output-delaylib LIBRARY-FILE-NAME]
  3151. [--export-all-symbols] [--no-export-all-symbols]
  3152. [--exclude-symbols LIST]
  3153. [--no-default-excludes]
  3154. [-S|--as PATH-TO-ASSEMBLER] [-f|--as-flags OPTIONS]
  3155. [-D|--dllname NAME] [-m|--machine MACHINE]
  3156. [-a|--add-indirect]
  3157. [-U|--add-underscore] [--add-stdcall-underscore]
  3158. [-k|--kill-at] [-A|--add-stdcall-alias]
  3159. [-p|--ext-prefix-alias PREFIX]
  3160. [-x|--no-idata4] [-c|--no-idata5]
  3161. [--use-nul-prefixed-import-tables]
  3162. [-I|--identify LIBRARY-FILE-NAME] [--identify-strict]
  3163. [-i|--interwork]
  3164. [-n|--nodelete] [-t|--temp-prefix PREFIX]
  3165. [-v|--verbose]
  3166. [-h|--help] [-V|--version]
  3167. [--no-leading-underscore] [--leading-underscore]
  3168. [object-file ...]
  3169. 'dlltool' reads its inputs, which can come from the '-d' and '-b'
  3170. options as well as object files specified on the command line. It then
  3171. processes these inputs and if the '-e' option has been specified it
  3172. creates a exports file. If the '-l' option has been specified it
  3173. creates a library file and if the '-z' option has been specified it
  3174. creates a def file. Any or all of the '-e', '-l' and '-z' options can
  3175. be present in one invocation of dlltool.
  3176. When creating a DLL, along with the source for the DLL, it is
  3177. necessary to have three other files. 'dlltool' can help with the
  3178. creation of these files.
  3179. The first file is a '.def' file which specifies which functions are
  3180. exported from the DLL, which functions the DLL imports, and so on. This
  3181. is a text file and can be created by hand, or 'dlltool' can be used to
  3182. create it using the '-z' option. In this case 'dlltool' will scan the
  3183. object files specified on its command line looking for those functions
  3184. which have been specially marked as being exported and put entries for
  3185. them in the '.def' file it creates.
  3186. In order to mark a function as being exported from a DLL, it needs to
  3187. have an '-export:<name_of_function>' entry in the '.drectve' section of
  3188. the object file. This can be done in C by using the asm() operator:
  3189. asm (".section .drectve");
  3190. asm (".ascii \"-export:my_func\"");
  3191. int my_func (void) { ... }
  3192. The second file needed for DLL creation is an exports file. This
  3193. file is linked with the object files that make up the body of the DLL
  3194. and it handles the interface between the DLL and the outside world.
  3195. This is a binary file and it can be created by giving the '-e' option to
  3196. 'dlltool' when it is creating or reading in a '.def' file.
  3197. The third file needed for DLL creation is the library file that
  3198. programs will link with in order to access the functions in the DLL (an
  3199. 'import library'). This file can be created by giving the '-l' option
  3200. to dlltool when it is creating or reading in a '.def' file.
  3201. If the '-y' option is specified, dlltool generates a delay-import
  3202. library that can be used instead of the normal import library to allow a
  3203. program to link to the dll only as soon as an imported function is
  3204. called for the first time. The resulting executable will need to be
  3205. linked to the static delayimp library containing __delayLoadHelper2(),
  3206. which in turn will import LoadLibraryA and GetProcAddress from kernel32.
  3207. 'dlltool' builds the library file by hand, but it builds the exports
  3208. file by creating temporary files containing assembler statements and
  3209. then assembling these. The '-S' command-line option can be used to
  3210. specify the path to the assembler that dlltool will use, and the '-f'
  3211. option can be used to pass specific flags to that assembler. The '-n'
  3212. can be used to prevent dlltool from deleting these temporary assembler
  3213. files when it is done, and if '-n' is specified twice then this will
  3214. prevent dlltool from deleting the temporary object files it used to
  3215. build the library.
  3216. Here is an example of creating a DLL from a source file 'dll.c' and
  3217. also creating a program (from an object file called 'program.o') that
  3218. uses that DLL:
  3219. gcc -c dll.c
  3220. dlltool -e exports.o -l dll.lib dll.o
  3221. gcc dll.o exports.o -o dll.dll
  3222. gcc program.o dll.lib -o program
  3223. 'dlltool' may also be used to query an existing import library to
  3224. determine the name of the DLL to which it is associated. See the
  3225. description of the '-I' or '--identify' option.
  3226. The command-line options have the following meanings:
  3227. '-d FILENAME'
  3228. '--input-def FILENAME'
  3229. Specifies the name of a '.def' file to be read in and processed.
  3230. '-b FILENAME'
  3231. '--base-file FILENAME'
  3232. Specifies the name of a base file to be read in and processed. The
  3233. contents of this file will be added to the relocation section in
  3234. the exports file generated by dlltool.
  3235. '-e FILENAME'
  3236. '--output-exp FILENAME'
  3237. Specifies the name of the export file to be created by dlltool.
  3238. '-z FILENAME'
  3239. '--output-def FILENAME'
  3240. Specifies the name of the '.def' file to be created by dlltool.
  3241. '-l FILENAME'
  3242. '--output-lib FILENAME'
  3243. Specifies the name of the library file to be created by dlltool.
  3244. '-y FILENAME'
  3245. '--output-delaylib FILENAME'
  3246. Specifies the name of the delay-import library file to be created
  3247. by dlltool.
  3248. '--export-all-symbols'
  3249. Treat all global and weak defined symbols found in the input object
  3250. files as symbols to be exported. There is a small list of symbols
  3251. which are not exported by default; see the '--no-default-excludes'
  3252. option. You may add to the list of symbols to not export by using
  3253. the '--exclude-symbols' option.
  3254. '--no-export-all-symbols'
  3255. Only export symbols explicitly listed in an input '.def' file or in
  3256. '.drectve' sections in the input object files. This is the default
  3257. behaviour. The '.drectve' sections are created by 'dllexport'
  3258. attributes in the source code.
  3259. '--exclude-symbols LIST'
  3260. Do not export the symbols in LIST. This is a list of symbol names
  3261. separated by comma or colon characters. The symbol names should
  3262. not contain a leading underscore. This is only meaningful when
  3263. '--export-all-symbols' is used.
  3264. '--no-default-excludes'
  3265. When '--export-all-symbols' is used, it will by default avoid
  3266. exporting certain special symbols. The current list of symbols to
  3267. avoid exporting is 'DllMain@12', 'DllEntryPoint@0', 'impure_ptr'.
  3268. You may use the '--no-default-excludes' option to go ahead and
  3269. export these special symbols. This is only meaningful when
  3270. '--export-all-symbols' is used.
  3271. '-S PATH'
  3272. '--as PATH'
  3273. Specifies the path, including the filename, of the assembler to be
  3274. used to create the exports file.
  3275. '-f OPTIONS'
  3276. '--as-flags OPTIONS'
  3277. Specifies any specific command-line options to be passed to the
  3278. assembler when building the exports file. This option will work
  3279. even if the '-S' option is not used. This option only takes one
  3280. argument, and if it occurs more than once on the command line, then
  3281. later occurrences will override earlier occurrences. So if it is
  3282. necessary to pass multiple options to the assembler they should be
  3283. enclosed in double quotes.
  3284. '-D NAME'
  3285. '--dll-name NAME'
  3286. Specifies the name to be stored in the '.def' file as the name of
  3287. the DLL when the '-e' option is used. If this option is not
  3288. present, then the filename given to the '-e' option will be used as
  3289. the name of the DLL.
  3290. '-m MACHINE'
  3291. '-machine MACHINE'
  3292. Specifies the type of machine for which the library file should be
  3293. built. 'dlltool' has a built in default type, depending upon how
  3294. it was created, but this option can be used to override that. This
  3295. is normally only useful when creating DLLs for an ARM processor,
  3296. when the contents of the DLL are actually encode using Thumb
  3297. instructions.
  3298. '-a'
  3299. '--add-indirect'
  3300. Specifies that when 'dlltool' is creating the exports file it
  3301. should add a section which allows the exported functions to be
  3302. referenced without using the import library. Whatever the hell
  3303. that means!
  3304. '-U'
  3305. '--add-underscore'
  3306. Specifies that when 'dlltool' is creating the exports file it
  3307. should prepend an underscore to the names of _all_ exported
  3308. symbols.
  3309. '--no-leading-underscore'
  3310. '--leading-underscore'
  3311. Specifies whether standard symbol should be forced to be prefixed,
  3312. or not.
  3313. '--add-stdcall-underscore'
  3314. Specifies that when 'dlltool' is creating the exports file it
  3315. should prepend an underscore to the names of exported _stdcall_
  3316. functions. Variable names and non-stdcall function names are not
  3317. modified. This option is useful when creating GNU-compatible
  3318. import libs for third party DLLs that were built with MS-Windows
  3319. tools.
  3320. '-k'
  3321. '--kill-at'
  3322. Specifies that '@<number>' suffixes should be omitted from the
  3323. names of stdcall functions that will be imported from the DLL. This
  3324. is useful when creating an import library for a DLL which exports
  3325. stdcall functions but without the usual '@<number>' symbol name
  3326. suffix.
  3327. This does not change the naming of symbols provided by the import
  3328. library to programs linked against it, but only the entries in the
  3329. import table (ie the .idata section).
  3330. '-A'
  3331. '--add-stdcall-alias'
  3332. Specifies that when 'dlltool' is creating the exports file it
  3333. should add aliases for stdcall symbols without '@ <number>' in
  3334. addition to the symbols with '@ <number>'.
  3335. '-p'
  3336. '--ext-prefix-alias PREFIX'
  3337. Causes 'dlltool' to create external aliases for all DLL imports
  3338. with the specified prefix. The aliases are created for both
  3339. external and import symbols with no leading underscore.
  3340. '-x'
  3341. '--no-idata4'
  3342. Specifies that when 'dlltool' is creating the exports and library
  3343. files it should omit the '.idata4' section. This is for
  3344. compatibility with certain operating systems.
  3345. '--use-nul-prefixed-import-tables'
  3346. Specifies that when 'dlltool' is creating the exports and library
  3347. files it should prefix the '.idata4' and '.idata5' by zero an
  3348. element. This emulates old gnu import library generation of
  3349. 'dlltool'. By default this option is turned off.
  3350. '-c'
  3351. '--no-idata5'
  3352. Specifies that when 'dlltool' is creating the exports and library
  3353. files it should omit the '.idata5' section. This is for
  3354. compatibility with certain operating systems.
  3355. '-I FILENAME'
  3356. '--identify FILENAME'
  3357. Specifies that 'dlltool' should inspect the import library
  3358. indicated by FILENAME and report, on 'stdout', the name(s) of the
  3359. associated DLL(s). This can be performed in addition to any other
  3360. operations indicated by the other options and arguments. 'dlltool'
  3361. fails if the import library does not exist or is not actually an
  3362. import library. See also '--identify-strict'.
  3363. '--identify-strict'
  3364. Modifies the behavior of the '--identify' option, such that an
  3365. error is reported if FILENAME is associated with more than one DLL.
  3366. '-i'
  3367. '--interwork'
  3368. Specifies that 'dlltool' should mark the objects in the library
  3369. file and exports file that it produces as supporting interworking
  3370. between ARM and Thumb code.
  3371. '-n'
  3372. '--nodelete'
  3373. Makes 'dlltool' preserve the temporary assembler files it used to
  3374. create the exports file. If this option is repeated then dlltool
  3375. will also preserve the temporary object files it uses to create the
  3376. library file.
  3377. '-t PREFIX'
  3378. '--temp-prefix PREFIX'
  3379. Makes 'dlltool' use PREFIX when constructing the names of temporary
  3380. assembler and object files. By default, the temp file prefix is
  3381. generated from the pid.
  3382. '-v'
  3383. '--verbose'
  3384. Make dlltool describe what it is doing.
  3385. '-h'
  3386. '--help'
  3387. Displays a list of command-line options and then exits.
  3388. '-V'
  3389. '--version'
  3390. Displays dlltool's version number and then exits.
  3391. * Menu:
  3392. * def file format:: The format of the dlltool '.def' file
  3393. 
  3394. File: binutils.info, Node: def file format, Up: dlltool
  3395. 13.1 The format of the 'dlltool' '.def' file
  3396. ============================================
  3397. A '.def' file contains any number of the following commands:
  3398. 'NAME' NAME '[ ,' BASE ']'
  3399. The result is going to be named NAME'.exe'.
  3400. 'LIBRARY' NAME '[ ,' BASE ']'
  3401. The result is going to be named NAME'.dll'. Note: If you want to
  3402. use LIBRARY as name then you need to quote. Otherwise this will
  3403. fail due a necessary hack for libtool (see PR binutils/13710 for
  3404. more details).
  3405. 'EXPORTS ( ( (' NAME1 '[ = ' NAME2 '] ) | ( ' NAME1 '=' MODULE-NAME '.' EXTERNAL-NAME ') ) [ == ' ITS_NAME ']'
  3406. '[' INTEGER '] [ NONAME ] [ CONSTANT ] [ DATA ] [ PRIVATE ] ) *'
  3407. Declares NAME1 as an exported symbol from the DLL, with optional
  3408. ordinal number INTEGER, or declares NAME1 as an alias (forward) of
  3409. the function EXTERNAL-NAME in the DLL. If ITS_NAME is specified,
  3410. this name is used as string in export table. MODULE-NAME. Note:
  3411. The 'EXPORTS' has to be the last command in .def file, as keywords
  3412. are treated - beside 'LIBRARY' - as simple name-identifiers. If
  3413. you want to use LIBRARY as name then you need to quote it.
  3414. 'IMPORTS ( (' INTERNAL-NAME '=' MODULE-NAME '.' INTEGER ') | [' INTERNAL-NAME '= ]' MODULE-NAME '.' EXTERNAL-NAME ') [ == ) ITS_NAME ] *'
  3415. Declares that EXTERNAL-NAME or the exported function whose ordinal
  3416. number is INTEGER is to be imported from the file MODULE-NAME. If
  3417. INTERNAL-NAME is specified then this is the name that the imported
  3418. function will be referred to in the body of the DLL. If ITS_NAME is
  3419. specified, this name is used as string in import table. Note: The
  3420. 'IMPORTS' has to be the last command in .def file, as keywords are
  3421. treated - beside 'LIBRARY' - as simple name-identifiers. If you
  3422. want to use LIBRARY as name then you need to quote it.
  3423. 'DESCRIPTION' STRING
  3424. Puts STRING into the output '.exp' file in the '.rdata' section.
  3425. 'STACKSIZE' NUMBER-RESERVE '[, ' NUMBER-COMMIT ']'
  3426. 'HEAPSIZE' NUMBER-RESERVE '[, ' NUMBER-COMMIT ']'
  3427. Generates '--stack' or '--heap' NUMBER-RESERVE,NUMBER-COMMIT in the
  3428. output '.drectve' section. The linker will see this and act upon
  3429. it.
  3430. 'CODE' ATTR '+'
  3431. 'DATA' ATTR '+'
  3432. 'SECTIONS (' SECTION-NAME ATTR' + ) *'
  3433. Generates '--attr' SECTION-NAME ATTR in the output '.drectve'
  3434. section, where ATTR is one of 'READ', 'WRITE', 'EXECUTE' or
  3435. 'SHARED'. The linker will see this and act upon it.
  3436. 
  3437. File: binutils.info, Node: readelf, Next: elfedit, Prev: dlltool, Up: Top
  3438. 14 readelf
  3439. **********
  3440. readelf [-a|--all]
  3441. [-h|--file-header]
  3442. [-l|--program-headers|--segments]
  3443. [-S|--section-headers|--sections]
  3444. [-g|--section-groups]
  3445. [-t|--section-details]
  3446. [-e|--headers]
  3447. [-s|--syms|--symbols]
  3448. [--dyn-syms]
  3449. [-n|--notes]
  3450. [-r|--relocs]
  3451. [-u|--unwind]
  3452. [-d|--dynamic]
  3453. [-V|--version-info]
  3454. [-A|--arch-specific]
  3455. [-D|--use-dynamic]
  3456. [-L|--lint|--enable-checks]
  3457. [-x <number or name>|--hex-dump=<number or name>]
  3458. [-p <number or name>|--string-dump=<number or name>]
  3459. [-R <number or name>|--relocated-dump=<number or name>]
  3460. [-z|--decompress]
  3461. [-c|--archive-index]
  3462. [-w[lLiaprmfFsoORtUuTgAckK]|
  3463. --debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow-links]]
  3464. [--dwarf-depth=N]
  3465. [--dwarf-start=N]
  3466. [--ctf=SECTION]
  3467. [--ctf-parent=SECTION]
  3468. [--ctf-symbols=SECTION]
  3469. [--ctf-strings=SECTION]
  3470. [-I|--histogram]
  3471. [-v|--version]
  3472. [-W|--wide]
  3473. [-T|--silent-truncation]
  3474. [-H|--help]
  3475. ELFFILE...
  3476. 'readelf' displays information about one or more ELF format object
  3477. files. The options control what particular information to display.
  3478. ELFFILE... are the object files to be examined. 32-bit and 64-bit
  3479. ELF files are supported, as are archives containing ELF files.
  3480. This program performs a similar function to 'objdump' but it goes
  3481. into more detail and it exists independently of the BFD library, so if
  3482. there is a bug in BFD then readelf will not be affected.
  3483. The long and short forms of options, shown here as alternatives, are
  3484. equivalent. At least one option besides '-v' or '-H' must be given.
  3485. '-a'
  3486. '--all'
  3487. Equivalent to specifying '--file-header', '--program-headers',
  3488. '--sections', '--symbols', '--relocs', '--dynamic', '--notes',
  3489. '--version-info', '--arch-specific', '--unwind', '--section-groups'
  3490. and '--histogram'.
  3491. Note - this option does not enable '--use-dynamic' itself, so if
  3492. that option is not present on the command line then dynamic symbols
  3493. and dynamic relocs will not be displayed.
  3494. '-h'
  3495. '--file-header'
  3496. Displays the information contained in the ELF header at the start
  3497. of the file.
  3498. '-l'
  3499. '--program-headers'
  3500. '--segments'
  3501. Displays the information contained in the file's segment headers,
  3502. if it has any.
  3503. '-S'
  3504. '--sections'
  3505. '--section-headers'
  3506. Displays the information contained in the file's section headers,
  3507. if it has any.
  3508. '-g'
  3509. '--section-groups'
  3510. Displays the information contained in the file's section groups, if
  3511. it has any.
  3512. '-t'
  3513. '--section-details'
  3514. Displays the detailed section information. Implies '-S'.
  3515. '-s'
  3516. '--symbols'
  3517. '--syms'
  3518. Displays the entries in symbol table section of the file, if it has
  3519. one. If a symbol has version information associated with it then
  3520. this is displayed as well. The version string is displayed as a
  3521. suffix to the symbol name, preceeded by an @ character. For
  3522. example 'foo@VER_1'. If the version is the default version to be
  3523. used when resolving unversioned references to the symbol then it is
  3524. displayed as a suffix preceeded by two @ characters. For example
  3525. 'foo@@VER_2'.
  3526. '--dyn-syms'
  3527. Displays the entries in dynamic symbol table section of the file,
  3528. if it has one. The output format is the same as the format used by
  3529. the '--syms' option.
  3530. '-e'
  3531. '--headers'
  3532. Display all the headers in the file. Equivalent to '-h -l -S'.
  3533. '-n'
  3534. '--notes'
  3535. Displays the contents of the NOTE segments and/or sections, if any.
  3536. '-r'
  3537. '--relocs'
  3538. Displays the contents of the file's relocation section, if it has
  3539. one.
  3540. '-u'
  3541. '--unwind'
  3542. Displays the contents of the file's unwind section, if it has one.
  3543. Only the unwind sections for IA64 ELF files, as well as ARM unwind
  3544. tables ('.ARM.exidx' / '.ARM.extab') are currently supported. If
  3545. support is not yet implemented for your architecture you could try
  3546. dumping the contents of the .EH_FRAMES section using the
  3547. '--debug-dump=frames' or '--debug-dump=frames-interp' options.
  3548. '-d'
  3549. '--dynamic'
  3550. Displays the contents of the file's dynamic section, if it has one.
  3551. '-V'
  3552. '--version-info'
  3553. Displays the contents of the version sections in the file, it they
  3554. exist.
  3555. '-A'
  3556. '--arch-specific'
  3557. Displays architecture-specific information in the file, if there is
  3558. any.
  3559. '-D'
  3560. '--use-dynamic'
  3561. When displaying symbols, this option makes 'readelf' use the symbol
  3562. hash tables in the file's dynamic section, rather than the symbol
  3563. table sections.
  3564. When displaying relocations, this option makes 'readelf' display
  3565. the dynamic relocations rather than the static relocations.
  3566. '-L'
  3567. '--lint'
  3568. '--enable-checks'
  3569. Displays warning messages about possible problems with the file(s)
  3570. being examined. If used on its own then all of the contents of the
  3571. file(s) will be examined. If used with one of the dumping options
  3572. then the warning messages will only be produced for the things
  3573. being displayed.
  3574. '-x <number or name>'
  3575. '--hex-dump=<number or name>'
  3576. Displays the contents of the indicated section as a hexadecimal
  3577. bytes. A number identifies a particular section by index in the
  3578. section table; any other string identifies all sections with that
  3579. name in the object file.
  3580. '-R <number or name>'
  3581. '--relocated-dump=<number or name>'
  3582. Displays the contents of the indicated section as a hexadecimal
  3583. bytes. A number identifies a particular section by index in the
  3584. section table; any other string identifies all sections with that
  3585. name in the object file. The contents of the section will be
  3586. relocated before they are displayed.
  3587. '-p <number or name>'
  3588. '--string-dump=<number or name>'
  3589. Displays the contents of the indicated section as printable
  3590. strings. A number identifies a particular section by index in the
  3591. section table; any other string identifies all sections with that
  3592. name in the object file.
  3593. '-z'
  3594. '--decompress'
  3595. Requests that the section(s) being dumped by 'x', 'R' or 'p'
  3596. options are decompressed before being displayed. If the section(s)
  3597. are not compressed then they are displayed as is.
  3598. '-c'
  3599. '--archive-index'
  3600. Displays the file symbol index information contained in the header
  3601. part of binary archives. Performs the same function as the 't'
  3602. command to 'ar', but without using the BFD library. *Note ar::.
  3603. '-w[lLiaprmfFsOoRtUuTgAckK]'
  3604. '--debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow-links]'
  3605. Displays the contents of the DWARF debug sections in the file, if
  3606. any are present. Compressed debug sections are automatically
  3607. decompressed (temporarily) before they are displayed. If one or
  3608. more of the optional letters or words follows the switch then only
  3609. those type(s) of data will be dumped. The letters and words refer
  3610. to the following information:
  3611. 'a'
  3612. '=abbrev'
  3613. Displays the contents of the '.debug_abbrev' section.
  3614. 'A'
  3615. '=addr'
  3616. Displays the contents of the '.debug_addr' section.
  3617. 'c'
  3618. '=cu_index'
  3619. Displays the contents of the '.debug_cu_index' and/or
  3620. '.debug_tu_index' sections.
  3621. 'f'
  3622. '=frames'
  3623. Display the raw contents of a '.debug_frame' section.
  3624. 'F'
  3625. '=frame-interp'
  3626. Display the interpreted contents of a '.debug_frame' section.
  3627. 'g'
  3628. '=gdb_index'
  3629. Displays the contents of the '.gdb_index' and/or
  3630. '.debug_names' sections.
  3631. 'i'
  3632. '=info'
  3633. Displays the contents of the '.debug_info' section. Note: the
  3634. output from this option can also be restricted by the use of
  3635. the '--dwarf-depth' and '--dwarf-start' options.
  3636. 'k'
  3637. '=links'
  3638. Displays the contents of the '.gnu_debuglink' and/or
  3639. '.gnu_debugaltlink' sections. Also displays any links to
  3640. separate dwarf object files (dwo), if they are specified by
  3641. the DW_AT_GNU_dwo_name or DW_AT_dwo_name attributes in the
  3642. '.debug_info' section.
  3643. 'K'
  3644. '=follow-links'
  3645. Display the contents of any selected debug sections that are
  3646. found in linked, separate debug info file(s). This can result
  3647. in multiple versions of the same debug section being displayed
  3648. if it exists in more than one file.
  3649. In addition, when displaying DWARF attributes, if a form is
  3650. found that references the separate debug info file, then the
  3651. referenced contents will also be displayed.
  3652. 'l'
  3653. '=rawline'
  3654. Displays the contents of the '.debug_line' section in a raw
  3655. format.
  3656. 'L'
  3657. '=decodedline'
  3658. Displays the interpreted contents of the '.debug_line'
  3659. section.
  3660. 'm'
  3661. '=macro'
  3662. Displays the contents of the '.debug_macro' and/or
  3663. '.debug_macinfo' sections.
  3664. 'o'
  3665. '=loc'
  3666. Displays the contents of the '.debug_loc' and/or
  3667. '.debug_loclists' sections.
  3668. 'O'
  3669. '=str-offsets'
  3670. Displays the contents of the '.debug_str_offsets' section.
  3671. 'p'
  3672. '=pubnames'
  3673. Displays the contents of the '.debug_pubnames' and/or
  3674. '.debug_gnu_pubnames' sections.
  3675. 'r'
  3676. '=aranges'
  3677. Displays the contents of the '.debug_aranges' section.
  3678. 'R'
  3679. '=Ranges'
  3680. Displays the contents of the '.debug_ranges' and/or
  3681. '.debug_rnglists' sections.
  3682. 's'
  3683. '=str'
  3684. Displays the contents of the '.debug_str', '.debug_line_str'
  3685. and/or '.debug_str_offsets' sections.
  3686. 't'
  3687. '=pubtype'
  3688. Displays the contents of the '.debug_pubtypes' and/or
  3689. '.debug_gnu_pubtypes' sections.
  3690. 'T'
  3691. '=trace_aranges'
  3692. Displays the contents of the '.trace_aranges' section.
  3693. 'u'
  3694. '=trace_abbrev'
  3695. Displays the contents of the '.trace_abbrev' section.
  3696. 'U'
  3697. '=trace_info'
  3698. Displays the contents of the '.trace_info' section.
  3699. Note: displaying the contents of '.debug_static_funcs',
  3700. '.debug_static_vars' and 'debug_weaknames' sections is not
  3701. currently supported.
  3702. '--dwarf-depth=N'
  3703. Limit the dump of the '.debug_info' section to N children. This is
  3704. only useful with '--debug-dump=info'. The default is to print all
  3705. DIEs; the special value 0 for N will also have this effect.
  3706. With a non-zero value for N, DIEs at or deeper than N levels will
  3707. not be printed. The range for N is zero-based.
  3708. '--dwarf-start=N'
  3709. Print only DIEs beginning with the DIE numbered N. This is only
  3710. useful with '--debug-dump=info'.
  3711. If specified, this option will suppress printing of any header
  3712. information and all DIEs before the DIE numbered N. Only siblings
  3713. and children of the specified DIE will be printed.
  3714. This can be used in conjunction with '--dwarf-depth'.
  3715. '--ctf=SECTION'
  3716. Display the contents of the specified CTF section. CTF sections
  3717. themselves contain many subsections, all of which are displayed in
  3718. order.
  3719. '--ctf-parent=SECTION'
  3720. Specify the name of another section from which the CTF dictionary
  3721. can inherit types. (If none is specified, we assume the CTF
  3722. dictionary inherits types from the default-named member of the
  3723. archive contained within this section.)
  3724. '--ctf-symbols=SECTION'
  3725. '--ctf-strings=SECTION'
  3726. Specify the name of another section from which the CTF file can
  3727. inherit strings and symbols. By default, the '.symtab' and its
  3728. linked string table are used.
  3729. If either of '--ctf-symbols' or '--ctf-strings' is specified, the
  3730. other must be specified as well.
  3731. '-I'
  3732. '--histogram'
  3733. Display a histogram of bucket list lengths when displaying the
  3734. contents of the symbol tables.
  3735. '-v'
  3736. '--version'
  3737. Display the version number of readelf.
  3738. '-W'
  3739. '--wide'
  3740. Don't break output lines to fit into 80 columns. By default
  3741. 'readelf' breaks section header and segment listing lines for
  3742. 64-bit ELF files, so that they fit into 80 columns. This option
  3743. causes 'readelf' to print each section header resp. each segment
  3744. one a single line, which is far more readable on terminals wider
  3745. than 80 columns.
  3746. '-T'
  3747. '--silent-truncation'
  3748. Normally when readelf is displaying a symbol name, and it has to
  3749. truncate the name to fit into an 80 column display, it will add a
  3750. suffix of '[...]' to the name. This command line option disables
  3751. this behaviour, allowing 5 more characters of the name to be
  3752. displayed and restoring the old behaviour of readelf (prior to
  3753. release 2.35).
  3754. '-H'
  3755. '--help'
  3756. Display the command-line options understood by 'readelf'.
  3757. 
  3758. File: binutils.info, Node: elfedit, Next: Common Options, Prev: readelf, Up: Top
  3759. 15 elfedit
  3760. **********
  3761. elfedit [--input-mach=MACHINE]
  3762. [--input-type=TYPE]
  3763. [--input-osabi=OSABI]
  3764. --output-mach=MACHINE
  3765. --output-type=TYPE
  3766. --output-osabi=OSABI
  3767. --enable-x86-feature=FEATURE
  3768. --disable-x86-feature=FEATURE
  3769. [-v|--version]
  3770. [-h|--help]
  3771. ELFFILE...
  3772. 'elfedit' updates the ELF header and program property of ELF files
  3773. which have the matching ELF machine and file types. The options control
  3774. how and which fields in the ELF header and program property should be
  3775. updated.
  3776. ELFFILE... are the ELF files to be updated. 32-bit and 64-bit ELF
  3777. files are supported, as are archives containing ELF files.
  3778. The long and short forms of options, shown here as alternatives, are
  3779. equivalent. At least one of the '--output-mach', '--output-type',
  3780. '--output-osabi', '--enable-x86-feature' and '--disable-x86-feature'
  3781. options must be given.
  3782. '--input-mach=MACHINE'
  3783. Set the matching input ELF machine type to MACHINE. If
  3784. '--input-mach' isn't specified, it will match any ELF machine
  3785. types.
  3786. The supported ELF machine types are, I386, IAMCU, L1OM, K1OM and
  3787. X86-64.
  3788. '--output-mach=MACHINE'
  3789. Change the ELF machine type in the ELF header to MACHINE. The
  3790. supported ELF machine types are the same as '--input-mach'.
  3791. '--input-type=TYPE'
  3792. Set the matching input ELF file type to TYPE. If '--input-type'
  3793. isn't specified, it will match any ELF file types.
  3794. The supported ELF file types are, REL, EXEC and DYN.
  3795. '--output-type=TYPE'
  3796. Change the ELF file type in the ELF header to TYPE. The supported
  3797. ELF types are the same as '--input-type'.
  3798. '--input-osabi=OSABI'
  3799. Set the matching input ELF file OSABI to OSABI. If '--input-osabi'
  3800. isn't specified, it will match any ELF OSABIs.
  3801. The supported ELF OSABIs are, NONE, HPUX, NETBSD, GNU, LINUX (alias
  3802. for GNU), SOLARIS, AIX, IRIX, FREEBSD, TRU64, MODESTO, OPENBSD,
  3803. OPENVMS, NSK, AROS and FENIXOS.
  3804. '--output-osabi=OSABI'
  3805. Change the ELF OSABI in the ELF header to OSABI. The supported ELF
  3806. OSABI are the same as '--input-osabi'.
  3807. '--enable-x86-feature=FEATURE'
  3808. Set the FEATURE bit in program property in EXEC or DYN ELF files
  3809. with machine types of I386 or X86-64. The supported features are,
  3810. IBT and SHSTK.
  3811. '--disable-x86-feature=FEATURE'
  3812. Clear the FEATURE bit in program property in EXEC or DYN ELF files
  3813. with machine types of I386 or X86-64. The supported features are
  3814. the same as '--enable-x86-feature'.
  3815. Note: '--enable-x86-feature' and '--disable-x86-feature' are
  3816. available only on hosts with 'mmap' support.
  3817. '-v'
  3818. '--version'
  3819. Display the version number of 'elfedit'.
  3820. '-h'
  3821. '--help'
  3822. Display the command-line options understood by 'elfedit'.
  3823. 
  3824. File: binutils.info, Node: Common Options, Next: Selecting the Target System, Prev: elfedit, Up: Top
  3825. 16 Common Options
  3826. *****************
  3827. The following command-line options are supported by all of the programs
  3828. described in this manual.
  3829. '@FILE'
  3830. Read command-line options from FILE. The options read are inserted
  3831. in place of the original @FILE option. If FILE does not exist, or
  3832. cannot be read, then the option will be treated literally, and not
  3833. removed.
  3834. Options in FILE are separated by whitespace. A whitespace
  3835. character may be included in an option by surrounding the entire
  3836. option in either single or double quotes. Any character (including
  3837. a backslash) may be included by prefixing the character to be
  3838. included with a backslash. The FILE may itself contain additional
  3839. @FILE options; any such options will be processed recursively.
  3840. '--help'
  3841. Display the command-line options supported by the program.
  3842. '--version'
  3843. Display the version number of the program.
  3844. 
  3845. File: binutils.info, Node: Selecting the Target System, Next: debuginfod, Prev: Common Options, Up: Top
  3846. 17 Selecting the Target System
  3847. ******************************
  3848. You can specify two aspects of the target system to the GNU binary file
  3849. utilities, each in several ways:
  3850. * the target
  3851. * the architecture
  3852. In the following summaries, the lists of ways to specify values are
  3853. in order of decreasing precedence. The ways listed first override those
  3854. listed later.
  3855. The commands to list valid values only list the values for which the
  3856. programs you are running were configured. If they were configured with
  3857. '--enable-targets=all', the commands list most of the available values,
  3858. but a few are left out; not all targets can be configured in at once
  3859. because some of them can only be configured "native" (on hosts with the
  3860. same type as the target system).
  3861. * Menu:
  3862. * Target Selection::
  3863. * Architecture Selection::
  3864. 
  3865. File: binutils.info, Node: Target Selection, Next: Architecture Selection, Up: Selecting the Target System
  3866. 17.1 Target Selection
  3867. =====================
  3868. A "target" is an object file format. A given target may be supported
  3869. for multiple architectures (*note Architecture Selection::). A target
  3870. selection may also have variations for different operating systems or
  3871. architectures.
  3872. The command to list valid target values is 'objdump -i' (the first
  3873. column of output contains the relevant information).
  3874. Some sample values are: 'a.out-hp300bsd', 'ecoff-littlemips',
  3875. 'a.out-sunos-big'.
  3876. You can also specify a target using a configuration triplet. This is
  3877. the same sort of name that is passed to 'configure' to specify a target.
  3878. When you use a configuration triplet as an argument, it must be fully
  3879. canonicalized. You can see the canonical version of a triplet by
  3880. running the shell script 'config.sub' which is included with the
  3881. sources.
  3882. Some sample configuration triplets are: 'm68k-hp-bsd',
  3883. 'mips-dec-ultrix', 'sparc-sun-sunos'.
  3884. 'objdump' Target
  3885. ----------------
  3886. Ways to specify:
  3887. 1. command-line option: '-b' or '--target'
  3888. 2. environment variable 'GNUTARGET'
  3889. 3. deduced from the input file
  3890. 'objcopy' and 'strip' Input Target
  3891. ----------------------------------
  3892. Ways to specify:
  3893. 1. command-line options: '-I' or '--input-target', or '-F' or
  3894. '--target'
  3895. 2. environment variable 'GNUTARGET'
  3896. 3. deduced from the input file
  3897. 'objcopy' and 'strip' Output Target
  3898. -----------------------------------
  3899. Ways to specify:
  3900. 1. command-line options: '-O' or '--output-target', or '-F' or
  3901. '--target'
  3902. 2. the input target (see "'objcopy' and 'strip' Input Target" above)
  3903. 3. environment variable 'GNUTARGET'
  3904. 4. deduced from the input file
  3905. 'nm', 'size', and 'strings' Target
  3906. ----------------------------------
  3907. Ways to specify:
  3908. 1. command-line option: '--target'
  3909. 2. environment variable 'GNUTARGET'
  3910. 3. deduced from the input file
  3911. 
  3912. File: binutils.info, Node: Architecture Selection, Prev: Target Selection, Up: Selecting the Target System
  3913. 17.2 Architecture Selection
  3914. ===========================
  3915. An "architecture" is a type of CPU on which an object file is to run.
  3916. Its name may contain a colon, separating the name of the processor
  3917. family from the name of the particular CPU.
  3918. The command to list valid architecture values is 'objdump -i' (the
  3919. second column contains the relevant information).
  3920. Sample values: 'm68k:68020', 'mips:3000', 'sparc'.
  3921. 'objdump' Architecture
  3922. ----------------------
  3923. Ways to specify:
  3924. 1. command-line option: '-m' or '--architecture'
  3925. 2. deduced from the input file
  3926. 'objcopy', 'nm', 'size', 'strings' Architecture
  3927. -----------------------------------------------
  3928. Ways to specify:
  3929. 1. deduced from the input file
  3930. 
  3931. File: binutils.info, Node: debuginfod, Next: Reporting Bugs, Prev: Selecting the Target System, Up: Top
  3932. 18 debuginfod
  3933. *************
  3934. debuginfod is a web service that indexes ELF/DWARF debugging resources
  3935. by build-id and serves them over HTTP.
  3936. Binutils can be built with the debuginfod client library
  3937. 'libdebuginfod' using the '--with-debuginfod' configure option. This
  3938. option is enabled by default if 'libdebuginfod' is installed and found
  3939. at configure time. This allows 'objdump' and 'readelf' to automatically
  3940. query debuginfod servers for separate debug files when the files are
  3941. otherwise not found.
  3942. debuginfod is packaged with elfutils, starting with version 0.178.
  3943. You can get the latest version from 'https://sourceware.org/elfutils/'.
  3944. 
  3945. File: binutils.info, Node: Reporting Bugs, Next: GNU Free Documentation License, Prev: debuginfod, Up: Top
  3946. 19 Reporting Bugs
  3947. *****************
  3948. Your bug reports play an essential role in making the binary utilities
  3949. reliable.
  3950. Reporting a bug may help you by bringing a solution to your problem,
  3951. or it may not. But in any case the principal function of a bug report
  3952. is to help the entire community by making the next version of the binary
  3953. utilities work better. Bug reports are your contribution to their
  3954. maintenance.
  3955. In order for a bug report to serve its purpose, you must include the
  3956. information that enables us to fix the bug.
  3957. * Menu:
  3958. * Bug Criteria:: Have you found a bug?
  3959. * Bug Reporting:: How to report bugs
  3960. 
  3961. File: binutils.info, Node: Bug Criteria, Next: Bug Reporting, Up: Reporting Bugs
  3962. 19.1 Have You Found a Bug?
  3963. ==========================
  3964. If you are not sure whether you have found a bug, here are some
  3965. guidelines:
  3966. * If a binary utility gets a fatal signal, for any input whatever,
  3967. that is a bug. Reliable utilities never crash.
  3968. * If a binary utility produces an error message for valid input, that
  3969. is a bug.
  3970. * If you are an experienced user of binary utilities, your
  3971. suggestions for improvement are welcome in any case.
  3972. 
  3973. File: binutils.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Reporting Bugs
  3974. 19.2 How to Report Bugs
  3975. =======================
  3976. A number of companies and individuals offer support for GNU products.
  3977. If you obtained the binary utilities from a support organization, we
  3978. recommend you contact that organization first.
  3979. You can find contact information for many support companies and
  3980. individuals in the file 'etc/SERVICE' in the GNU Emacs distribution.
  3981. In any event, we also recommend that you send bug reports for the
  3982. binary utilities to <http://www.sourceware.org/bugzilla/>.
  3983. The fundamental principle of reporting bugs usefully is this: *report
  3984. all the facts*. If you are not sure whether to state a fact or leave it
  3985. out, state it!
  3986. Often people omit facts because they think they know what causes the
  3987. problem and assume that some details do not matter. Thus, you might
  3988. assume that the name of a file you use in an example does not matter.
  3989. Well, probably it does not, but one cannot be sure. Perhaps the bug is
  3990. a stray memory reference which happens to fetch from the location where
  3991. that pathname is stored in memory; perhaps, if the pathname were
  3992. different, the contents of that location would fool the utility into
  3993. doing the right thing despite the bug. Play it safe and give a
  3994. specific, complete example. That is the easiest thing for you to do,
  3995. and the most helpful.
  3996. Keep in mind that the purpose of a bug report is to enable us to fix
  3997. the bug if it is new to us. Therefore, always write your bug reports on
  3998. the assumption that the bug has not been reported previously.
  3999. Sometimes people give a few sketchy facts and ask, "Does this ring a
  4000. bell?" This cannot help us fix a bug, so it is basically useless. We
  4001. respond by asking for enough details to enable us to investigate. You
  4002. might as well expedite matters by sending them to begin with.
  4003. To enable us to fix the bug, you should include all these things:
  4004. * The version of the utility. Each utility announces it if you start
  4005. it with the '--version' argument.
  4006. Without this, we will not know whether there is any point in
  4007. looking for the bug in the current version of the binary utilities.
  4008. * Any patches you may have applied to the source, including any
  4009. patches made to the 'BFD' library.
  4010. * The type of machine you are using, and the operating system name
  4011. and version number.
  4012. * What compiler (and its version) was used to compile the
  4013. utilities--e.g. "'gcc-2.7'".
  4014. * The command arguments you gave the utility to observe the bug. To
  4015. guarantee you will not omit something important, list them all. A
  4016. copy of the Makefile (or the output from make) is sufficient.
  4017. If we were to try to guess the arguments, we would probably guess
  4018. wrong and then we might not encounter the bug.
  4019. * A complete input file, or set of input files, that will reproduce
  4020. the bug. If the utility is reading an object file or files, then
  4021. it is generally most helpful to send the actual object files.
  4022. If the source files were produced exclusively using GNU programs
  4023. (e.g., 'gcc', 'gas', and/or the GNU 'ld'), then it may be OK to
  4024. send the source files rather than the object files. In this case,
  4025. be sure to say exactly what version of 'gcc', or whatever, was used
  4026. to produce the object files. Also say how 'gcc', or whatever, was
  4027. configured.
  4028. * A description of what behavior you observe that you believe is
  4029. incorrect. For example, "It gets a fatal signal."
  4030. Of course, if the bug is that the utility gets a fatal signal, then
  4031. we will certainly notice it. But if the bug is incorrect output,
  4032. we might not notice unless it is glaringly wrong. You might as
  4033. well not give us a chance to make a mistake.
  4034. Even if the problem you experience is a fatal signal, you should
  4035. still say so explicitly. Suppose something strange is going on,
  4036. such as your copy of the utility is out of sync, or you have
  4037. encountered a bug in the C library on your system. (This has
  4038. happened!) Your copy might crash and ours would not. If you told
  4039. us to expect a crash, then when ours fails to crash, we would know
  4040. that the bug was not happening for us. If you had not told us to
  4041. expect a crash, then we would not be able to draw any conclusion
  4042. from our observations.
  4043. * If you wish to suggest changes to the source, send us context
  4044. diffs, as generated by 'diff' with the '-u', '-c', or '-p' option.
  4045. Always send diffs from the old file to the new file. If you wish
  4046. to discuss something in the 'ld' source, refer to it by context,
  4047. not by line number.
  4048. The line numbers in our development sources will not match those in
  4049. your sources. Your line numbers would convey no useful information
  4050. to us.
  4051. Here are some things that are not necessary:
  4052. * A description of the envelope of the bug.
  4053. Often people who encounter a bug spend a lot of time investigating
  4054. which changes to the input file will make the bug go away and which
  4055. changes will not affect it.
  4056. This is often time consuming and not very useful, because the way
  4057. we will find the bug is by running a single example under the
  4058. debugger with breakpoints, not by pure deduction from a series of
  4059. examples. We recommend that you save your time for something else.
  4060. Of course, if you can find a simpler example to report _instead_ of
  4061. the original one, that is a convenience for us. Errors in the
  4062. output will be easier to spot, running under the debugger will take
  4063. less time, and so on.
  4064. However, simplification is not vital; if you do not want to do
  4065. this, report the bug anyway and send us the entire test case you
  4066. used.
  4067. * A patch for the bug.
  4068. A patch for the bug does help us if it is a good one. But do not
  4069. omit the necessary information, such as the test case, on the
  4070. assumption that a patch is all we need. We might see problems with
  4071. your patch and decide to fix the problem another way, or we might
  4072. not understand it at all.
  4073. Sometimes with programs as complicated as the binary utilities it
  4074. is very hard to construct an example that will make the program
  4075. follow a certain path through the code. If you do not send us the
  4076. example, we will not be able to construct one, so we will not be
  4077. able to verify that the bug is fixed.
  4078. And if we cannot understand what bug you are trying to fix, or why
  4079. your patch should be an improvement, we will not install it. A
  4080. test case will help us to understand.
  4081. * A guess about what the bug is or what it depends on.
  4082. Such guesses are usually wrong. Even we cannot guess right about
  4083. such things without first using the debugger to find the facts.
  4084. 
  4085. File: binutils.info, Node: GNU Free Documentation License, Next: Binutils Index, Prev: Reporting Bugs, Up: Top
  4086. Appendix A GNU Free Documentation License
  4087. *****************************************
  4088. Version 1.3, 3 November 2008
  4089. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  4090. <http://fsf.org/>
  4091. Everyone is permitted to copy and distribute verbatim copies
  4092. of this license document, but changing it is not allowed.
  4093. 0. PREAMBLE
  4094. The purpose of this License is to make a manual, textbook, or other
  4095. functional and useful document "free" in the sense of freedom: to
  4096. assure everyone the effective freedom to copy and redistribute it,
  4097. with or without modifying it, either commercially or
  4098. noncommercially. Secondarily, this License preserves for the
  4099. author and publisher a way to get credit for their work, while not
  4100. being considered responsible for modifications made by others.
  4101. This License is a kind of "copyleft", which means that derivative
  4102. works of the document must themselves be free in the same sense.
  4103. It complements the GNU General Public License, which is a copyleft
  4104. license designed for free software.
  4105. We have designed this License in order to use it for manuals for
  4106. free software, because free software needs free documentation: a
  4107. free program should come with manuals providing the same freedoms
  4108. that the software does. But this License is not limited to
  4109. software manuals; it can be used for any textual work, regardless
  4110. of subject matter or whether it is published as a printed book. We
  4111. recommend this License principally for works whose purpose is
  4112. instruction or reference.
  4113. 1. APPLICABILITY AND DEFINITIONS
  4114. This License applies to any manual or other work, in any medium,
  4115. that contains a notice placed by the copyright holder saying it can
  4116. be distributed under the terms of this License. Such a notice
  4117. grants a world-wide, royalty-free license, unlimited in duration,
  4118. to use that work under the conditions stated herein. The
  4119. "Document", below, refers to any such manual or work. Any member
  4120. of the public is a licensee, and is addressed as "you". You accept
  4121. the license if you copy, modify or distribute the work in a way
  4122. requiring permission under copyright law.
  4123. A "Modified Version" of the Document means any work containing the
  4124. Document or a portion of it, either copied verbatim, or with
  4125. modifications and/or translated into another language.
  4126. A "Secondary Section" is a named appendix or a front-matter section
  4127. of the Document that deals exclusively with the relationship of the
  4128. publishers or authors of the Document to the Document's overall
  4129. subject (or to related matters) and contains nothing that could
  4130. fall directly within that overall subject. (Thus, if the Document
  4131. is in part a textbook of mathematics, a Secondary Section may not
  4132. explain any mathematics.) The relationship could be a matter of
  4133. historical connection with the subject or with related matters, or
  4134. of legal, commercial, philosophical, ethical or political position
  4135. regarding them.
  4136. The "Invariant Sections" are certain Secondary Sections whose
  4137. titles are designated, as being those of Invariant Sections, in the
  4138. notice that says that the Document is released under this License.
  4139. If a section does not fit the above definition of Secondary then it
  4140. is not allowed to be designated as Invariant. The Document may
  4141. contain zero Invariant Sections. If the Document does not identify
  4142. any Invariant Sections then there are none.
  4143. The "Cover Texts" are certain short passages of text that are
  4144. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  4145. that says that the Document is released under this License. A
  4146. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  4147. be at most 25 words.
  4148. A "Transparent" copy of the Document means a machine-readable copy,
  4149. represented in a format whose specification is available to the
  4150. general public, that is suitable for revising the document
  4151. straightforwardly with generic text editors or (for images composed
  4152. of pixels) generic paint programs or (for drawings) some widely
  4153. available drawing editor, and that is suitable for input to text
  4154. formatters or for automatic translation to a variety of formats
  4155. suitable for input to text formatters. A copy made in an otherwise
  4156. Transparent file format whose markup, or absence of markup, has
  4157. been arranged to thwart or discourage subsequent modification by
  4158. readers is not Transparent. An image format is not Transparent if
  4159. used for any substantial amount of text. A copy that is not
  4160. "Transparent" is called "Opaque".
  4161. Examples of suitable formats for Transparent copies include plain
  4162. ASCII without markup, Texinfo input format, LaTeX input format,
  4163. SGML or XML using a publicly available DTD, and standard-conforming
  4164. simple HTML, PostScript or PDF designed for human modification.
  4165. Examples of transparent image formats include PNG, XCF and JPG.
  4166. Opaque formats include proprietary formats that can be read and
  4167. edited only by proprietary word processors, SGML or XML for which
  4168. the DTD and/or processing tools are not generally available, and
  4169. the machine-generated HTML, PostScript or PDF produced by some word
  4170. processors for output purposes only.
  4171. The "Title Page" means, for a printed book, the title page itself,
  4172. plus such following pages as are needed to hold, legibly, the
  4173. material this License requires to appear in the title page. For
  4174. works in formats which do not have any title page as such, "Title
  4175. Page" means the text near the most prominent appearance of the
  4176. work's title, preceding the beginning of the body of the text.
  4177. The "publisher" means any person or entity that distributes copies
  4178. of the Document to the public.
  4179. A section "Entitled XYZ" means a named subunit of the Document
  4180. whose title either is precisely XYZ or contains XYZ in parentheses
  4181. following text that translates XYZ in another language. (Here XYZ
  4182. stands for a specific section name mentioned below, such as
  4183. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  4184. To "Preserve the Title" of such a section when you modify the
  4185. Document means that it remains a section "Entitled XYZ" according
  4186. to this definition.
  4187. The Document may include Warranty Disclaimers next to the notice
  4188. which states that this License applies to the Document. These
  4189. Warranty Disclaimers are considered to be included by reference in
  4190. this License, but only as regards disclaiming warranties: any other
  4191. implication that these Warranty Disclaimers may have is void and
  4192. has no effect on the meaning of this License.
  4193. 2. VERBATIM COPYING
  4194. You may copy and distribute the Document in any medium, either
  4195. commercially or noncommercially, provided that this License, the
  4196. copyright notices, and the license notice saying this License
  4197. applies to the Document are reproduced in all copies, and that you
  4198. add no other conditions whatsoever to those of this License. You
  4199. may not use technical measures to obstruct or control the reading
  4200. or further copying of the copies you make or distribute. However,
  4201. you may accept compensation in exchange for copies. If you
  4202. distribute a large enough number of copies you must also follow the
  4203. conditions in section 3.
  4204. You may also lend copies, under the same conditions stated above,
  4205. and you may publicly display copies.
  4206. 3. COPYING IN QUANTITY
  4207. If you publish printed copies (or copies in media that commonly
  4208. have printed covers) of the Document, numbering more than 100, and
  4209. the Document's license notice requires Cover Texts, you must
  4210. enclose the copies in covers that carry, clearly and legibly, all
  4211. these Cover Texts: Front-Cover Texts on the front cover, and
  4212. Back-Cover Texts on the back cover. Both covers must also clearly
  4213. and legibly identify you as the publisher of these copies. The
  4214. front cover must present the full title with all words of the title
  4215. equally prominent and visible. You may add other material on the
  4216. covers in addition. Copying with changes limited to the covers, as
  4217. long as they preserve the title of the Document and satisfy these
  4218. conditions, can be treated as verbatim copying in other respects.
  4219. If the required texts for either cover are too voluminous to fit
  4220. legibly, you should put the first ones listed (as many as fit
  4221. reasonably) on the actual cover, and continue the rest onto
  4222. adjacent pages.
  4223. If you publish or distribute Opaque copies of the Document
  4224. numbering more than 100, you must either include a machine-readable
  4225. Transparent copy along with each Opaque copy, or state in or with
  4226. each Opaque copy a computer-network location from which the general
  4227. network-using public has access to download using public-standard
  4228. network protocols a complete Transparent copy of the Document, free
  4229. of added material. If you use the latter option, you must take
  4230. reasonably prudent steps, when you begin distribution of Opaque
  4231. copies in quantity, to ensure that this Transparent copy will
  4232. remain thus accessible at the stated location until at least one
  4233. year after the last time you distribute an Opaque copy (directly or
  4234. through your agents or retailers) of that edition to the public.
  4235. It is requested, but not required, that you contact the authors of
  4236. the Document well before redistributing any large number of copies,
  4237. to give them a chance to provide you with an updated version of the
  4238. Document.
  4239. 4. MODIFICATIONS
  4240. You may copy and distribute a Modified Version of the Document
  4241. under the conditions of sections 2 and 3 above, provided that you
  4242. release the Modified Version under precisely this License, with the
  4243. Modified Version filling the role of the Document, thus licensing
  4244. distribution and modification of the Modified Version to whoever
  4245. possesses a copy of it. In addition, you must do these things in
  4246. the Modified Version:
  4247. A. Use in the Title Page (and on the covers, if any) a title
  4248. distinct from that of the Document, and from those of previous
  4249. versions (which should, if there were any, be listed in the
  4250. History section of the Document). You may use the same title
  4251. as a previous version if the original publisher of that
  4252. version gives permission.
  4253. B. List on the Title Page, as authors, one or more persons or
  4254. entities responsible for authorship of the modifications in
  4255. the Modified Version, together with at least five of the
  4256. principal authors of the Document (all of its principal
  4257. authors, if it has fewer than five), unless they release you
  4258. from this requirement.
  4259. C. State on the Title page the name of the publisher of the
  4260. Modified Version, as the publisher.
  4261. D. Preserve all the copyright notices of the Document.
  4262. E. Add an appropriate copyright notice for your modifications
  4263. adjacent to the other copyright notices.
  4264. F. Include, immediately after the copyright notices, a license
  4265. notice giving the public permission to use the Modified
  4266. Version under the terms of this License, in the form shown in
  4267. the Addendum below.
  4268. G. Preserve in that license notice the full lists of Invariant
  4269. Sections and required Cover Texts given in the Document's
  4270. license notice.
  4271. H. Include an unaltered copy of this License.
  4272. I. Preserve the section Entitled "History", Preserve its Title,
  4273. and add to it an item stating at least the title, year, new
  4274. authors, and publisher of the Modified Version as given on the
  4275. Title Page. If there is no section Entitled "History" in the
  4276. Document, create one stating the title, year, authors, and
  4277. publisher of the Document as given on its Title Page, then add
  4278. an item describing the Modified Version as stated in the
  4279. previous sentence.
  4280. J. Preserve the network location, if any, given in the Document
  4281. for public access to a Transparent copy of the Document, and
  4282. likewise the network locations given in the Document for
  4283. previous versions it was based on. These may be placed in the
  4284. "History" section. You may omit a network location for a work
  4285. that was published at least four years before the Document
  4286. itself, or if the original publisher of the version it refers
  4287. to gives permission.
  4288. K. For any section Entitled "Acknowledgements" or "Dedications",
  4289. Preserve the Title of the section, and preserve in the section
  4290. all the substance and tone of each of the contributor
  4291. acknowledgements and/or dedications given therein.
  4292. L. Preserve all the Invariant Sections of the Document, unaltered
  4293. in their text and in their titles. Section numbers or the
  4294. equivalent are not considered part of the section titles.
  4295. M. Delete any section Entitled "Endorsements". Such a section
  4296. may not be included in the Modified Version.
  4297. N. Do not retitle any existing section to be Entitled
  4298. "Endorsements" or to conflict in title with any Invariant
  4299. Section.
  4300. O. Preserve any Warranty Disclaimers.
  4301. If the Modified Version includes new front-matter sections or
  4302. appendices that qualify as Secondary Sections and contain no
  4303. material copied from the Document, you may at your option designate
  4304. some or all of these sections as invariant. To do this, add their
  4305. titles to the list of Invariant Sections in the Modified Version's
  4306. license notice. These titles must be distinct from any other
  4307. section titles.
  4308. You may add a section Entitled "Endorsements", provided it contains
  4309. nothing but endorsements of your Modified Version by various
  4310. parties--for example, statements of peer review or that the text
  4311. has been approved by an organization as the authoritative
  4312. definition of a standard.
  4313. You may add a passage of up to five words as a Front-Cover Text,
  4314. and a passage of up to 25 words as a Back-Cover Text, to the end of
  4315. the list of Cover Texts in the Modified Version. Only one passage
  4316. of Front-Cover Text and one of Back-Cover Text may be added by (or
  4317. through arrangements made by) any one entity. If the Document
  4318. already includes a cover text for the same cover, previously added
  4319. by you or by arrangement made by the same entity you are acting on
  4320. behalf of, you may not add another; but you may replace the old
  4321. one, on explicit permission from the previous publisher that added
  4322. the old one.
  4323. The author(s) and publisher(s) of the Document do not by this
  4324. License give permission to use their names for publicity for or to
  4325. assert or imply endorsement of any Modified Version.
  4326. 5. COMBINING DOCUMENTS
  4327. You may combine the Document with other documents released under
  4328. this License, under the terms defined in section 4 above for
  4329. modified versions, provided that you include in the combination all
  4330. of the Invariant Sections of all of the original documents,
  4331. unmodified, and list them all as Invariant Sections of your
  4332. combined work in its license notice, and that you preserve all
  4333. their Warranty Disclaimers.
  4334. The combined work need only contain one copy of this License, and
  4335. multiple identical Invariant Sections may be replaced with a single
  4336. copy. If there are multiple Invariant Sections with the same name
  4337. but different contents, make the title of each such section unique
  4338. by adding at the end of it, in parentheses, the name of the
  4339. original author or publisher of that section if known, or else a
  4340. unique number. Make the same adjustment to the section titles in
  4341. the list of Invariant Sections in the license notice of the
  4342. combined work.
  4343. In the combination, you must combine any sections Entitled
  4344. "History" in the various original documents, forming one section
  4345. Entitled "History"; likewise combine any sections Entitled
  4346. "Acknowledgements", and any sections Entitled "Dedications". You
  4347. must delete all sections Entitled "Endorsements."
  4348. 6. COLLECTIONS OF DOCUMENTS
  4349. You may make a collection consisting of the Document and other
  4350. documents released under this License, and replace the individual
  4351. copies of this License in the various documents with a single copy
  4352. that is included in the collection, provided that you follow the
  4353. rules of this License for verbatim copying of each of the documents
  4354. in all other respects.
  4355. You may extract a single document from such a collection, and
  4356. distribute it individually under this License, provided you insert
  4357. a copy of this License into the extracted document, and follow this
  4358. License in all other respects regarding verbatim copying of that
  4359. document.
  4360. 7. AGGREGATION WITH INDEPENDENT WORKS
  4361. A compilation of the Document or its derivatives with other
  4362. separate and independent documents or works, in or on a volume of a
  4363. storage or distribution medium, is called an "aggregate" if the
  4364. copyright resulting from the compilation is not used to limit the
  4365. legal rights of the compilation's users beyond what the individual
  4366. works permit. When the Document is included in an aggregate, this
  4367. License does not apply to the other works in the aggregate which
  4368. are not themselves derivative works of the Document.
  4369. If the Cover Text requirement of section 3 is applicable to these
  4370. copies of the Document, then if the Document is less than one half
  4371. of the entire aggregate, the Document's Cover Texts may be placed
  4372. on covers that bracket the Document within the aggregate, or the
  4373. electronic equivalent of covers if the Document is in electronic
  4374. form. Otherwise they must appear on printed covers that bracket
  4375. the whole aggregate.
  4376. 8. TRANSLATION
  4377. Translation is considered a kind of modification, so you may
  4378. distribute translations of the Document under the terms of section
  4379. 4. Replacing Invariant Sections with translations requires special
  4380. permission from their copyright holders, but you may include
  4381. translations of some or all Invariant Sections in addition to the
  4382. original versions of these Invariant Sections. You may include a
  4383. translation of this License, and all the license notices in the
  4384. Document, and any Warranty Disclaimers, provided that you also
  4385. include the original English version of this License and the
  4386. original versions of those notices and disclaimers. In case of a
  4387. disagreement between the translation and the original version of
  4388. this License or a notice or disclaimer, the original version will
  4389. prevail.
  4390. If a section in the Document is Entitled "Acknowledgements",
  4391. "Dedications", or "History", the requirement (section 4) to
  4392. Preserve its Title (section 1) will typically require changing the
  4393. actual title.
  4394. 9. TERMINATION
  4395. You may not copy, modify, sublicense, or distribute the Document
  4396. except as expressly provided under this License. Any attempt
  4397. otherwise to copy, modify, sublicense, or distribute it is void,
  4398. and will automatically terminate your rights under this License.
  4399. However, if you cease all violation of this License, then your
  4400. license from a particular copyright holder is reinstated (a)
  4401. provisionally, unless and until the copyright holder explicitly and
  4402. finally terminates your license, and (b) permanently, if the
  4403. copyright holder fails to notify you of the violation by some
  4404. reasonable means prior to 60 days after the cessation.
  4405. Moreover, your license from a particular copyright holder is
  4406. reinstated permanently if the copyright holder notifies you of the
  4407. violation by some reasonable means, this is the first time you have
  4408. received notice of violation of this License (for any work) from
  4409. that copyright holder, and you cure the violation prior to 30 days
  4410. after your receipt of the notice.
  4411. Termination of your rights under this section does not terminate
  4412. the licenses of parties who have received copies or rights from you
  4413. under this License. If your rights have been terminated and not
  4414. permanently reinstated, receipt of a copy of some or all of the
  4415. same material does not give you any rights to use it.
  4416. 10. FUTURE REVISIONS OF THIS LICENSE
  4417. The Free Software Foundation may publish new, revised versions of
  4418. the GNU Free Documentation License from time to time. Such new
  4419. versions will be similar in spirit to the present version, but may
  4420. differ in detail to address new problems or concerns. See
  4421. <http://www.gnu.org/copyleft/>.
  4422. Each version of the License is given a distinguishing version
  4423. number. If the Document specifies that a particular numbered
  4424. version of this License "or any later version" applies to it, you
  4425. have the option of following the terms and conditions either of
  4426. that specified version or of any later version that has been
  4427. published (not as a draft) by the Free Software Foundation. If the
  4428. Document does not specify a version number of this License, you may
  4429. choose any version ever published (not as a draft) by the Free
  4430. Software Foundation. If the Document specifies that a proxy can
  4431. decide which future versions of this License can be used, that
  4432. proxy's public statement of acceptance of a version permanently
  4433. authorizes you to choose that version for the Document.
  4434. 11. RELICENSING
  4435. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  4436. World Wide Web server that publishes copyrightable works and also
  4437. provides prominent facilities for anybody to edit those works. A
  4438. public wiki that anybody can edit is an example of such a server.
  4439. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  4440. site means any set of copyrightable works thus published on the MMC
  4441. site.
  4442. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  4443. license published by Creative Commons Corporation, a not-for-profit
  4444. corporation with a principal place of business in San Francisco,
  4445. California, as well as future copyleft versions of that license
  4446. published by that same organization.
  4447. "Incorporate" means to publish or republish a Document, in whole or
  4448. in part, as part of another Document.
  4449. An MMC is "eligible for relicensing" if it is licensed under this
  4450. License, and if all works that were first published under this
  4451. License somewhere other than this MMC, and subsequently
  4452. incorporated in whole or in part into the MMC, (1) had no cover
  4453. texts or invariant sections, and (2) were thus incorporated prior
  4454. to November 1, 2008.
  4455. The operator of an MMC Site may republish an MMC contained in the
  4456. site under CC-BY-SA on the same site at any time before August 1,
  4457. 2009, provided the MMC is eligible for relicensing.
  4458. ADDENDUM: How to use this License for your documents
  4459. ====================================================
  4460. To use this License in a document you have written, include a copy of
  4461. the License in the document and put the following copyright and license
  4462. notices just after the title page:
  4463. Copyright (C) YEAR YOUR NAME.
  4464. Permission is granted to copy, distribute and/or modify this document
  4465. under the terms of the GNU Free Documentation License, Version 1.3
  4466. or any later version published by the Free Software Foundation;
  4467. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  4468. Texts. A copy of the license is included in the section entitled ``GNU
  4469. Free Documentation License''.
  4470. If you have Invariant Sections, Front-Cover Texts and Back-Cover
  4471. Texts, replace the "with...Texts." line with this:
  4472. with the Invariant Sections being LIST THEIR TITLES, with
  4473. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  4474. being LIST.
  4475. If you have Invariant Sections without Cover Texts, or some other
  4476. combination of the three, merge those two alternatives to suit the
  4477. situation.
  4478. If your document contains nontrivial examples of program code, we
  4479. recommend releasing these examples in parallel under your choice of free
  4480. software license, such as the GNU General Public License, to permit
  4481. their use in free software.
  4482. 
  4483. File: binutils.info, Node: Binutils Index, Prev: GNU Free Documentation License, Up: Top
  4484. Binutils Index
  4485. **************
  4486. �[index�]
  4487. * Menu:
  4488. * -enable-deterministic-archives: ar cmdline. (line 150)
  4489. * -enable-deterministic-archives <1>: ar cmdline. (line 233)
  4490. * -enable-deterministic-archives <2>: objcopy. (line 355)
  4491. * -enable-deterministic-archives <3>: objcopy. (line 365)
  4492. * -enable-deterministic-archives <4>: ranlib. (line 32)
  4493. * -enable-deterministic-archives <5>: ranlib. (line 44)
  4494. * -enable-deterministic-archives <6>: strip. (line 155)
  4495. * -enable-deterministic-archives <7>: strip. (line 165)
  4496. * .stab: objdump. (line 696)
  4497. * Add prefix to absolute paths: objdump. (line 505)
  4498. * addr2line: addr2line. (line 6)
  4499. * address to file name and line number: addr2line. (line 6)
  4500. * all header information, object file: objdump. (line 818)
  4501. * ar: ar. (line 6)
  4502. * ar compatibility: ar. (line 60)
  4503. * architecture: objdump. (line 257)
  4504. * architectures available: objdump. (line 242)
  4505. * archive contents: ranlib. (line 6)
  4506. * Archive file symbol index information: readelf. (line 194)
  4507. * archive headers: objdump. (line 75)
  4508. * archives: ar. (line 6)
  4509. * base files: dlltool. (line 124)
  4510. * bug criteria: Bug Criteria. (line 6)
  4511. * bug reports: Bug Reporting. (line 6)
  4512. * bugs: Reporting Bugs. (line 6)
  4513. * bugs, reporting: Bug Reporting. (line 6)
  4514. * c++filt: c++filt. (line 6)
  4515. * changing object addresses: objcopy. (line 402)
  4516. * changing section address: objcopy. (line 412)
  4517. * changing section LMA: objcopy. (line 421)
  4518. * changing section VMA: objcopy. (line 434)
  4519. * changing start address: objcopy. (line 396)
  4520. * collections of files: ar. (line 6)
  4521. * Compact Type Format: objdump. (line 682)
  4522. * Compact Type Format <1>: readelf. (line 342)
  4523. * compatibility, ar: ar. (line 60)
  4524. * contents of archive: ar cmdline. (line 97)
  4525. * crash: Bug Criteria. (line 9)
  4526. * creating archives: ar cmdline. (line 144)
  4527. * creating thin archive: ar cmdline. (line 219)
  4528. * CTF: objdump. (line 682)
  4529. * CTF <1>: readelf. (line 342)
  4530. * cxxfilt: c++filt. (line 16)
  4531. * dates in archive: ar cmdline. (line 183)
  4532. * debug symbols: objdump. (line 696)
  4533. * debugging symbols: nm. (line 153)
  4534. * deleting from archive: ar cmdline. (line 26)
  4535. * demangling C++ symbols: c++filt. (line 6)
  4536. * demangling in nm: nm. (line 161)
  4537. * demangling in objdump: objdump. (line 103)
  4538. * demangling in objdump <1>: addr2line. (line 86)
  4539. * deterministic archives: ar cmdline. (line 150)
  4540. * deterministic archives <1>: ar cmdline. (line 233)
  4541. * deterministic archives <2>: objcopy. (line 355)
  4542. * deterministic archives <3>: objcopy. (line 365)
  4543. * deterministic archives <4>: ranlib. (line 32)
  4544. * deterministic archives <5>: ranlib. (line 44)
  4545. * deterministic archives <6>: strip. (line 155)
  4546. * deterministic archives <7>: strip. (line 165)
  4547. * disassembling object code: objdump. (line 144)
  4548. * disassembly architecture: objdump. (line 257)
  4549. * disassembly endianness: objdump. (line 192)
  4550. * disassembly, with source: objdump. (line 494)
  4551. * disassembly, with source <1>: objdump. (line 498)
  4552. * discarding symbols: strip. (line 6)
  4553. * DLL: dlltool. (line 6)
  4554. * dlltool: dlltool. (line 6)
  4555. * dynamic relocation entries, in object file: objdump. (line 482)
  4556. * dynamic symbol table entries, printing: objdump. (line 795)
  4557. * dynamic symbols: nm. (line 191)
  4558. * ELF dynamic section information: readelf. (line 134)
  4559. * ELF dynamic symbol table information: readelf. (line 106)
  4560. * ELF file header information: readelf. (line 69)
  4561. * ELF file information: readelf. (line 6)
  4562. * ELF notes: readelf. (line 116)
  4563. * ELF object file format: objdump. (line 696)
  4564. * ELF program header information: readelf. (line 75)
  4565. * ELF reloc information: readelf. (line 120)
  4566. * ELF section group information: readelf. (line 86)
  4567. * ELF section information: readelf. (line 81)
  4568. * ELF section information <1>: readelf. (line 91)
  4569. * ELF segment information: readelf. (line 75)
  4570. * ELF symbol table information: readelf. (line 96)
  4571. * ELF version sections information: readelf. (line 138)
  4572. * elfedit: elfedit. (line 6)
  4573. * endianness: objdump. (line 192)
  4574. * error on valid input: Bug Criteria. (line 12)
  4575. * external symbols: nm. (line 203)
  4576. * external symbols <1>: nm. (line 267)
  4577. * external symbols <2>: nm. (line 281)
  4578. * extract from archive: ar cmdline. (line 114)
  4579. * fatal signal: Bug Criteria. (line 9)
  4580. * file name: nm. (line 147)
  4581. * header information, all: objdump. (line 818)
  4582. * input .def file: dlltool. (line 120)
  4583. * input file name: nm. (line 147)
  4584. * Instruction width: objdump. (line 522)
  4585. * libraries: ar. (line 25)
  4586. * listings strings: strings. (line 6)
  4587. * machine instructions: objdump. (line 144)
  4588. * moving in archive: ar cmdline. (line 34)
  4589. * MRI compatibility, ar: ar scripts. (line 8)
  4590. * name duplication in archive: ar cmdline. (line 108)
  4591. * name length: ar. (line 18)
  4592. * nm: nm. (line 6)
  4593. * nm compatibility: nm. (line 157)
  4594. * nm compatibility <1>: nm. (line 197)
  4595. * nm format: nm. (line 157)
  4596. * nm format <1>: nm. (line 197)
  4597. * not writing archive index: ar cmdline. (line 212)
  4598. * objdump: objdump. (line 6)
  4599. * objdump inlines: nm. (line 219)
  4600. * object code format: nm. (line 333)
  4601. * object code format <1>: objdump. (line 89)
  4602. * object code format <2>: size. (line 103)
  4603. * object code format <3>: strings. (line 94)
  4604. * object code format <4>: addr2line. (line 81)
  4605. * object file header: objdump. (line 198)
  4606. * object file information: objdump. (line 6)
  4607. * object file offsets: objdump. (line 203)
  4608. * object file sections: objdump. (line 489)
  4609. * object formats available: objdump. (line 242)
  4610. * offsets of files: ar cmdline. (line 188)
  4611. * operations on archive: ar cmdline. (line 22)
  4612. * plugins: ar cmdline. (line 267)
  4613. * plugins <1>: nm. (line 284)
  4614. * printing from archive: ar cmdline. (line 46)
  4615. * printing strings: strings. (line 6)
  4616. * quick append to archive: ar cmdline. (line 54)
  4617. * radix for section sizes: size. (line 85)
  4618. * ranlib: ranlib. (line 6)
  4619. * ranlib <1>: ar cmdline. (line 91)
  4620. * readelf: readelf. (line 6)
  4621. * relative placement in archive: ar cmdline. (line 132)
  4622. * relocation entries, in object file: objdump. (line 476)
  4623. * removing symbols: strip. (line 6)
  4624. * repeated names in archive: ar cmdline. (line 108)
  4625. * replacement in archive: ar cmdline. (line 73)
  4626. * reporting bugs: Reporting Bugs. (line 6)
  4627. * scripts, ar: ar scripts. (line 8)
  4628. * section addresses in objdump: objdump. (line 81)
  4629. * section headers: objdump. (line 219)
  4630. * section information: objdump. (line 247)
  4631. * section sizes: size. (line 6)
  4632. * sections, full contents: objdump. (line 489)
  4633. * separate debug files: debuginfod. (line 6)
  4634. * size: size. (line 6)
  4635. * size display format: size. (line 28)
  4636. * size number format: size. (line 85)
  4637. * sorting symbols: nm. (line 234)
  4638. * source code context: objdump. (line 212)
  4639. * source disassembly: objdump. (line 494)
  4640. * source disassembly <1>: objdump. (line 498)
  4641. * source file name: nm. (line 147)
  4642. * source filenames for object files: objdump. (line 251)
  4643. * stab: objdump. (line 696)
  4644. * start-address: objdump. (line 705)
  4645. * stop-address: objdump. (line 709)
  4646. * strings: strings. (line 6)
  4647. * strings, printing: strings. (line 6)
  4648. * strip: strip. (line 6)
  4649. * Strip absolute paths: objdump. (line 508)
  4650. * symbol index: ar. (line 28)
  4651. * symbol index <1>: ranlib. (line 6)
  4652. * symbol index, listing: nm. (line 256)
  4653. * symbol line numbers: nm. (line 211)
  4654. * symbol table entries, printing: objdump. (line 714)
  4655. * symbols: nm. (line 6)
  4656. * symbols, discarding: strip. (line 6)
  4657. * thin archives: ar. (line 40)
  4658. * undefined symbols: nm. (line 267)
  4659. * undefined symbols <1>: nm. (line 281)
  4660. * Unix compatibility, ar: ar cmdline. (line 8)
  4661. * unwind information: readelf. (line 125)
  4662. * Update ELF header: elfedit. (line 6)
  4663. * updating an archive: ar cmdline. (line 224)
  4664. * version: Top. (line 6)
  4665. * VMA in objdump: objdump. (line 81)
  4666. * wide output, printing: objdump. (line 824)
  4667. * writing archive index: ar cmdline. (line 206)
  4668. 
  4669. Tag Table:
  4670. Node: Top1834
  4671. Node: ar3584
  4672. Node: ar cmdline6737
  4673. Node: ar scripts19363
  4674. Node: nm25049
  4675. Node: objcopy37673
  4676. Node: objdump78166
  4677. Node: ranlib111191
  4678. Node: size112790
  4679. Node: strings116759
  4680. Node: strip121131
  4681. Node: c++filt130656
  4682. Ref: c++filt-Footnote-1136518
  4683. Node: addr2line136624
  4684. Node: windmc142303
  4685. Node: windres145962
  4686. Node: dlltool152321
  4687. Node: def file format165318
  4688. Node: readelf167848
  4689. Node: elfedit181362
  4690. Node: Common Options184318
  4691. Node: Selecting the Target System185352
  4692. Node: Target Selection186280
  4693. Node: Architecture Selection188261
  4694. Node: debuginfod189089
  4695. Node: Reporting Bugs189848
  4696. Node: Bug Criteria190610
  4697. Node: Bug Reporting191163
  4698. Node: GNU Free Documentation License198033
  4699. Node: Binutils Index223193
  4700. 
  4701. End Tag Table