binutils.info 245 KB

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